diff options
| author | 2021-07-24 05:53:04 +0000 | |
|---|---|---|
| committer | 2021-07-24 05:53:04 +0000 | |
| commit | 832779a555e4a2afa6cf3d98713f1aa3d4b41bf4 (patch) | |
| tree | de7c4f47dbd008805d94c02a71a825259d8ed756 | |
| parent | 4e0923499965625569a8195bc7f824665714c072 (diff) | |
| parent | 6e6455518c77ce7148123311737821ed22c7576f (diff) | |
Merge "Sharesheet: remove 2 separators, restyle the 3rd." into sc-dev
| -rw-r--r-- | core/java/com/android/internal/app/ChooserActivity.java | 6 | ||||
| -rw-r--r-- | core/res/res/drawable/chooser_row_layer_list.xml | 6 | ||||
| -rw-r--r-- | core/res/res/layout/chooser_az_label_row.xml | 11 |
3 files changed, 7 insertions, 16 deletions
diff --git a/core/java/com/android/internal/app/ChooserActivity.java b/core/java/com/android/internal/app/ChooserActivity.java index 93d0d02f5a9f..786af5f0823e 100644 --- a/core/java/com/android/internal/app/ChooserActivity.java +++ b/core/java/com/android/internal/app/ChooserActivity.java @@ -3454,8 +3454,6 @@ public class ChooserActivity extends ResolverActivity implements private View createProfileView(ViewGroup parent) { View profileRow = mLayoutInflater.inflate(R.layout.chooser_profile_row, parent, false); - profileRow.setBackground( - getResources().getDrawable(R.drawable.chooser_row_layer_list, null)); mProfileView = profileRow.findViewById(R.id.profile_button); mProfileView.setOnClickListener(ChooserActivity.this::onProfileClick); updateProfileViewButton(); @@ -3601,10 +3599,6 @@ public class ChooserActivity extends ResolverActivity implements final ViewGroup viewGroup = (ViewGroup) holder.itemView; int start = getListPosition(position); int startType = getRowType(start); - if (viewGroup.getForeground() == null && position > 0) { - viewGroup.setForeground( - getResources().getDrawable(R.drawable.chooser_row_layer_list, null)); - } int columnCount = holder.getColumnCount(); int end = start + columnCount - 1; diff --git a/core/res/res/drawable/chooser_row_layer_list.xml b/core/res/res/drawable/chooser_row_layer_list.xml index 080081521ddf..f5ba1e9d633b 100644 --- a/core/res/res/drawable/chooser_row_layer_list.xml +++ b/core/res/res/drawable/chooser_row_layer_list.xml @@ -17,9 +17,11 @@ */ --> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> - <item android:bottom="-5dp" android:left="-5dp" android:right="-5dp"> + <item> <shape android:shape="rectangle"> - <stroke android:width="1dp" android:color="@color/chooser_row_divider"/> + <solid android:color="?android:attr/colorAccentSecondary"/> + <size android:width="128dp" android:height="2dp"/> + <corners android:radius="2dp" /> </shape> </item> </layer-list> diff --git a/core/res/res/layout/chooser_az_label_row.xml b/core/res/res/layout/chooser_az_label_row.xml index 1b733fc907cc..baf07cec9875 100644 --- a/core/res/res/layout/chooser_az_label_row.xml +++ b/core/res/res/layout/chooser_az_label_row.xml @@ -15,17 +15,12 @@ ~ limitations under the License --> -<!-- Separator applied as background --> -<TextView xmlns:android="http://schemas.android.com/apk/res/android" - android:text="@string/chooser_all_apps_button_label" +<ImageView xmlns:android="http://schemas.android.com/apk/res/android" android:contentDescription="@string/chooser_all_apps_button_label" - android:background="@drawable/chooser_row_layer_list" - android:textAppearance="?attr/textAppearanceSmall" - android:textColor="?attr/textColorSecondary" - android:textSize="14sp" - android:singleLine="true" + android:src="@drawable/chooser_row_layer_list" android:paddingTop="16dp" android:layout_width="match_parent" android:layout_height="wrap_content" + android:scaleType="center" android:gravity="center"/> |