本文整理匯總了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;
}