Electrons

imp-layout

Apr 13th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.56 KB | None | 0 0
  1. activity Main-
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:id="@+id/drawer_layout"
  7. android:layout_width="match_parent"
  8. android:layout_height="match_parent"
  9. android:fitsSystemWindows="true"
  10. tools:openDrawer="start">
  11.  
  12. <include
  13. layout="@layout/app_bar_main"
  14. android:layout_width="match_parent"
  15. android:layout_height="match_parent" />
  16.  
  17. <android.support.design.widget.NavigationView
  18. android:id="@+id/nav_view"
  19. android:layout_width="wrap_content"
  20. android:layout_height="match_parent"
  21. android:layout_gravity="start"
  22. android:fitsSystemWindows="true"
  23. app:headerLayout="@layout/nav_header_main"
  24. app:menu="@menu/activity_main_drawer" />
  25.  
  26. </android.support.v4.widget.DrawerLayout>
  27.  
  28.  
  29. app bar main-
  30.  
  31. <?xml version="1.0" encoding="utf-8"?>
  32. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  33. xmlns:app="http://schemas.android.com/apk/res-auto"
  34. xmlns:tools="http://schemas.android.com/tools"
  35. android:orientation="vertical"
  36. android:layout_width="match_parent"
  37. android:layout_height="match_parent"
  38. tools:context="com.paramatrix.totalfitness.MainActivity">
  39.  
  40. <android.support.design.widget.AppBarLayout
  41. android:layout_width="match_parent"
  42. android:layout_height="wrap_content"
  43. android:theme="@style/AppTheme.AppBarOverlay">
  44.  
  45. <android.support.v7.widget.Toolbar
  46. android:id="@+id/toolbar"
  47. android:layout_width="match_parent"
  48. android:layout_height="?attr/actionBarSize"
  49. android:background="?attr/colorPrimary"
  50. app:popupTheme="@style/AppTheme.PopupOverlay" />
  51.  
  52. </android.support.design.widget.AppBarLayout>
  53. <FrameLayout
  54. android:layout_width="match_parent"
  55. android:layout_height="match_parent">
  56. <include
  57. layout="@layout/content_main" />
  58.  
  59. <android.support.design.widget.FloatingActionButton
  60. android:id="@+id/fab"
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:layout_gravity="bottom|end"
  64. android:layout_margin="@dimen/fab_margin"
  65. app:srcCompat="@android:drawable/ic_dialog_email" />
  66. </FrameLayout>
  67.  
  68. </LinearLayout>
  69.  
  70. content main-
  71.  
  72. <?xml version="1.0" encoding="utf-8"?>
  73. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  74. xmlns:tools="http://schemas.android.com/tools"
  75. android:layout_width="match_parent"
  76. android:layout_height="match_parent"
  77. android:orientation="vertical"
  78. tools:context="com.paramatrix.totalfitness.MainActivity"
  79. tools:showIn="@layout/app_bar_main">
  80.  
  81. <android.support.design.widget.TabLayout
  82. android:id="@+id/tab_layout"
  83. android:layout_width="match_parent"
  84. android:layout_height="wrap_content"
  85. android:layout_below="@+id/toolbar"
  86. android:background="?attr/colorPrimary"
  87. android:elevation="6dp"
  88. android:minHeight="?attr/actionBarSize"
  89. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"/>
  90.  
  91. <android.support.v4.view.ViewPager
  92. android:id="@+id/pager"
  93. android:layout_width="match_parent"
  94. android:layout_height="fill_parent"
  95. android:layout_below="@id/tab_layout"/>
  96.  
  97. </LinearLayout>
  98.  
  99. list-group-
  100.  
  101. <?xml version="1.0" encoding="utf-8"?>
  102.  
  103. <android.support.v7.widget.CardView
  104. xmlns:android="http://schemas.android.com/apk/res/android"
  105. xmlns:card_view="http://schemas.android.com/apk/res-auto"
  106. android:layout_width="match_parent"
  107. android:layout_height="match_parent"
  108. card_view:cardElevation="3dp"
  109. android:id="@+id/ll_group"
  110. android:layoutDirection="ltr"
  111. >
  112. <LinearLayout
  113. android:layout_width="match_parent"
  114. android:layout_height="wrap_content"
  115. android:layout_marginTop="1dp"
  116. android:layout_marginBottom="1dp"
  117. android:padding="10dp"
  118. android:orientation="horizontal"
  119. android:background="@color/white"
  120.  
  121. >
  122. <ImageView
  123. android:layout_width="55dp"
  124. android:layout_height="55dp"
  125. android:id="@+id/iv_icon"
  126. />
  127. <LinearLayout
  128. android:layout_width="match_parent"
  129. android:layout_height="55dp"
  130. android:paddingLeft="10dp"
  131. >
  132. <TextView
  133. android:id="@+id/lblListHeader"
  134. android:layout_width="match_parent"
  135. android:layout_height="wrap_content"
  136. android:textSize="17dp"
  137. android:layout_gravity="center_vertical"
  138. android:textColor="@color/primary_text" />
  139. <!--<TextView-->
  140. <!--android:layout_width="wrap_content"-->
  141. <!--android:layout_height="wrap_content"-->
  142. <!--android:visibility="gone"-->
  143. <!--android:text="some random lorem ipsem"-->
  144. <!--/>-->
  145.  
  146. </LinearLayout>
  147.  
  148. </LinearLayout>
  149. </android.support.v7.widget.CardView>
  150.  
  151. list-item -
  152.  
  153. <?xml version="1.0" encoding="utf-8"?>
  154. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  155. android:layout_width="match_parent"
  156. android:layout_height="55dip"
  157. android:orientation="vertical"
  158. >
  159.  
  160. <TextView
  161. android:id="@+id/lblListItem"
  162. android:layout_width="fill_parent"
  163. android:layout_height="wrap_content"
  164. android:textSize="17dip"
  165. android:paddingTop="5dp"
  166. android:paddingBottom="5dp"
  167. android:paddingLeft="?android:attr/expandableListPreferredChildPaddingLeft" />
  168.  
  169. </LinearLayout>
  170.  
  171. nav-header-main--
  172.  
  173. <?xml version="1.0" encoding="utf-8"?>
  174. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  175. xmlns:app="http://schemas.android.com/apk/res-auto"
  176. android:layout_width="match_parent"
  177. android:layout_height="@dimen/nav_header_height"
  178. android:background="@drawable/side_nav_bar"
  179. android:gravity="bottom"
  180. android:orientation="vertical"
  181. android:paddingBottom="@dimen/activity_vertical_margin"
  182. android:paddingLeft="@dimen/activity_horizontal_margin"
  183. android:paddingRight="@dimen/activity_horizontal_margin"
  184. android:paddingTop="@dimen/activity_vertical_margin"
  185. android:theme="@style/ThemeOverlay.AppCompat.Dark">
  186.  
  187. <ImageView
  188. android:id="@+id/imageView"
  189. android:layout_width="wrap_content"
  190. android:layout_height="wrap_content"
  191. android:paddingTop="@dimen/nav_header_vertical_spacing"
  192. app:srcCompat="@android:drawable/sym_def_app_icon" />
  193.  
  194. <TextView
  195. android:layout_width="match_parent"
  196. android:layout_height="wrap_content"
  197. android:paddingTop="@dimen/nav_header_vertical_spacing"
  198. android:text="Android Studio"
  199. android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
  200.  
  201. <TextView
  202. android:id="@+id/textView"
  203. android:layout_width="wrap_content"
  204. android:layout_height="wrap_content"
  205. android:text="android.studio@android.com" />
  206.  
  207. </LinearLayout>
  208.  
  209. workoutfrag---
  210.  
  211. <?xml version="1.0" encoding="utf-8"?>
  212. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  213. android:orientation="vertical" android:layout_width="match_parent"
  214. android:layout_height="match_parent"
  215. android:id="@+id/llworkout"
  216. >
  217.  
  218. <RelativeLayout
  219. android:layout_width="match_parent"
  220. android:layout_height="match_parent"
  221. android:background="@color/primary_light"
  222. >
  223.  
  224. <RadioGroup
  225. android:id="@+id/rb_type"
  226. android:layout_width="match_parent"
  227. android:layout_height="wrap_content"
  228. android:orientation="horizontal"
  229. android:padding="10dp">
  230.  
  231. <RadioButton
  232. android:id="@+id/rd_anaerobic"
  233. android:layout_width="0dp"
  234. android:layout_height="wrap_content"
  235. android:layout_weight="1"
  236. android:checked="true"
  237. android:text="Anaerobic" />
  238.  
  239. <RadioButton
  240. android:id="@+id/rd_aerobic"
  241. android:layout_width="0dp"
  242. android:layout_height="wrap_content"
  243. android:layout_weight="1"
  244. android:text="Aerobic" />
  245.  
  246. </RadioGroup>
  247.  
  248. <LinearLayout
  249. android:id="@+id/ll_desc"
  250. android:layout_width="match_parent"
  251. android:layout_height="wrap_content"
  252. android:layout_below="@id/rb_type"
  253. android:paddingBottom="10dp"
  254. android:paddingLeft="10dp"
  255. android:paddingRight="10dp">
  256.  
  257. <TextView
  258. android:id="@+id/tv_description"
  259. android:layout_width="match_parent"
  260. android:layout_height="wrap_content"
  261. android:text="@string/unaero"
  262. android:textColor="@color/primary_text" />
  263. </LinearLayout>
  264.  
  265. <ExpandableListView
  266. android:id="@+id/lvExp"
  267. android:layout_width="match_parent"
  268. android:layout_height="match_parent"
  269. android:layout_below="@id/ll_desc"
  270. android:layoutDirection="rtl"
  271. android:padding="5dp" />
  272. </RelativeLayout>
  273. </LinearLayout>
Add Comment
Please, Sign In to add comment