Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/selection_border"
- android:orientation="horizontal"
- android:padding="10dp">
- <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/title_background"
- android:layout_width="50dp"
- android:layout_height="50dp"
- android:layout_alignParentLeft="true"
- android:layout_marginRight="5dp"
- android:background="@drawable/track_preview">
- <ImageView
- android:id="@+id/imTitle"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:scaleType="centerCrop" />
- <ProgressBar
- android:id="@+id/load_track_progress"
- android:layout_width="50dp"
- android:layout_height="50dp"
- android:background="@color/white"
- android:indeterminate="true"
- android:visibility="gone" />
- </FrameLayout>
- <LinearLayout
- android:id="@+id/controls"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true">
- <View
- android:id="@+id/download_track"
- android:layout_width="35dp"
- android:layout_height="35dp"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:background="@drawable/ic_save_black"
- android:clickable="true"
- android:contentDescription="@string/download_track" />
- <ProgressBar
- android:id="@+id/download_progress"
- style="?android:attr/progressBarStyleHorizontal"
- android:layout_width="35dp"
- android:layout_height="35dp"
- android:background="@drawable/circle_shape"
- android:indeterminate="false"
- android:max="100"
- android:progressDrawable="@drawable/circular_progress_bar"
- android:visibility="gone" />
- <ProgressBar
- android:id="@+id/prepare_download_progress"
- android:layout_width="35dp"
- android:layout_height="35dp"
- android:background="@color/white"
- android:indeterminate="true"
- android:visibility="gone" />
- <View
- android:id="@+id/download_complete"
- android:layout_width="35dp"
- android:layout_height="35dp"
- android:background="@drawable/ic_cab_done_mtrl_alpha"
- android:visibility="gone" />
- </LinearLayout>
- <com.devspark.robototextview.widget.RobotoTextView
- android:id="@+id/upper_text"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:layout_margin="5dp"
- android:layout_toLeftOf="@+id/controls"
- android:layout_toRightOf="@+id/title_background"
- android:ellipsize="end"
- android:maxLines="1"
- android:text="@string/placeholder_title"
- android:textColor="@color/primary_text"
- android:textSize="16sp"
- app:fontFamily="roboto"
- app:textStyle="normal"
- app:textWeight="normal" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/upper_text"
- android:layout_toLeftOf="@+id/controls"
- android:layout_toRightOf="@+id/title_background">
- <com.devspark.robototextview.widget.RobotoTextView
- android:id="@+id/lower_text"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="5dp"
- android:layout_marginTop="1dp"
- android:ellipsize="end"
- android:maxLines="1"
- android:text="@string/placeholder_artist"
- android:textColor="@color/secondary_text"
- android:textSize="12sp" />
- <com.devspark.robototextview.widget.RobotoTextView
- android:id="@+id/tvDuration"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="10dp"
- android:layout_marginTop="1dp"
- android:layout_weight="1"
- android:maxLines="1"
- android:textSize="12sp"
- app:typeface="roboto_light" />
- </LinearLayout>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement