检查 SlidingUpPanel 状态的监听器
Listener for checking the state of SlidingUpPanel
我想在 AndroidSlidingUpPanel 展开到全屏时更改项目的可见性 screen.Is 是否有检测滑动面板是否全屏的侦听器?我尝试使用它但没有用-
slidingPaneLayout.setOnDragListener(new View.OnDragListener() {
@Override
public boolean onDrag(View v, DragEvent event) {
if(slidingPaneLayout.getPanelHeight()>700)
belowarrow.setVisibility(View.GONE);
return true;
}
});
slidingPaneLayout.setPanelSlideListener(new SlidingUpPanelLayout.PanelSlideListener() {
@Override
public void onPanelSlide(View view, float v) {
}
@Override
public void onPanelCollapsed(View view) {
//here collapse
}
@Override
public void onPanelExpanded(View view) {
//here it is in fullscreen
}
@Override
public void onPanelAnchored(View view) {
}
@Override
public void onPanelHidden(View view) {
}
});
给你,希望对你有所帮助
我想在 AndroidSlidingUpPanel 展开到全屏时更改项目的可见性 screen.Is 是否有检测滑动面板是否全屏的侦听器?我尝试使用它但没有用-
slidingPaneLayout.setOnDragListener(new View.OnDragListener() {
@Override
public boolean onDrag(View v, DragEvent event) {
if(slidingPaneLayout.getPanelHeight()>700)
belowarrow.setVisibility(View.GONE);
return true;
}
});
slidingPaneLayout.setPanelSlideListener(new SlidingUpPanelLayout.PanelSlideListener() {
@Override
public void onPanelSlide(View view, float v) {
}
@Override
public void onPanelCollapsed(View view) {
//here collapse
}
@Override
public void onPanelExpanded(View view) {
//here it is in fullscreen
}
@Override
public void onPanelAnchored(View view) {
}
@Override
public void onPanelHidden(View view) {
}
});
给你,希望对你有所帮助