Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/drawerLayout"
- android:layout_width="match_parent"
- android:layout_height="match_parent" >
- <!-- Main layout -->
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/app_background"
- android:orientation="vertical" >
- <include
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- layout="@layout/layout_location_spinners_campaigns" />
- <include
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- layout="@layout/layout_campaignslistview" />
- </LinearLayout>
- <!-- Slider menu -->
- <LinearLayout
- android:id="@+id/preferencesDrawer"
- android:layout_width="290dp"
- android:layout_height="match_parent"
- android:layout_gravity="end"
- android:background="@color/app_background"
- android:orientation="vertical" >
- <android.support.v4.app.FragmentTabHost
- android:id="@android:id/tabhost"
- android:layout_width="match_parent"
- android:layout_height="match_parent" >
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical" >
- <TabWidget
- android:id="@android:id/tabs"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="0"
- android:orientation="horizontal" />
- <FrameLayout
- android:id="@android:id/tabcontent"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:layout_weight="0" />
- <FrameLayout
- android:id="@+id/realtabcontent"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1" />
- </LinearLayout>
- </android.support.v4.app.FragmentTabHost>
- </LinearLayout>
- </android.support.v4.widget.DrawerLayout>
- FragmentTabHost tabhost;
- void buildTabs() {
- tabhost.setup(this, getSupportFragmentManager(), R.id.realtabcontent);
- tabhost.addTab(tabhost.newTabSpec("locations").setIndicator(getString(R.string.locations)), FragmentPreferencesLocations.class, null);
- tabhost.addTab(tabhost.newTabSpec("categories").setIndicator(getString(R.string.categories)),FragmentPreferencesCategories.class, null);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement