Skip to content

Instantly share code, notes, and snippets.

@hongzhou85
Created June 24, 2015 08:49
Show Gist options
  • Save hongzhou85/3646d9bc909028260d8d to your computer and use it in GitHub Desktop.
Save hongzhou85/3646d9bc909028260d8d to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="co.bookyourstyle.bys.beautyme.ui.MyBeautyFragment">
<com.github.florent37.materialviewpager.MaterialViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="48dp"
app:viewpager_logo="@layout/fragment_mybeauty_header"
app:viewpager_pagerTitleStrip="@layout/mybeauty_tab"
app:viewpager_logoMarginTop="0dp"
app:viewpager_color="@color/white"
app:viewpager_headerHeight="165dp"
app:viewpager_headerAlpha="0.6"
app:viewpager_hideLogoWithFade="true"
app:viewpager_hideToolbarAndTitle="true"
app:viewpager_enableToolbarElevation="true"
app:viewpager_parallaxHeaderFactor="1.5"
app:viewpager_headerAdditionalHeight="20dp"
app:viewpager_displayToolbarWhenSwipe="true"/>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/profile_header"
android:layout_width="match_parent"
android:layout_height="165dp">
<ImageView
android:id="@+id/profile_bg"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/profile_bg"
android:scaleType="fitCenter"/>
<LinearLayout
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:paddingLeft="48dp"
android:paddingRight="48dp"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true">
<com.mikhaellopez.circularimageview.CircularImageView
android:id="@+id/profile_img"
android:layout_width="0dp"
android:layout_height="96dp"
android:layout_weight="0.35"
app:border_width="2dp"
app:border_color="@color/white"
android:scaleType="centerCrop"
android:src="@drawable/ic_default" />
<LinearLayout
android:layout_marginLeft="16dp"
android:orientation="vertical"
android:layout_width="0dp"
android:layout_weight="0.65"
android:layout_height="wrap_content">
<TextView
android:id="@+id/profile_name"
android:text="name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@color/white"
android:textSize="18dp" />
<View
android:layout_marginTop="5dp"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/background_grey"/>
<LinearLayout
android:layout_marginTop="5dp"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/profile_status"
android:layout_width="0dp"
android:layout_weight="0.5"
android:textSize="14dp"
android:textColor="@color/white"
android:text="status"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/profile_skintype"
android:layout_width="0dp"
android:layout_weight="0.5"
android:textSize="14dp"
android:textColor="@color/white"
android:text="skin type"
android:layout_height="wrap_content" />
</LinearLayout>
<TextView
android:layout_marginTop="5dp"
android:id="@+id/profile_blog"
android:textSize="12dp"
android:textColor="@color/dark_pink"
android:text="blog"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:layout_marginTop="5dp"
android:id="@+id/profile_vlog"
android:textSize="12dp"
android:textColor="@color/dark_pink"
android:text="vlog"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
<com.astuetz.PagerSlidingTabStrip xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/materialviewpager_pagerTitleStrip"
app:pstsShouldExpand="true"
app:pstsTextAllCaps="true"
app:pstsTabPaddingLeftRight="8dp"
app:pstsTabBackground="@color/white"
app:pstsIndicatorHeight="2dp"
app:pstsIndicatorColor="@color/theme_black"
android:layout_width="match_parent"
android:layout_height="match_parent">
</com.astuetz.PagerSlidingTabStrip>
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:context="co.bookyourstyle.bys.beautyme.ui.PouchFragment">
<android.support.v7.widget.RecyclerView
android:id="@+id/pouch_list"
android:layout_height="match_parent"
android:layout_width="wrap_content">
</android.support.v7.widget.RecyclerView>
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment