diff options
author | Yorke Lee <yorkelee@google.com> | 2014-06-11 10:24:19 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-06-11 10:49:54 -0700 |
commit | 28aab271e57a4966496b5d2ef2b067e8ace34679 (patch) | |
tree | bfb3d353c66df094fbd96d7dcfbc796fc857096c /res/layout | |
parent | 8466615413eb7d0feb23ab33288caac104dfd41e (diff) |
Use Framelayout instead of RelativeLayout in DialtactsActivity
Switch to FrameLayout instead of RelativeLayout since we don't need
the more complicated and expensive layout abilities of RelativeLayout.
This improves startup time (on hammerhead-eng, interpreted ART mode)
to about 1150ms on average from 1300ms originally.
Change-Id: I94400dcc58cc74497c71a7432a06a4dffe3b078d
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/dialtacts_activity.xml | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/res/layout/dialtacts_activity.xml b/res/layout/dialtacts_activity.xml index 71e58cb48..5727d8a00 100644 --- a/res/layout/dialtacts_activity.xml +++ b/res/layout/dialtacts_activity.xml @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. --> -<RelativeLayout +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/dialtacts_mainlayout" android:layout_width="match_parent" @@ -25,7 +25,7 @@ android:animateLayoutChanges="true" android:background="@color/background_dialer_light" > - <RelativeLayout + <FrameLayout android:id="@+id/dialtacts_container" android:layout_width="match_parent" android:layout_height="match_parent" @@ -36,15 +36,14 @@ android:layout_width="match_parent" android:id="@+id/dialtacts_frame" android:clipChildren="false" /> - </RelativeLayout> + </FrameLayout> <FrameLayout android:id="@+id/floating_action_button_container" android:layout_width="@dimen/floating_action_button_width" android:layout_height="@dimen/floating_action_button_height" android:layout_marginRight="@dimen/floating_action_button_margin_right" android:layout_marginBottom="@dimen/floating_action_button_margin_bottom" - android:layout_centerHorizontal="true" - android:layout_alignParentBottom="true"> + android:layout_gravity="center_horizontal|bottom" > <ImageButton android:id="@+id/floating_action_button" @@ -67,4 +66,4 @@ android:visibility="gone" android:importantForAccessibility="no" /> </FrameLayout> -</RelativeLayout> +</FrameLayout> |