1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-19 00:04:56 +00:00
NewPipe/app/src/main/res/layout/mission_item_linear.xml
2020-10-14 11:04:48 +02:00

79 lines
2.8 KiB
XML

<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">
<RelativeLayout
android:id="@+id/item_bkg"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="2dp"
android:background="@color/bluegray">
<ImageView
android:id="@+id/item_icon"
android:layout_width="72dp"
android:layout_height="72dp"
android:layout_centerVertical="true"
android:contentDescription="TODO"
android:gravity="center"
android:padding="15dp"
android:scaleType="fitXY" />
<TextView
android:id="@+id/item_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/item_more"
android:layout_toRightOf="@id/item_icon"
android:ellipsize="end"
android:padding="6dp"
android:text="XXX.xx"
android:textColor="@color/white"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/item_size"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/item_name"
android:layout_toRightOf="@id/item_icon"
android:padding="6dp"
android:singleLine="true"
android:text="100.00MB"
android:textColor="@color/white"
android:textSize="12sp" />
<TextView
android:id="@+id/item_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/item_name"
android:layout_marginLeft="6dp"
android:layout_marginRight="5dp"
android:layout_toLeftOf="@+id/item_more"
android:layout_toRightOf="@id/item_size"
android:padding="6dp"
android:singleLine="true"
android:text="0%"
android:textColor="@color/white"
android:textSize="12sp"
android:textStyle="bold" />
<ImageView
android:id="@+id/item_more"
style="?attr/buttonBarButtonStyle"
android:layout_width="49dp"
android:layout_height="49dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="4dp"
android:contentDescription="TODO"
android:scaleType="centerInside"
app:srcCompat="@drawable/ic_more_vert_white_24dp" />
</RelativeLayout>
</RelativeLayout>