UI Tweaks to Zen Mode Voice Activity.
Small cleanup of the UI / strings.
- Cleanup of string constant names.
- Add a specific string for ZenModeVoiceActivity label.
- Change look of list position indicators.
- Add optional header to VoiceSettingsActivity.
- Fix NPE in some cases when disabling Zen mode.
Change-Id: Ic09ee2b1b5a50891b5447c2db0e3de3c475696bf
diff --git a/res/layout/voice_interaction.xml b/res/layout/voice_interaction.xml
index 13c4341..ed0cd1a 100644
--- a/res/layout/voice_interaction.xml
+++ b/res/layout/voice_interaction.xml
@@ -14,10 +14,20 @@
limitations under the License.
-->
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/fragment_root"
- android:paddingLeft="8dp"
- android:paddingRight="8dp"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:padding="8dp"
+ android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
-</FrameLayout>
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textColor="@color/voice_interaction_highlight"
+ android:id="@+id/voice_fragment_header" />
+ <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/voice_fragment_root"
+ android:padding="8dp"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+</LinearLayout>