Make the Notify Builder test usable on phones.

Change-Id: Ibaa3b2b99bde7dfd3d9fc6bc4c0068fc1d7b914d
This commit is contained in:
Daniel Sandler
2011-06-16 13:00:01 -04:00
parent 0a4d51d581
commit 396263fc97
17 changed files with 279 additions and 219 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 649 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 656 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 663 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 645 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 661 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -1,224 +1,220 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:paddingLeft="40dp"
android:paddingTop="12dp"
android:paddingRight="24dp"
android:paddingBottom="12dp"
xmlns:android="http://schemas.android.com/apk/res/android"
>
<LinearLayout
android:layout_width="220sp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginRight="24dp"
android:orientation="vertical"
android:orientation="horizontal"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_width="120dp"
android:layout_height="match_parent"
android:orientation="vertical"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_1"
/>
<TextView
style="@style/IdTitle"
android:text="1"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_1"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_2"
/>
<TextView
style="@style/IdTitle"
android:text="2"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_2"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_3"
/>
<TextView
style="@style/IdTitle"
android:text="3"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_3"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_4"
/>
<TextView
style="@style/IdTitle"
android:text="4"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_4"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_5"
/>
<TextView
style="@style/IdTitle"
android:text="5"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_5"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_6"
/>
<TextView
style="@style/IdTitle"
android:text="6"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_6"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_7"
/>
<TextView
style="@style/IdTitle"
android:text="7"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_7"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_8"
/>
<TextView
style="@style/IdTitle"
android:text="8"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_8"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_9"
/>
<TextView
style="@style/IdTitle"
android:text="9"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_9"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_10"
/>
<TextView
style="@style/IdTitle"
android:text="10"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_10"
/>
</LinearLayout>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_1"
/>
<TextView
style="@style/IdTitle"
android:text="1"
android:id="@+id/clear_all"
android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginBottom="12dp"
android:text="Clear All"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_1"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_2"
/>
<TextView
style="@style/IdTitle"
android:text="2"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_2"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_3"
/>
<TextView
style="@style/IdTitle"
android:text="3"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_3"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_4"
/>
<TextView
style="@style/IdTitle"
android:text="4"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_4"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_5"
/>
<TextView
style="@style/IdTitle"
android:text="5"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_5"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_6"
/>
<TextView
style="@style/IdTitle"
android:text="6"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_6"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_7"
/>
<TextView
style="@style/IdTitle"
android:text="7"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_7"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_8"
/>
<TextView
style="@style/IdTitle"
android:text="8"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_8"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_9"
/>
<TextView
style="@style/IdTitle"
android:text="9"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_9"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
style="@style/IdButton.Minus"
android:id="@+id/clear_10"
/>
<TextView
style="@style/IdTitle"
android:text="10"
/>
<Button
style="@style/IdButton.Plus"
android:id="@+id/notify_10"
android:id="@+id/ten"
android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Ten notifications"
/>
</LinearLayout>
<Button
android:id="@+id/clear_all"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginBottom="12dp"
android:text="Clear All"
/>
<Button
android:id="@+id/ten"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Ten notifications"
/>
</LinearLayout>
<ScrollView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -818,7 +814,6 @@
</LinearLayout>
</ScrollView>
</LinearLayout>
</LinearLayout>
</ScrollView>

View File

@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 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.
-->
<resources>
<style name="IdTitle">
<item name="android:textAppearance">?android:attr/textAppearanceLarge</item>
<item name="android:layout_width">30sp</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:gravity">center</item>
<item name="android:textStyle">bold</item>
</style>
<style name="IdButton">
<item name="android:textAppearance">?android:attr/textAppearanceLarge</item>
<item name="android:layout_width">0dp</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_weight">1</item>
<item name="android:layout_marginRight">8dp</item>
<item name="android:layout_marginLeft">8dp</item>
<item name="android:textStyle">bold</item>
</style>
<style name="IdButton.Minus">
<item name="android:text">-</item>
</style>
<style name="IdButton.Plus">
<item name="android:text">+</item>
</style>
<style name="FieldTitle">
<item name="android:textAppearance">?android:attr/textAppearanceLarge</item>
<item name="android:layout_width">208sp</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="FieldContents">
<item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginRight">20dp</item>
</style>
<style name="FieldContents.Disabled">
<item name="android:clickable">false</item>
<item name="android:visibility">gone</item>
</style>
</resources>

View File

@@ -16,21 +16,23 @@
<resources>
<style name="IdTitle">
<item name="android:textAppearance">?android:attr/textAppearanceLarge</item>
<item name="android:layout_width">30sp</item>
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
<item name="android:layout_width">20sp</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:gravity">center</item>
<item name="android:textStyle">bold</item>
</style>
<style name="IdButton">
<item name="android:textAppearance">?android:attr/textAppearanceLarge</item>
<item name="android:layout_width">0dp</item>
<item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
<item name="android:layout_width">10dp</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_weight">1</item>
<item name="android:layout_marginRight">8dp</item>
<item name="android:layout_marginLeft">8dp</item>
<item name="android:textStyle">bold</item>
<item name="android:layout_marginLeft">1dp</item>
<item name="android:layout_marginRight">1dp</item>
<item name="android:paddingLeft">6dp</item>
<item name="android:paddingRight">6dp</item>
</style>
<style name="IdButton.Minus">
@@ -42,16 +44,16 @@
</style>
<style name="FieldTitle">
<item name="android:textAppearance">?android:attr/textAppearanceLarge</item>
<item name="android:layout_width">208sp</item>
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="FieldContents">
<item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginRight">20dp</item>
<item name="android:layout_marginRight">4dp</item>
</style>
<style name="FieldContents.Disabled">