Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created March 16, 2018 02:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save skydoves/41d4a5d5ef2fbd23254de890885abdb5 to your computer and use it in GitHub Desktop.
item_history
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable name="history" type="com.skydoves.githubfollows.models.History"/>
</data>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/background800">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground">
<ImageView
android:id="@+id/item_history_icon"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_margin="10dp"
android:src="@drawable/ic_history"/>
<TextView
android:id="@+id/item_history_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:padding="10dp"
android:textSize="18sp"
android:textColor="@color/HintText"
android:singleLine="true"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/item_history_icon"
android:text="@{history.search}"
tools:text="skydoves"/>
<ImageView
android:id="@+id/item_history_delete"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_margin="10dp"
android:src="@drawable/ic_close"
android:layout_alignParentRight="true"/>
</RelativeLayout>
</LinearLayout>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment