mirror of
https://github.com/MaintainTeam/LastPipeBender.git
synced 2025-03-04 15:28:21 +03:00
For all manually-created images PNG have been kept. - rename all icon attrs to have a `ic_` prefix - always use `_24dp` icons, because there is no real difference, since they are vector drawables - always use the original name found on material.io for icon drawables, as to not create confusion and possibly duplicates. Icon names can still be different from real drawable names, though I have made some of them compliant to this or maybe more meaningul. - remove duplicate `getIconByAttr()` in ThemeHelper (use `resolveResourceIdFromAttr()` - use standard icons for `expand_more` and `expand_less` instead of triangles - use `play_button_outline` instead of custom PNG as play button in VideoDetailFragment (questionable, as there is no shadow anymore)
78 lines
2.2 KiB
XML
78 lines
2.2 KiB
XML
<RelativeLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="match_parent">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/item_bkg"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="match_parent"
|
|
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:scaleType="fitXY"
|
|
android:gravity="center"
|
|
android:padding="15dp"
|
|
android:contentDescription="TODO" />
|
|
|
|
<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_toRightOf="@id/item_icon"
|
|
android:layout_below="@+id/item_name"
|
|
android:padding="6dp"
|
|
android:singleLine="true"
|
|
android:text="100.00MB"
|
|
android:textSize="12sp"
|
|
android:textColor="@color/white"/>
|
|
|
|
<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:textStyle="bold"
|
|
android:text="0%"
|
|
android:textColor="@color/white"
|
|
android:textSize="12sp" />
|
|
|
|
<ImageView
|
|
style="?attr/buttonBarButtonStyle"
|
|
android:id="@+id/item_more"
|
|
android:layout_width="49dp"
|
|
android:layout_height="49dp"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginRight="4dp"
|
|
android:src="@drawable/ic_more_vert_white_24dp"
|
|
android:scaleType="centerInside"
|
|
android:contentDescription="TODO" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</RelativeLayout>
|