Left aligned the dropdown list of ManageApplications
Based on the Android S design, left aligned the dropdown list of ManageApplications, e.g., All apps, App notifications Bug: 178774987 Test: visual Change-Id: I04143798475d20319980396d6bd755193ae2b1f0
This commit is contained in:
32
res/layout/manage_apps_filter_spinner.xml
Normal file
32
res/layout/manage_apps_filter_spinner.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2021 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/transparent">
|
||||
|
||||
<com.android.settingslib.widget.settingsspinner.SettingsSpinner
|
||||
android:id="@+id/filter_spinner"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:theme="@style/Widget.PopupWindow.Settings"/>
|
||||
</FrameLayout>
|
@@ -434,7 +434,7 @@ public class ManageApplications extends InstrumentedFragment
|
||||
final Activity activity = getActivity();
|
||||
final FrameLayout pinnedHeader = mRootView.findViewById(R.id.pinned_header);
|
||||
mSpinnerHeader = activity.getLayoutInflater()
|
||||
.inflate(R.layout.apps_filter_spinner, pinnedHeader, false);
|
||||
.inflate(R.layout.manage_apps_filter_spinner, pinnedHeader, false);
|
||||
mFilterSpinner = mSpinnerHeader.findViewById(R.id.filter_spinner);
|
||||
mFilterAdapter = new FilterSpinnerAdapter(this);
|
||||
mFilterSpinner.setAdapter(mFilterAdapter);
|
||||
|
Reference in New Issue
Block a user