Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2014 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <LinearLayout
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     xmlns:app="http://schemas.android.com/apk/res-auto"
     20     android:layout_width="match_parent"
     21     android:layout_height="wrap_content"
     22     android:layout_gravity="bottom"
     23     android:orientation="horizontal">
     24 
     25     <FrameLayout
     26         android:layout_width="0dp"
     27         android:layout_height="match_parent"
     28         android:layout_gravity="start|center_vertical"
     29         android:layout_weight="1">
     30 
     31         <ImageButton
     32             android:id="@+id/timer_cancel"
     33             android:layout_width="@dimen/design_fab_size_normal"
     34             android:layout_height="@dimen/design_fab_size_normal"
     35             android:layout_gravity="center"
     36             android:contentDescription="@string/timer_cancel"
     37             android:scaleType="center"
     38             android:src="@drawable/ic_cancel" />
     39 
     40     </FrameLayout>
     41 
     42     <FrameLayout
     43         android:layout_width="0dp"
     44         android:layout_height="match_parent"
     45         android:layout_gravity="start|center_vertical"
     46         android:layout_weight="1">
     47 
     48         <android.support.design.widget.FloatingActionButton
     49             android:id="@+id/timer_create"
     50             android:layout_width="wrap_content"
     51             android:layout_height="wrap_content"
     52             android:layout_gravity="center"
     53             android:layout_margin="@dimen/fab_margin"
     54             android:contentDescription="@string/timer_start"
     55             android:src="@drawable/ic_start_white_24dp"
     56             android:visibility="invisible"
     57             app:borderWidth="0dp"
     58             app:elevation="@dimen/fab_elevation" />
     59 
     60     </FrameLayout>
     61 
     62     <Space
     63         android:layout_width="0dp"
     64         android:layout_height="match_parent"
     65         android:layout_weight="1" />
     66 
     67 </LinearLayout>
     68