From 405a6e6822fb19a9d14329da92e03e75e2e72703 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 20 Aug 2014 15:02:16 -0700 Subject: Use different FAB for dialpad, and use new animations. + Use scaleIn/scaleOut for FABs in the Dialer application. + Add assets for green fab. + Update dialpad fragment, both the Java and layouts, to have their own FAB containers and FABs. + Change DialpadSlidingLinearLayout into DialpadSlidingRelativeLayout. - Removed or relocated dial some FAB handling, visibility, and translation functions. Now that the FABs in the dialpad fragment and DialtactsActivity are distinct, the logic can be scoped more precisely to a particular fragment/view. Bug: 16399233 Change-Id: I86f9f0053dc3c50fe0d5046389632af7ddff9f67 --- res/drawable-hdpi/fab_green.png | Bin 0 -> 2798 bytes res/drawable-mdpi/fab_green.png | Bin 0 -> 1845 bytes res/drawable-xhdpi/fab_green.png | Bin 0 -> 4092 bytes res/drawable-xxhdpi/fab_green.png | Bin 0 -> 7004 bytes res/drawable-xxxhdpi/fab_green.png | Bin 0 -> 9900 bytes res/drawable/floating_action_button.xml | 4 +- res/layout-land/dialpad_fragment.xml | 98 ++++++++++++++++++++++---------- res/layout/dialpad_fragment.xml | 75 +++++++++++++++++------- res/layout/dialtacts_activity.xml | 13 +++-- 9 files changed, 132 insertions(+), 58 deletions(-) create mode 100644 res/drawable-hdpi/fab_green.png create mode 100644 res/drawable-mdpi/fab_green.png create mode 100644 res/drawable-xhdpi/fab_green.png create mode 100644 res/drawable-xxhdpi/fab_green.png create mode 100644 res/drawable-xxxhdpi/fab_green.png (limited to 'res') diff --git a/res/drawable-hdpi/fab_green.png b/res/drawable-hdpi/fab_green.png new file mode 100644 index 000000000..ff9753c18 Binary files /dev/null and b/res/drawable-hdpi/fab_green.png differ diff --git a/res/drawable-mdpi/fab_green.png b/res/drawable-mdpi/fab_green.png new file mode 100644 index 000000000..947aac142 Binary files /dev/null and b/res/drawable-mdpi/fab_green.png differ diff --git a/res/drawable-xhdpi/fab_green.png b/res/drawable-xhdpi/fab_green.png new file mode 100644 index 000000000..e8bab3fec Binary files /dev/null and b/res/drawable-xhdpi/fab_green.png differ diff --git a/res/drawable-xxhdpi/fab_green.png b/res/drawable-xxhdpi/fab_green.png new file mode 100644 index 000000000..7e4fd3e49 Binary files /dev/null and b/res/drawable-xxhdpi/fab_green.png differ diff --git a/res/drawable-xxxhdpi/fab_green.png b/res/drawable-xxxhdpi/fab_green.png new file mode 100644 index 000000000..aa8849e86 Binary files /dev/null and b/res/drawable-xxxhdpi/fab_green.png differ diff --git a/res/drawable/floating_action_button.xml b/res/drawable/floating_action_button.xml index cbbfb8542..e5ae14a2b 100644 --- a/res/drawable/floating_action_button.xml +++ b/res/drawable/floating_action_button.xml @@ -16,6 +16,4 @@ --> - - + android:color="@color/floating_action_button_touch_tint" /> \ No newline at end of file diff --git a/res/layout-land/dialpad_fragment.xml b/res/layout-land/dialpad_fragment.xml index aac0daf3b..680c2d770 100644 --- a/res/layout-land/dialpad_fragment.xml +++ b/res/layout-land/dialpad_fragment.xml @@ -13,35 +13,75 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - + android:layout_height="wrap_content"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout/dialpad_fragment.xml b/res/layout/dialpad_fragment.xml index 01bbecc00..21cb58654 100644 --- a/res/layout/dialpad_fragment.xml +++ b/res/layout/dialpad_fragment.xml @@ -13,31 +13,64 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - + + - - + + + + + + + + + + + + + - - - + + + + + android:layout_height="match_parent" + android:background="@drawable/floating_action_button" + android:contentDescription="@string/description_dial_button" + android:src="@drawable/fab_ic_call"/> + + + diff --git a/res/layout/dialtacts_activity.xml b/res/layout/dialtacts_activity.xml index aa4ce9409..0f1f2bbdb 100644 --- a/res/layout/dialtacts_activity.xml +++ b/res/layout/dialtacts_activity.xml @@ -22,9 +22,8 @@ android:focusable="true" android:focusableInTouchMode="true" android:clipChildren="false" - android:animateLayoutChanges="true" - android:background="@color/background_dialer_light" - > + android:background="@color/background_dialer_light"> + + + android:layout_gravity="center_horizontal|bottom"> + + -- cgit v1.2.3