Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2012 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:settings="http://schemas.android.com/apk/res-auto"
     20     android:layout_width="match_parent"
     21     android:layout_height="match_parent"
     22     android:orientation="vertical">
     23 
     24     <FrameLayout
     25         android:layout_width="match_parent"
     26         android:layout_height="0dp"
     27         android:layout_weight="1">
     28 
     29         <LinearLayout
     30             android:id="@+id/list_container"
     31             android:layout_width="match_parent"
     32             android:layout_height="match_parent"
     33             android:orientation="vertical"
     34             android:visibility="gone">
     35 
     36             <FrameLayout
     37                 android:id="@+id/pinned_header"
     38                 android:layout_width="match_parent"
     39                 android:layout_height="wrap_content" />
     40 
     41             <FrameLayout
     42                 android:layout_width="match_parent"
     43                 android:layout_height="0px"
     44                 android:layout_weight="1">
     45 
     46                 <android.support.v7.widget.RecyclerView
     47                     android:id="@+id/apps_list"
     48                     android:layout_width="match_parent"
     49                     android:layout_height="match_parent"
     50                     settings:fastScrollEnabled="true"
     51                     settings:fastScrollHorizontalThumbDrawable="@drawable/thumb_drawable"
     52                     settings:fastScrollHorizontalTrackDrawable="@drawable/line_drawable"
     53                     settings:fastScrollVerticalThumbDrawable="@drawable/thumb_drawable"
     54                     settings:fastScrollVerticalTrackDrawable="@drawable/line_drawable"/>
     55 
     56                 <TextView
     57                     android:id="@android:id/empty"
     58                     android:layout_width="match_parent"
     59                     android:layout_height="match_parent"
     60                     android:gravity="center"
     61                     android:text="@string/no_applications"
     62                     android:textAppearance="?android:attr/textAppearanceLarge"
     63                     android:visibility="invisible" />
     64 
     65             </FrameLayout>
     66 
     67         </LinearLayout>
     68 
     69         <include layout="@layout/loading_container" />
     70 
     71     </FrameLayout>
     72 
     73 </LinearLayout>
     74