Skip to content

Instantly share code, notes, and snippets.

@androidxhackathon
Created March 22, 2019 10:51
Show Gist options
  • Save androidxhackathon/9770d60285e186e4c4a442b07b9bdb0c to your computer and use it in GitHub Desktop.
Save androidxhackathon/9770d60285e186e4c4a442b07b9bdb0c to your computer and use it in GitHub Desktop.
ListAdapterRenewed: code example car_list_row.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:orientation="vertical"
android:paddingLeft="16dp"
android:paddingTop="16dp"
android:paddingRight="16dp"
android:paddingBottom="16dp">
<TextView
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:textColor="@android:color/black"
android:textSize="16sp"
android:textStyle="bold"/>
<TextView
android:id="@+id/manufacturer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/name"
android:textColor="@android:color/black"/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment