activity_home_screen.xml (1484B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:orientation="vertical" 4 xmlns:app="http://schemas.android.com/apk/res-auto" 5 xmlns:tools="http://schemas.android.com/tools" 6 android:layout_width="match_parent" 7 android:layout_height="match_parent" 8 tools:context="ca.absentmindedproductions.shlist.HomeScreen"> 9 10 <android.support.v7.widget.Toolbar 11 android:id="@+id/my_toolbar" 12 android:layout_width="368dp" 13 android:layout_height="56dp" 14 android:background="?attr/colorPrimary" 15 android:elevation="4dp" 16 android:theme="@style/ThemeOverlay.AppCompat.ActionBar" 17 app:popupTheme="@style/ThemeOverlay.AppCompat.Light" 18 tools:layout_editor_absoluteY="0dp" 19 tools:layout_editor_absoluteX="8dp" /> 20 21 <FrameLayout 22 android:id="@+id/current_fragment" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent" 25 android:layout_weight="1" 26 android:layout_alignParentBottom="true" 27 android:background="@color/blue" 28 android:visibility="gone"/> 29 30 <FrameLayout 31 android:id="@+id/available_fragment" 32 android:layout_width="match_parent" 33 android:layout_height="match_parent" 34 android:layout_weight="1" 35 android:layout_alignParentTop="true" 36 android:background="@color/green" 37 android:visibility="gone"/> 38 39 40 </LinearLayout>