Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2015 The Android Open Source Project
      4 
      5      Licensed under the Apache License, Version 2.0 (the "License");
      6      you may not use this file except in compliance with the License.
      7      You may obtain a copy of the License at
      8 
      9           http://www.apache.org/licenses/LICENSE-2.0
     10 
     11      Unless required by applicable law or agreed to in writing, software
     12      distributed under the License is distributed on an "AS IS" BASIS,
     13      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14      See the License for the specific language governing permissions and
     15      limitations under the License.
     16 -->
     17 
     18 <FrameLayout
     19         xmlns:android="http://schemas.android.com/apk/res/android"
     20         xmlns:app="http://schemas.android.com/apk/res-auto"
     21         android:layout_width="match_parent"
     22         android:layout_height="match_parent">
     23 
     24     <android.support.v7.widget.Toolbar
     25             android:id="@+id/toolbar"
     26             android:layout_height="wrap_content"
     27             android:layout_width="match_parent"
     28             android:minHeight="?attr/actionBarSize"
     29             android:background="?attr/colorPrimaryDark"
     30             android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
     31             app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
     32 
     33     <LinearLayout
     34             android:layout_width="match_parent"
     35             android:layout_height="match_parent"
     36             android:orientation="vertical"
     37             android:gravity="center_vertical"
     38             android:clipToPadding="true">
     39 
     40         <TextView
     41                 android:layout_width="match_parent"
     42                 android:layout_height="wrap_content"
     43                 android:textAppearance="@style/TextAppearance.AppCompat.Title"
     44                 android:text="@string/fab_size_normal"
     45                 android:layout_margin="16dp"/>
     46 
     47         <android.support.design.widget.FloatingActionButton
     48                 android:layout_height="wrap_content"
     49                 android:layout_width="wrap_content"
     50                 android:layout_margin="16dp"
     51                 android:src="@drawable/ic_add"
     52                 android:clickable="true" />
     53 
     54         <TextView
     55                 android:layout_width="match_parent"
     56                 android:layout_height="wrap_content"
     57                 android:layout_margin="16dp"
     58                 android:textAppearance="@style/TextAppearance.AppCompat.Title"
     59                 android:text="@string/fab_size_mini" />
     60 
     61         <android.support.design.widget.FloatingActionButton
     62                 android:layout_height="wrap_content"
     63                 android:layout_width="wrap_content"
     64                 android:layout_margin="16dp"
     65                 android:src="@drawable/ic_add"
     66                 android:clickable="true"
     67                 app:fabSize="mini" />
     68 
     69     </LinearLayout>
     70 
     71 </FrameLayout>