Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4 ** Copyright 2014, The Android Open Source Project
      5 **
      6 ** Licensed under the Apache License, Version 2.0 (the "License");
      7 ** you may not use this file except in compliance with the License.
      8 ** You may obtain a copy of the License at
      9 **
     10 **     http://www.apache.org/licenses/LICENSE-2.0
     11 **
     12 ** Unless required by applicable law or agreed to in writing, software
     13 ** distributed under the License is distributed on an "AS IS" BASIS,
     14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15 ** See the License for the specific language governing permissions and
     16 ** limitations under the License.
     17 */
     18 -->
     19 
     20 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     21       android:id="@+id/container_material"
     22       android:orientation="vertical"
     23       android:layout_width="match_parent"
     24       android:layout_height="match_parent"
     25       android:background="@android:color/transparent">
     26 
     27     <FrameLayout android:id="@+id/pinned_header"
     28                  android:layout_width="match_parent"
     29                  android:layout_height="wrap_content"
     30                  android:visibility="gone" />
     31 
     32     <FrameLayout android:layout_height="0px"
     33                  android:layout_weight="1"
     34                  android:layout_width="match_parent">
     35 
     36         <ListView android:id="@android:id/list"
     37                   style="@style/PreferenceFragmentListSinglePane"
     38                   android:layout_width="match_parent"
     39                   android:layout_height="match_parent"
     40                   android:paddingStart="@dimen/settings_side_margin"
     41                   android:paddingEnd="@dimen/settings_side_margin"
     42                   android:paddingTop="@dimen/dashboard_padding_top"
     43                   android:paddingBottom="@dimen/dashboard_padding_bottom"
     44                   android:scrollbarStyle="@*android:integer/preference_fragment_scrollbarStyle"
     45                   android:clipToPadding="false"
     46                   android:drawSelectorOnTop="false"
     47                   android:elevation="@dimen/dashboard_category_elevation"
     48                   android:scrollbarAlwaysDrawVerticalTrack="true" />
     49 
     50         <include layout="@layout/loading_container" />
     51 
     52         <com.android.settings.widget.FloatingActionButton
     53                   android:id="@+id/fab"
     54                   android:visibility="gone"
     55                   android:clickable="true"
     56                   android:layout_width="@dimen/fab_size"
     57                   android:layout_height="@dimen/fab_size"
     58                   android:layout_gravity="bottom|end"
     59                   android:layout_marginEnd="@dimen/fab_margin"
     60                   android:layout_marginBottom="@dimen/fab_margin"
     61                   android:elevation="@dimen/fab_elevation"
     62                   android:background="@drawable/fab_background" />
     63 
     64     </FrameLayout>
     65 
     66     <TextView android:id="@android:id/empty"
     67               android:layout_width="match_parent"
     68               android:layout_height="match_parent"
     69               android:padding="@*android:dimen/preference_fragment_padding_side"
     70               android:gravity="center"
     71               android:visibility="gone" />
     72 
     73     <RelativeLayout android:id="@+id/button_bar"
     74                     android:layout_height="wrap_content"
     75                     android:layout_width="match_parent"
     76                     android:layout_weight="0"
     77                     android:visibility="gone">
     78 
     79         <Button android:id="@+id/back_button"
     80                 android:layout_width="150dip"
     81                 android:layout_height="wrap_content"
     82                 android:layout_margin="5dip"
     83                 android:layout_alignParentStart="true"
     84                 android:text="@*android:string/back_button_label"
     85                 />
     86 
     87         <LinearLayout
     88                 android:orientation="horizontal"
     89                 android:layout_width="wrap_content"
     90                 android:layout_height="wrap_content"
     91                 android:layout_alignParentEnd="true">
     92 
     93             <Button android:id="@+id/skip_button"
     94                     android:layout_width="150dip"
     95                     android:layout_height="wrap_content"
     96                     android:layout_margin="5dip"
     97                     android:text="@*android:string/skip_button_label"
     98                     android:visibility="gone"
     99                     />
    100 
    101             <Button android:id="@+id/next_button"
    102                     android:layout_width="150dip"
    103                     android:layout_height="wrap_content"
    104                     android:layout_margin="5dip"
    105                     android:text="@*android:string/next_button_label"
    106                     />
    107 
    108         </LinearLayout>
    109 
    110     </RelativeLayout>
    111 
    112 </LinearLayout>
    113 
    114