NewPipe/app/src/main/res/layout/mission_item.xml

86 lines
3.1 KiB
XML
Raw Normal View History

2020-10-09 18:24:02 +00:00
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2020-10-09 18:24:02 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/item_bkg"
android:layout_width="match_parent"
2020-10-09 18:24:02 +00:00
android:layout_height="wrap_content"
android:layout_margin="2dp"
android:background="@color/bluegray">
<RelativeLayout
android:id="@+id/item_title_line"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginTop="2dp">
<TextView
android:id="@+id/item_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="6dp"
android:singleLine="true"
android:text="0%"
2020-10-09 18:24:02 +00:00
android:textColor="@color/white"
android:textSize="20sp" />
<ImageView
android:id="@+id/item_more"
2020-10-09 18:24:02 +00:00
style="?attr/buttonBarButtonStyle"
android:layout_width="49dp"
android:layout_height="49dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="1dp"
2020-10-09 18:24:02 +00:00
android:contentDescription="TODO"
android:scaleType="center"
2020-10-09 18:24:02 +00:00
app:srcCompat="@drawable/ic_more_vert_white_24dp" />
</RelativeLayout>
<ImageView
android:id="@+id/item_icon"
android:layout_width="72dp"
android:layout_height="72dp"
android:layout_below="@id/item_title_line"
android:layout_centerHorizontal="true"
2020-10-09 18:24:02 +00:00
android:contentDescription="TODO"
android:gravity="center"
android:padding="10dp"
2020-10-09 18:24:02 +00:00
android:scaleType="fitXY" />
<TextView
android:id="@+id/item_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/item_icon"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
2020-10-09 18:24:02 +00:00
android:padding="6dp"
android:scrollHorizontally="true"
2020-10-09 18:24:02 +00:00
android:singleLine="true"
android:text="XXX.xx"
2020-10-09 18:24:02 +00:00
android:textColor="@color/white"
android:textSize="16sp"
2020-10-09 18:24:02 +00:00
android:textStyle="bold" />
<TextView
android:id="@+id/item_size"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/item_name"
android:padding="6dp"
android:singleLine="true"
android:text="100.00MB"
2020-10-09 18:24:02 +00:00
android:textColor="@color/white"
android:textSize="12sp" />
</RelativeLayout>
2020-10-09 18:24:02 +00:00
</RelativeLayout>