Skip to content

Instantly share code, notes, and snippets.

@thaiall
Created August 10, 2017 08:43
Show Gist options
  • Save thaiall/304e6ddd917dd0350aa57fba72955082 to your computer and use it in GitHub Desktop.
Save thaiall/304e6ddd917dd0350aa57fba72955082 to your computer and use it in GitHub Desktop.
Android Studio : layoutofnotification
<?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:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="com.thaiall.www.layoutofnotification.MainActivity"
tools:showIn="@layout/activity_main">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="24dp">
<TextView
android:layout_width="match_parent"
android:layout_height="24dp"
android:background="#000088"
android:gravity="center"
android:text="@string/information"
android:textColor="#ffffff"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent" />
</LinearLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#dddddd" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/textView1"
android:layout_width="match_parent"
android:layout_height="30dp"
android:drawableStart="@android:drawable/btn_star"
android:text="@string/data"
android:background="#ffffdd"/>
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableStart="@android:drawable/btn_star"
android:text="@string/data1"
android:background="#ddffdd" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/data"
android:src="@android:drawable/btn_star" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/data1" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/imageView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/data"
android:src="@android:drawable/btn_star"
android:background="#ffffdd" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/data2"
android:background="#ddffdd" />
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/data"
android:src="@android:drawable/btn_star" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/data2" />
</RelativeLayout>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/data"
android:src="@android:drawable/btn_star"
android:background="#ffffdd" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toEndOf="@+id/imageView2"
android:text="@string/data2"
android:background="#ddffdd" />
</RelativeLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment