Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Technically, you shouldn't use ActionBar tabs with the NavigationDrawer:</p> <blockquote> <p>"You shouldn't use navigation drawers with action bar tabs. If you're aiming for a UI similar to that of Google Play Music, you should implement tabs manually (and beware of how this looks on tablet—you don't want full-width tab bars on tablets). Also make sure to check out the <a href="http://www.youtube.com/watch?v=XpqyiBR0lJ4" rel="nofollow">Structure in Android App Design</a> session from this year's Google I/O for a detailed run-through of the various interface patterns available for exposing app hierarchy." - <a href="https://plus.google.com/u/1/116515063230772720916/posts/8dWEkFcbTFX" rel="nofollow">Roman Nurik, Android Developer Advocate @ Google</a></p> </blockquote> <p>Using <a href="http://developer.android.com/reference/android/app/FragmentTransaction.html" rel="nofollow">FragmentTransaction</a> in the <code>Activity</code> that inflates <code>Main.xml</code>:</p> <pre><code>FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); ExampleFragment fragment = new ExampleFragment(); fragmentTransaction.add(R.id.main_content, fragment); fragmentTransaction.commit(); </code></pre> <p><code>ExampleFragment</code> will contain the method <code>onCreateView()</code> that will <a href="http://developer.android.com/reference/android/view/LayoutInflater.html#inflate%28int,%20android.view.ViewGroup,%20boolean%29" rel="nofollow">Inflate</a> your XML:</p> <pre><code>@Override public View onCreateView(LayoutInflater layoutInflater, ViewGroup container, Bundle savedInstanceState) { return layoutInflater.inflate(R.layout.Main_Content, container, false); } </code></pre>
    singulars
    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. 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