Skip to content

Instantly share code, notes, and snippets.

@Amokrane
Created April 12, 2012 08:07
Show Gist options
  • Save Amokrane/2365548 to your computer and use it in GitHub Desktop.
Save Amokrane/2365548 to your computer and use it in GitHub Desktop.
Layout Configuration for a navigation bar
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<!-- This is the Lower Layer hosting the navbar -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<!-- ListView representing the navbar -->
<ListView
/>
</LinearLayout>
<!-- This is the Top Layer hosting the Content -->
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<!-- This is where the View of the Content will be injected -->
</FrameLayout>
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment