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/layout/dialpad_fragment.xml | 75 ++++++++++++++++++++++++++++----------- res/layout/dialtacts_activity.xml | 13 ++++--- 2 files changed, 62 insertions(+), 26 deletions(-) (limited to 'res/layout') 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