本文整理匯總了Java中com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.OnOpenedListener類的典型用法代碼示例。如果您正苦於以下問題:Java OnOpenedListener類的具體用法?Java OnOpenedListener怎麽用?Java OnOpenedListener使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
OnOpenedListener類屬於com.jeremyfeinstein.slidingmenu.lib.SlidingMenu包,在下文中一共展示了OnOpenedListener類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: customizeMenu
import com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.OnOpenedListener; //導入依賴的package包/類
private void customizeMenu() {
SlidingMenu sm = getSlidingMenu();
sm.setShadowWidthRes(R.dimen.shadow_width);
sm.setShadowDrawable(R.drawable.shadow);
sm.setBehindOffsetRes(R.dimen.slidingmenu_offset);
sm.setFadeDegree(0.15f);
sm.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
sm.setOnOpenedListener(new OnOpenedListener() {
@Override
public void onOpened() {
fragmentChanged();
}
});
sm.setOnClosedListener(new OnClosedListener() {
@Override
public void onClosed() {
fragmentChanged();
}
});
}
示例2: onCreate
import com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.OnOpenedListener; //導入依賴的package包/類
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_sliding_menu_sample);
final SlidingMenu menu = new SlidingMenu(this);
menu.setMode(SlidingMenu.LEFT);
menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
menu.setBehindWidth(getResources().getDimensionPixelSize(
R.dimen.menu_width));
menu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT);
menu.setMenu(R.layout.sliding_menu);
menu.setOnOpenedListener(new OnOpenedListener() {
@Override
public void onOpened() {
// メニューが開かれた時に呼び出される
}
});
menu.setOnClosedListener(new OnClosedListener() {
@Override
public void onClosed() {
// メニューが閉じた時に呼び出される
}
});
initializeMenuLayout(menu);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
menu.showMenu(true);
}
}, 4000);
}
開發者ID:android-opensource-library-56,項目名稱:android-opensource-library-56,代碼行數:37,代碼來源:SlidingMenuSampleActivity.java
示例3: setOnOpenedListener
import com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.OnOpenedListener; //導入依賴的package包/類
/**
* 設置打開監聽事件
*/
public void setOnOpenedListener(OnOpenedListener l) {
mOpenedListener = l;
}
示例4: setOnOpenedListener
import com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.OnOpenedListener; //導入依賴的package包/類
public void setOnOpenedListener(OnOpenedListener l)
{
mOpenedListener = l;
}
示例5: setOnOpenedListener
import com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.OnOpenedListener; //導入依賴的package包/類
public void setOnOpenedListener(OnOpenedListener l) {
mOpenedListener = l;
}
示例6: setOnOpenedListener
import com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.OnOpenedListener; //導入依賴的package包/類
public void setOnOpenedListener(OnOpenedListener l) {
mOpenedListener = l;
}