Skip to content

Instantly share code, notes, and snippets.

@prasad091
Created January 25, 2017 06:23
Show Gist options
  • Save prasad091/07ea398ae0ff51c486cb91f9f7baef45 to your computer and use it in GitHub Desktop.
Save prasad091/07ea398ae0ff51c486cb91f9f7baef45 to your computer and use it in GitHub Desktop.
contacts
<android.support.design.widget.CoordinatorLayout 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:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<android.support.design.widget.AppBarLayout
android:id="@+id/app_bar"
android:layout_width="match_parent"
android:layout_height="@dimen/material_layout_app_bar_height"
android:fitsSystemWindows="true"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/collapse_toolbar_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
app:contentScrim="?attr/colorPrimary"
app:expandedTitleMarginEnd="64dp"
app:expandedTitleMarginStart="48dp"
app:layout_scrollFlags="scroll|exitUntilCollapsed|enterAlwaysCollapsed">
<ImageView
android:id="@+id/photo"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:scaleType="centerCrop"
app:layout_collapseMode="parallax" />
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:layout_collapseMode="pin"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<android.support.v4.widget.NestedScrollView
android:id="@+id/movie_detail_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="@dimen/material_layout_keylines_screen_edge_margin"
android:layout_marginLeft="@dimen/activity_horizontal_margin"
android:layout_marginRight="@dimen/activity_horizontal_margin"
android:layout_marginTop="@dimen/material_layout_keylines_screen_edge_margin"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingTop="24dp">
<com.kgislias.messenger.util.ChatFontTextView
android:id="@+id/status"
style="?android:attr/textAppearanceMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:autoLink="web"
android:gravity="center_vertical"
android:linksClickable="true"
app:textStyle="@integer/font_style_extra_bold"
android:text="Status"
android:textColor="@color/black"
app:font="@string/font_name_source_sans_pro" />
<android.support.v4.widget.Space
android:layout_width="match_parent"
android:layout_height="16dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<com.kgislias.messenger.util.ChatFontTextView
android:id="@+id/status_msg"
style="?android:attr/textAppearanceMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:autoLink="web"
android:gravity="center_vertical"
android:linksClickable="true"
android:text="@string/sampletext"
android:textColor="#7D42FF"
app:font="@string/font_name_source_sans_pro" />
</LinearLayout>
<android.support.v4.widget.Space
android:layout_width="match_parent"
android:layout_height="16dp" />
<com.kgislias.messenger.util.ChatFontTextView
android:id="@+id/article_body"
style="?android:attr/textAppearanceMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:autoLink="web"
android:gravity="center_vertical"
android:linksClickable="true"
android:text="My Friends"
app:textStyle="@integer/font_style_extra_bold"
android:textColor="@color/black"
app:font="@string/font_name_source_sans_pro" />
<android.support.v4.widget.Space
android:layout_width="match_parent"
android:layout_height="16dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/favimage"
android:layout_width="56dp"
android:layout_height="wrap_content"
android:scaleType="centerCrop"
app:srcCompat="@drawable/ic_menu_camera" />
<ImageView
android:id="@+id/favimage2"
android:layout_width="56dp"
android:layout_height="wrap_content"
android:scaleType="centerCrop"
app:srcCompat="@drawable/ic_menu_camera" />
<com.kgislias.messenger.util.ChatFontTextView
android:id="@+id/user_count"
style="?android:attr/textAppearanceMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:autoLink="web"
android:gravity="center_vertical"
android:linksClickable="true"
android:text="100+"
android:textColor="#7D42FF"
app:font="@string/font_name_source_sans_pro" />
</LinearLayout>
<com.kgislias.messenger.util.ChatFontTextView
android:id="@+id/info"
style="?android:attr/textAppearanceMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:autoLink="web"
android:gravity="center_vertical"
android:linksClickable="true"
android:paddingTop="@dimen/material_layout_keylines_screen_edge_margin"
android:text="Info"
app:textStyle="@integer/font_style_extra_bold"
android:textColor="@color/black"
app:font="@string/font_name_source_sans_pro" />
<android.support.v4.widget.Space
android:layout_width="match_parent"
android:layout_height="16dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<ImageView
android:id="@+id/person_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:autoLink="web"
android:layout_weight="1"
app:srcCompat="@drawable/ic_menu_camera"
android:gravity="center_vertical"
android:linksClickable="true"
/>
<com.kgislias.messenger.util.ChatFontTextView
android:id="@+id/phone_user"
style="?android:attr/textAppearanceMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:autoLink="web"
android:gravity="center_vertical"
android:linksClickable="true"
android:layout_weight="1"
android:layout_marginLeft="@dimen/activity_horizontal_margin"
android:text="066 845 25689"
android:textColor="#7D42FF"
app:font="@string/font_name_source_sans_pro" />
<ImageView
android:id="@+id/phone_call"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:autoLink="web"
app:srcCompat="@drawable/ic_call_black_24dp"
android:gravity="center_vertical"
android:layout_weight="1"
android:linksClickable="true"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:visibility="gone"
android:padding="@dimen/activity_horizontal_margin">
<com.kgislias.messenger.util.ChatFontTextView
android:id="@+id/name2"
style="?android:attr/textAppearanceMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:autoLink="web"
android:gravity="center_vertical"
android:linksClickable="true"
android:text="Phone"
android:textColor="#7D42FF"
app:font="@string/font_name_source_sans_pro" />
<com.kgislias.messenger.util.ChatFontTextView
android:id="@+id/name_user2"
style="?android:attr/textAppearanceMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:autoLink="web"
android:gravity="center_vertical"
android:linksClickable="true"
android:layout_marginLeft="@dimen/activity_horizontal_margin"
android:text="9688445886"
android:textColor="#7D42FF"
app:font="@string/font_name_source_sans_pro" />
</LinearLayout>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
<android.support.design.widget.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:clickable="true"
app:srcCompat="@drawable/ic_chat"
app:layout_anchor="@id/app_bar"
app:layout_anchorGravity="bottom|right|end" />
</android.support.design.widget.CoordinatorLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment