diff --git a/res/drawable/app_filter_spinner_background.xml b/res/drawable/app_filter_spinner_background.xml
new file mode 100644
index 00000000000..70a56ff5c8c
--- /dev/null
+++ b/res/drawable/app_filter_spinner_background.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/res/drawable/ic_expand_more_inverse.xml b/res/drawable/ic_expand_more_inverse.xml
new file mode 100644
index 00000000000..c39e3f97f0b
--- /dev/null
+++ b/res/drawable/ic_expand_more_inverse.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
diff --git a/res/drawable/ic_settings_24dp_inverse.xml b/res/drawable/ic_settings_24dp_inverse.xml
new file mode 100644
index 00000000000..6f70d21e256
--- /dev/null
+++ b/res/drawable/ic_settings_24dp_inverse.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/res/layout/apps_filter_spinner.xml b/res/layout/apps_filter_spinner.xml
index 3ba7404bfa0..3eebbb02f51 100644
--- a/res/layout/apps_filter_spinner.xml
+++ b/res/layout/apps_filter_spinner.xml
@@ -15,38 +15,32 @@
limitations under the License.
-->
-
+ android:orientation="horizontal">
+ android:layout_width="0dp"
+ android:layout_weight="1"
+ android:paddingStart="64dp"
+ android:background="@drawable/app_filter_spinner_background"/>
-
-
+
diff --git a/res/layout/filter_spinner_item.xml b/res/layout/filter_spinner_item.xml
index 68f6f91c10e..ffdd623d5fb 100644
--- a/res/layout/filter_spinner_item.xml
+++ b/res/layout/filter_spinner_item.xml
@@ -15,12 +15,14 @@
limitations under the License.
-->
-
+ android:textAlignment="inherit" />
diff --git a/tests/robotests/src/com/android/settings/testutils/shadow/SettingsShadowResources.java b/tests/robotests/src/com/android/settings/testutils/shadow/SettingsShadowResources.java
index 181ae64272b..113c7aa29bc 100644
--- a/tests/robotests/src/com/android/settings/testutils/shadow/SettingsShadowResources.java
+++ b/tests/robotests/src/com/android/settings/testutils/shadow/SettingsShadowResources.java
@@ -10,6 +10,9 @@ import android.graphics.drawable.Drawable;
import android.support.annotation.ArrayRes;
import android.util.AttributeSet;
import android.util.TypedValue;
+
+import com.android.settings.R;
+
import org.robolectric.RuntimeEnvironment;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
@@ -36,7 +39,8 @@ import static org.robolectric.internal.Shadow.directlyOn;
@Implements(Resources.class)
public class SettingsShadowResources extends ShadowResources {
- @RealObject public Resources realResources;
+ @RealObject
+ public Resources realResources;
@Implementation
public int getDimensionPixelSize(@DimenRes int id) throws NotFoundException {
@@ -54,12 +58,14 @@ public class SettingsShadowResources extends ShadowResources {
// The drawable item in switchbar_background.xml refers to a very recent color attribute
// that Robolectric isn't yet aware of.
// TODO: Remove this once Robolectric is updated.
- if (id == com.android.settings.R.drawable.switchbar_background) {
+ if (id == R.drawable.switchbar_background) {
return new ColorDrawable();
- } else if (id == com.android.settings.R.drawable.ic_launcher_settings) {
+ } else if (id == R.drawable.ic_launcher_settings) {
// ic_launcher_settings uses adaptive-icon, which is not supported by robolectric,
// change it to a normal drawable.
- id = com.android.settings.R.drawable.ic_settings_wireless;
+ id = R.drawable.ic_settings_wireless;
+ } else if (id == R.drawable.app_filter_spinner_background) {
+ id = R.drawable.ic_expand_more_inverse;
}
return super.loadDrawable(value, id, theme);
}