Add "Stop" button for remote device
-Add "Stop" to stop remote media session -Refine UI layout 1. Adjust size of head icon and apply defined dimen value 2. Move list padding inside the list to prevent truncating the list 3. Remove group-related view(I will add it in recycle view when the group feature is ready.) -Add MediaOutputDialogTest -Rename PAIR_NEW to CUSTOMIZED_ITEM_PAIR_NEW -Integrate more UI view in setTwoLineLayout() Bug: 155822415 Test: atest MediaOutputAdapterTest MediaOutputBaseDialogTest MediaOutputControllerTest MediaOutputDialogTest Merged-In: Ie6a917c56a0ef97f772a8f43742afd2ee61e407f Change-Id: Ie6a917c56a0ef97f772a8f43742afd2ee61e407f
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
android:id="@+id/header_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingEnd="16dp"/>
|
||||
android:paddingEnd="@dimen/media_output_dialog_header_icon_padding"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -70,36 +70,14 @@
|
||||
android:id="@+id/device_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="start|center_vertical"
|
||||
android:orientation="vertical">
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="12dp"/>
|
||||
|
||||
<include
|
||||
layout="@layout/media_output_list_item"
|
||||
android:id="@+id/group_item_controller"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<View
|
||||
android:id="@+id/group_item_divider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/listDivider"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/list_result"
|
||||
android:scrollbars="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:overScrollMode="never"/>
|
||||
|
||||
<View
|
||||
android:id="@+id/list_bottom_padding"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="12dp"/>
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
|
||||
@@ -1404,9 +1404,10 @@
|
||||
<dimen name="config_rounded_mask_size_bottom">@*android:dimen/rounded_corner_radius_bottom</dimen>
|
||||
|
||||
<!-- Output switcher panel related dimensions -->
|
||||
<dimen name="media_output_dialog_padding_top">11dp</dimen>
|
||||
<dimen name="media_output_dialog_list_margin">12dp</dimen>
|
||||
<dimen name="media_output_dialog_list_max_height">364dp</dimen>
|
||||
<dimen name="media_output_dialog_header_album_icon_size">52dp</dimen>
|
||||
<dimen name="media_output_dialog_header_back_icon_size">36dp</dimen>
|
||||
<dimen name="media_output_dialog_header_icon_padding">16dp</dimen>
|
||||
<dimen name="media_output_dialog_icon_corner_radius">16dp</dimen>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user