我希望在AndroidSlidingUpPanel扩展到全屏时更改项目的可靠性。是否有任何侦听器检测滑动面板是否全屏?我尝试使用此功能但没有工作 - < / p>
slidingPaneLayout.setOnDragListener(new View.OnDragListener() {
@Override
public boolean onDrag(View v, DragEvent event) {
if(slidingPaneLayout.getPanelHeight()>700)
belowarrow.setVisibility(View.GONE);
return true;
}
});
答案 0 :(得分:3)
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) {
}
});
在这里,我希望它会有所帮助