summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2013-08-06 13:53:58 -0700
committerAlan Viverette <alanv@google.com>2013-08-06 13:53:58 -0700
commitcc0e782871eb6b946ded880e391866f27953654b (patch)
treebc4440a24d436953adb8e86423a77a0b52be8f93 /res/layout
parent279a8dfc4077ab6623213da17954e307806cddc8 (diff)
downloadpackages_apps_Settings-cc0e782871eb6b946ded880e391866f27953654b.zip
packages_apps_Settings-cc0e782871eb6b946ded880e391866f27953654b.tar.gz
packages_apps_Settings-cc0e782871eb6b946ded880e391866f27953654b.tar.bz2
Add captioning preferences screen
BUG: 9926077 Change-Id: Iea141d5d6fd0e4f134c36c51d89830b3c31abd09
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/captioning_preview.xml49
-rw-r--r--res/layout/color_picker_item.xml35
-rw-r--r--res/layout/grid_picker_dialog.xml33
-rw-r--r--res/layout/preference_color.xml22
-rw-r--r--res/layout/preset_picker_item.xml42
5 files changed, 181 insertions, 0 deletions
diff --git a/res/layout/captioning_preview.xml b/res/layout/captioning_preview.xml
new file mode 100644
index 0000000..b2e16fa
--- /dev/null
+++ b/res/layout/captioning_preview.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2013 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.
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical" >
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/captioning_preview_height" >
+
+ <ImageView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:contentDescription="@null"
+ android:scaleType="centerCrop"
+ android:src="@drawable/caption_background" />
+
+ <com.android.settings.accessibility.CaptioningTextView
+ android:id="@+id/preview_text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="bottom|start"
+ android:layout_margin="16dp"
+ android:text="@string/captioning_preview_text" />
+ </FrameLayout>
+
+ <fragment
+ android:id="@+id/properties_fragment"
+ android:name="com.android.settings.accessibility.CaptionPropertiesFragment"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+</LinearLayout>
diff --git a/res/layout/color_picker_item.xml b/res/layout/color_picker_item.xml
new file mode 100644
index 0000000..80a18f3
--- /dev/null
+++ b/res/layout/color_picker_item.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2013 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.
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="96dp"
+ android:layout_height="wrap_content"
+ android:orientation="vertical" >
+
+ <ImageView
+ android:id="@+id/color_swatch"
+ android:layout_width="96dp"
+ android:layout_height="96dp"
+ android:contentDescription="@null" />
+
+ <TextView
+ android:id="@+id/summary"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center" />
+
+</LinearLayout>
diff --git a/res/layout/grid_picker_dialog.xml b/res/layout/grid_picker_dialog.xml
new file mode 100644
index 0000000..f152ba1
--- /dev/null
+++ b/res/layout/grid_picker_dialog.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2013 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.
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical" >
+
+ <GridView
+ android:id="@android:id/list"
+ android:layout_width="match_parent"
+ android:layout_height="400dp"
+ android:columnWidth="112dp"
+ android:numColumns="auto_fit"
+ android:stretchMode="spacingWidthUniform"
+ android:verticalSpacing="16dp"
+ android:paddingTop="16dp" />
+
+</LinearLayout>
diff --git a/res/layout/preference_color.xml b/res/layout/preference_color.xml
new file mode 100644
index 0000000..de4b832
--- /dev/null
+++ b/res/layout/preference_color.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2013 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.
+-->
+
+<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/color_preview"
+ android:layout_width="?android:attr/listPreferredItemHeight"
+ android:layout_height="?android:attr/listPreferredItemHeight"
+ android:contentDescription="@null" />
diff --git a/res/layout/preset_picker_item.xml b/res/layout/preset_picker_item.xml
new file mode 100644
index 0000000..6f99980
--- /dev/null
+++ b/res/layout/preset_picker_item.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2013 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.
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="96dp"
+ android:layout_height="wrap_content"
+ android:orientation="vertical" >
+
+ <FrameLayout
+ android:layout_width="96dp"
+ android:layout_height="96dp"
+ android:background="@drawable/transparency_tileable" >
+
+ <com.android.settings.accessibility.CaptioningTextView
+ android:id="@+id/preview"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center"
+ android:text="@string/captioning_preview_characters" />
+ </FrameLayout>
+
+ <TextView
+ android:id="@+id/summary"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center" />
+
+</LinearLayout>