Advertisement
Guest User

Layout XML

a guest
Oct 24th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.62 KB | None | 0 0
  1. <android.support.v4.widget.DrawerLayout
  2. xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:id="@+id/drawer_layout"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="#ffffff" >
  8.  
  9. <RelativeLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent">
  12.  
  13. <RelativeLayout android:id="@+id/content_frame_container"
  14. android:layout_width="match_parent"
  15. android:layout_height="match_parent"
  16. android:background="#ffffff"
  17. android:layout_below="@+id/toolbar_app_bar_layout">
  18.  
  19. <FrameLayout
  20. android:id="@+id/content_frame"
  21. android:layout_width="match_parent"
  22. android:layout_height="match_parent">
  23. </FrameLayout>
  24.  
  25. </RelativeLayout>
  26.  
  27. <android.support.v4.view.ViewPager
  28. android:id="@+id/pager"
  29. android:layout_width="fill_parent"
  30. android:layout_height="match_parent"
  31. android:layout_below="@+id/toolbar_app_bar_layout" />
  32.  
  33. <android.support.design.widget.AppBarLayout
  34. android:id="@+id/toolbar_app_bar_layout"
  35. android:layout_width="match_parent"
  36. android:layout_height="wrap_content"
  37. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
  38.  
  39. <include android:id="@+id/toolbar"
  40. layout="@layout/toolbar" />
  41.  
  42. <android.support.design.widget.TabLayout
  43. xmlns:app="http://schemas.android.com/apk/res-auto"
  44. android:id="@+id/sliding_tabs"
  45. android:layout_width="match_parent"
  46. android:layout_height="wrap_content"
  47. android:layout_below="@+id/toolbar"
  48. app:tabMode="scrollable"
  49. app:paddingStart="16dp"
  50. app:tabPaddingStart="16dp"
  51. app:tabPaddingEnd="16dp"
  52. app:tabMinWidth="96dp"
  53. app:tabGravity="center" />
  54.  
  55. </android.support.design.widget.AppBarLayout>
  56.  
  57. </RelativeLayout>
  58.  
  59. <android.support.design.widget.NavigationView
  60. xmlns:app="http://schemas.android.com/apk/res-auto"
  61. android:id="@+id/navigation_view"
  62. android:layout_width="match_parent"
  63. android:layout_height="wrap_content"
  64. android:layout_gravity="start"
  65. android:background="@color/md_white_1000"
  66. app:headerLayout="@layout/nav_drawer_header"
  67. app:menu="@menu/menu_drawer"
  68. app:itemTextColor="@color/md_grey_600"
  69. app:itemTextAppearance="@style/TextAppearance.AppCompat.Menu"
  70. android:clipToPadding="false">
  71.  
  72. <!--<FrameLayout-->
  73. <!--android:layout_width="match_parent"-->
  74. <!--android:layout_height="wrap_content"-->
  75. <!--android:layout_gravity="bottom"-->
  76. <!--android:background="@color/md_white_1000"-->
  77. <!--android:elevation="4dp"-->
  78. <!--android:layout_marginBottom="-96dp">-->
  79.  
  80. <!--<Button android:id="@+id/navigation_button_footer"-->
  81. <!--android:layout_width="match_parent"-->
  82. <!--android:layout_height="match_parent"-->
  83. <!--android:text=""-->
  84. <!--android:textSize="13sp"-->
  85. <!--android:textColor="@color/md_grey_800"-->
  86. <!--android:lines="3"-->
  87. <!--android:gravity="center"-->
  88. <!--style="@style/Widget.AppCompat.ActionButton"-->
  89. <!--android:paddingTop="20dp"-->
  90. <!--android:paddingLeft="20dp"-->
  91. <!--android:paddingRight="20dp"-->
  92. <!--android:paddingBottom="20dp"/>-->
  93.  
  94. <!--</FrameLayout>-->
  95.  
  96. <TextView
  97. android:id="@+id/nav_drawer_total_credits"
  98. android:layout_width="match_parent"
  99. android:layout_height="wrap_content"
  100. android:inputType="text"
  101. android:textSize="18sp"
  102. tools:ignore="TextViewEdits" />
  103. <TextView
  104. android:id="@+id/nav_drawer_username"
  105. android:layout_width="match_parent"
  106. android:layout_height="wrap_content"
  107. android:inputType="text"
  108. android:textSize="18sp"
  109. tools:ignore="TextViewEdits" />
  110. <TextView
  111. android:id="@+id/nav_drawer_wallet_id"
  112. android:layout_width="match_parent"
  113. android:layout_height="wrap_content"
  114. android:inputType="text"
  115. android:textSize="18sp"
  116. tools:ignore="TextViewEdits"
  117. android:maxLines="1" />
  118.  
  119. </android.support.design.widget.NavigationView>
  120.  
  121. <RelativeLayout
  122. android:id="@+id/lay_connection"
  123. android:layout_width="match_parent"
  124. android:layout_height="match_parent"
  125. android:layout_marginTop="@dimen/actmain_margintop"
  126. android:background="#3c3c3c"
  127. android:visibility="gone" >
  128.  
  129. <TextView
  130. android:id="@+id/text_error"
  131. android:layout_width="wrap_content"
  132. android:layout_height="wrap_content"
  133. android:layout_centerHorizontal="true"
  134. android:layout_centerVertical="true"
  135. android:gravity="center"
  136. android:text="@string/error_no_internet"
  137. android:textColor="@color/md_white_1000"
  138. android:textSize="@dimen/twentyfive" />
  139.  
  140. <RelativeLayout
  141. android:id="@+id/lay_dialog"
  142. android:layout_width="match_parent"
  143. android:layout_height="match_parent"
  144. android:visibility="gone" >
  145.  
  146. <ProgressBar
  147. android:id="@+id/progressBar1"
  148. style="?android:attr/progressBarStyleLarge"
  149. android:layout_width="wrap_content"
  150. android:layout_height="wrap_content"
  151. android:layout_centerHorizontal="true"
  152. android:layout_centerVertical="true" />
  153.  
  154. <TextView
  155. android:id="@+id/textView2"
  156. android:layout_width="wrap_content"
  157. android:layout_height="wrap_content"
  158. android:layout_below="@+id/progressBar1"
  159. android:layout_centerHorizontal="true"
  160. android:text="@string/error_no_internet"
  161. android:textColor="@color/md_white_1000"
  162. android:textSize="@dimen/twentyfive" />
  163. </RelativeLayout>
  164. </RelativeLayout>
  165.  
  166. </android.support.v4.widget.DrawerLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement