Created
March 16, 2018 02:30
-
-
Save skydoves/41d4a5d5ef2fbd23254de890885abdb5 to your computer and use it in GitHub Desktop.
item_history
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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