當前位置: 首頁>>代碼示例>>Java>>正文


Java SlidingUpPanelLayout.PanelSlideListener方法代碼示例

本文整理匯總了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);
}
 
開發者ID:mxiao6,項目名稱:Tower-develop,代碼行數:10,代碼來源:FlightDataFragment.java

示例2: addPanelSlideListener

import com.sothree.slidinguppanel.SlidingUpPanelLayout; //導入方法依賴的package包/類
public void addPanelSlideListener(String label, SlidingUpPanelLayout.PanelSlideListener listener){
    panelListenerClients.put(label, listener);
}
 
開發者ID:mxiao6,項目名稱:Tower-develop,代碼行數:4,代碼來源:FlightDataFragment.java

示例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);
    }
}
 
開發者ID:mxiao6,項目名稱:Tower-develop,代碼行數:7,代碼來源:FlightDataFragment.java

示例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);
    }
}
 
開發者ID:mxiao6,項目名稱:Tower-develop,代碼行數:7,代碼來源:FlightDataFragment.java

示例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;
}
 
開發者ID:kaichunlin,項目名稱:android-transition,代碼行數:9,代碼來源:SlidingUpPanelLayoutAdapter.java


注:本文中的com.sothree.slidinguppanel.SlidingUpPanelLayout.PanelSlideListener方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。