Skip to content

Instantly share code, notes, and snippets.

@stiucsib86
Last active December 21, 2015 16:59
Show Gist options
  • Save stiucsib86/6337261 to your computer and use it in GitHub Desktop.
Save stiucsib86/6337261 to your computer and use it in GitHub Desktop.
ChatHead XML
<?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="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/txt_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#d0bb0000"
android:padding="12dp"
android:text="Medium Text"
android:textColor="#d0ffffff"
android:textSize="16sp"
android:textStyle="bold"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#d0ff0000"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#d0ffffff"/>
<TextView
android:id="@+id/txt_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="12dp"
android:text="TextView"
android:textColor="#d0ffffff"/>
<Button
android:id="@+id/btn_dismiss"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:text="Dismiss"
android:textColor="#d0ffffff"
android:textStyle="bold"/>
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment