Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- activity Main-
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:id="@+id/drawer_layout"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fitsSystemWindows="true"
- tools:openDrawer="start">
- <include
- layout="@layout/app_bar_main"
- android:layout_width="match_parent"
- android:layout_height="match_parent" />
- <android.support.design.widget.NavigationView
- android:id="@+id/nav_view"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_gravity="start"
- android:fitsSystemWindows="true"
- app:headerLayout="@layout/nav_header_main"
- app:menu="@menu/activity_main_drawer" />
- </android.support.v4.widget.DrawerLayout>
- app bar main-
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:context="com.paramatrix.totalfitness.MainActivity">
- <android.support.design.widget.AppBarLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:theme="@style/AppTheme.AppBarOverlay">
- <android.support.v7.widget.Toolbar
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- android:background="?attr/colorPrimary"
- app:popupTheme="@style/AppTheme.PopupOverlay" />
- </android.support.design.widget.AppBarLayout>
- <FrameLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <include
- layout="@layout/content_main" />
- <android.support.design.widget.FloatingActionButton
- android:id="@+id/fab"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom|end"
- android:layout_margin="@dimen/fab_margin"
- app:srcCompat="@android:drawable/ic_dialog_email" />
- </FrameLayout>
- </LinearLayout>
- content main-
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- tools:context="com.paramatrix.totalfitness.MainActivity"
- tools:showIn="@layout/app_bar_main">
- <android.support.design.widget.TabLayout
- android:id="@+id/tab_layout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/toolbar"
- android:background="?attr/colorPrimary"
- android:elevation="6dp"
- android:minHeight="?attr/actionBarSize"
- android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"/>
- <android.support.v4.view.ViewPager
- android:id="@+id/pager"
- android:layout_width="match_parent"
- android:layout_height="fill_parent"
- android:layout_below="@id/tab_layout"/>
- </LinearLayout>
- list-group-
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.v7.widget.CardView
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:card_view="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- card_view:cardElevation="3dp"
- android:id="@+id/ll_group"
- android:layoutDirection="ltr"
- >
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="1dp"
- android:layout_marginBottom="1dp"
- android:padding="10dp"
- android:orientation="horizontal"
- android:background="@color/white"
- >
- <ImageView
- android:layout_width="55dp"
- android:layout_height="55dp"
- android:id="@+id/iv_icon"
- />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="55dp"
- android:paddingLeft="10dp"
- >
- <TextView
- android:id="@+id/lblListHeader"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textSize="17dp"
- android:layout_gravity="center_vertical"
- android:textColor="@color/primary_text" />
- <!--<TextView-->
- <!--android:layout_width="wrap_content"-->
- <!--android:layout_height="wrap_content"-->
- <!--android:visibility="gone"-->
- <!--android:text="some random lorem ipsem"-->
- <!--/>-->
- </LinearLayout>
- </LinearLayout>
- </android.support.v7.widget.CardView>
- list-item -
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="55dip"
- android:orientation="vertical"
- >
- <TextView
- android:id="@+id/lblListItem"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:textSize="17dip"
- android:paddingTop="5dp"
- android:paddingBottom="5dp"
- android:paddingLeft="?android:attr/expandableListPreferredChildPaddingLeft" />
- </LinearLayout>
- nav-header-main--
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="@dimen/nav_header_height"
- android:background="@drawable/side_nav_bar"
- android:gravity="bottom"
- android:orientation="vertical"
- android:paddingBottom="@dimen/activity_vertical_margin"
- android:paddingLeft="@dimen/activity_horizontal_margin"
- android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
- android:theme="@style/ThemeOverlay.AppCompat.Dark">
- <ImageView
- android:id="@+id/imageView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingTop="@dimen/nav_header_vertical_spacing"
- app:srcCompat="@android:drawable/sym_def_app_icon" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingTop="@dimen/nav_header_vertical_spacing"
- android:text="Android Studio"
- android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
- <TextView
- android:id="@+id/textView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="android.studio@android.com" />
- </LinearLayout>
- workoutfrag---
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical" android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/llworkout"
- >
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/primary_light"
- >
- <RadioGroup
- android:id="@+id/rb_type"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="10dp">
- <RadioButton
- android:id="@+id/rd_anaerobic"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:checked="true"
- android:text="Anaerobic" />
- <RadioButton
- android:id="@+id/rd_aerobic"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="Aerobic" />
- </RadioGroup>
- <LinearLayout
- android:id="@+id/ll_desc"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@id/rb_type"
- android:paddingBottom="10dp"
- android:paddingLeft="10dp"
- android:paddingRight="10dp">
- <TextView
- android:id="@+id/tv_description"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/unaero"
- android:textColor="@color/primary_text" />
- </LinearLayout>
- <ExpandableListView
- android:id="@+id/lvExp"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_below="@id/ll_desc"
- android:layoutDirection="rtl"
- android:padding="5dp" />
- </RelativeLayout>
- </LinearLayout>
Add Comment
Please, Sign In to add comment