Initial-Release
This commit is contained in:
57
app/src/main/res/layout/list_row.xml
Normal file
57
app/src/main/res/layout/list_row.xml
Normal file
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/list_row_selector"
|
||||
android:padding="8dp" >
|
||||
|
||||
<!-- Thumbnail Image -->
|
||||
<com.android.volley.toolbox.NetworkImageView
|
||||
android:id="@+id/thumbnail"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginRight="8dp" />
|
||||
|
||||
<!-- Movie Title -->
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/thumbnail"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textSize="@dimen/title"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<!-- Rating -->
|
||||
<TextView
|
||||
android:id="@+id/rating"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/title"
|
||||
android:layout_marginTop="1dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<!-- Genre -->
|
||||
<TextView
|
||||
android:id="@+id/genre"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/rating"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textColor="@color/genre"
|
||||
android:textSize="@dimen/genre" />
|
||||
|
||||
<!-- Release Year -->
|
||||
<TextView
|
||||
android:id="@+id/releaseYear"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:textColor="@color/year"
|
||||
android:textSize="@dimen/year" />
|
||||
|
||||
</RelativeLayout>
|
||||
Reference in New Issue
Block a user