本文整理汇总了Java中com.sothree.slidinguppanel.SlidingUpPanelLayout.PanelSlideListener方法的典型用法代码示例。如果您正苦于以下问题:Java SlidingUpPanelLayout.PanelSlideListener方法的具体用法?Java SlidingUpPanelLayout.PanelSlideListener怎么用?Java SlidingUpPanelLayout.PanelSlideListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sothree.slidinguppanel.SlidingUpPanelLayout
的用法示例。
在下文中一共展示了SlidingUpPanelLayout.PanelSlideListener方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onAttach
import com.sothree.slidinguppanel.SlidingUpPanelLayout; //导入方法依赖的package包/类
@Override
public void onAttach(Activity activity) {
super.onAttach(activity);
if (activity instanceof DrawerNavigationUI)
navActivity = (DrawerNavigationUI) activity;
if(activity instanceof SlidingUpPanelLayout.PanelSlideListener)
slidingPanelListenerMgr.addPanelSlideListener(parentActivityPanelListenerLabel, (SlidingUpPanelLayout.PanelSlideListener) activity);
}
示例2: addPanelSlideListener
import com.sothree.slidinguppanel.SlidingUpPanelLayout; //导入方法依赖的package包/类
public void addPanelSlideListener(String label, SlidingUpPanelLayout.PanelSlideListener listener){
panelListenerClients.put(label, listener);
}
示例3: onPanelSlide
import com.sothree.slidinguppanel.SlidingUpPanelLayout; //导入方法依赖的package包/类
@Override
public void onPanelSlide(View view, float v) {
for(SlidingUpPanelLayout.PanelSlideListener listener: panelListenerClients.values()){
listener.onPanelSlide(view, v);
}
}
示例4: onPanelStateChanged
import com.sothree.slidinguppanel.SlidingUpPanelLayout; //导入方法依赖的package包/类
@Override
public void onPanelStateChanged(View panel, SlidingUpPanelLayout.PanelState previousState, SlidingUpPanelLayout.PanelState newState) {
for(SlidingUpPanelLayout.PanelSlideListener listener: panelListenerClients.values()){
listener.onPanelStateChanged(panel, previousState, newState);
}
}
示例5: setPanelSlideListener
import com.sothree.slidinguppanel.SlidingUpPanelLayout; //导入方法依赖的package包/类
/**
* Sets a listener that can provide further customization, the respective calls to the listener is performed after the adapter has completed its own processing.
*
* @param listener
*/
public void setPanelSlideListener(@Nullable SlidingUpPanelLayout.PanelSlideListener listener) {
mListener = listener;
}