Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Use this one, it's good for you : </p> <pre><code>abstract public class BaseSlideFragmentActivity extends SlidingFragmentActivity implements IActivity { @Override public void onCreate(Bundle savedInstanceState) { Utils.log(new Exception(), "[onCreate]"); super.onCreate(savedInstanceState); getSlidingMenu().setMode(SlidingMenu.LEFT_RIGHT); getSlidingMenu().setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN); setBehindContentView(R.layout.menu_right); getSupportFragmentManager().beginTransaction().replace(R.id.menuRight, new MenuRightFragment()).commit(); getSlidingMenu().setSecondaryMenu(R.layout.menu_left); getSupportFragmentManager().beginTransaction().replace(R.id.menuLeft, new MenuLeftFragment()).commit(); getSlidingMenu().setShadowWidthRes(R.dimen.shadow_width); getSlidingMenu().setBehindOffsetRes(R.dimen.slidingmenu_offset); getSlidingMenu().setFadeDegree(0.35f); getSupportActionBar().setDisplayHomeAsUpEnabled(true); setSlidingActionBarEnabled(false); } public Activity getActivity() { return this; } @Override public MyApplication getApplicationContext() { return (MyApplication) super.getApplicationContext(); } @Override public boolean onOptionsItemSelected(MenuItem item) { Utils.log(new Exception(), "[onOptionsItemSelected]"); switch (item.getItemId()) { case android.R.id.home: toggle(); return true; case R.id.setting: if (getSlidingMenu().isMenuShowing()) { toggle(); } else { showSecondaryMenu(); } return true; } return super.onOptionsItemSelected(item); } @Override public boolean onCreateOptionsMenu(Menu menu) { Utils.log(new Exception(), "[onCreateOptionsMenu]"); getSupportMenuInflater().inflate(R.menu.menu_setting, menu); return true; } </code></pre> <p>}</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload