Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2011 The Android Open Source Project
      2 
      3      Licensed under the Apache License, Version 2.0 (the "License");
      4      you may not use this file except in compliance with the License.
      5      You may obtain a copy of the License at
      6   
      7           http://www.apache.org/licenses/LICENSE-2.0
      8   
      9      Unless required by applicable law or agreed to in writing, software
     10      distributed under the License is distributed on an "AS IS" BASIS,
     11      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12      See the License for the specific language governing permissions and
     13      limitations under the License.
     14 -->
     15 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     16     style="@style/RootLayoutPadding"
     17     android:layout_width="match_parent"
     18     android:layout_height="match_parent"
     19     android:orientation="vertical">
     20 
     21     <ProgressBar
     22         android:id="@+id/bt_progress_bar"
     23         style="@android:style/Widget.DeviceDefault.ProgressBar.Horizontal"
     24         android:layout_width="match_parent"
     25         android:layout_height="4dp"
     26         android:indeterminate="true" />
     27 
     28     <TextView
     29         style="?android:attr/listSeparatorTextViewStyle"
     30         android:layout_width="match_parent"
     31         android:layout_height="wrap_content"
     32         android:text="@string/bt_paired_devices" />
     33 
     34     <FrameLayout
     35         android:layout_width="match_parent"
     36         android:layout_height="match_parent"
     37         android:layout_weight="1.5"
     38         android:orientation="vertical">
     39         <ListView
     40             android:id="@+id/bt_paired_devices"
     41             android:layout_width="match_parent"
     42             android:layout_height="match_parent" />
     43         <TextView
     44             android:id="@+id/bt_empty_paired_devices"
     45             android:layout_width="match_parent"
     46             android:layout_height="match_parent"
     47             android:gravity="center"
     48             android:text="@string/bt_no_devices"
     49             android:visibility="gone" />
     50     </FrameLayout>
     51 
     52     <TextView
     53         style="?android:attr/listSeparatorTextViewStyle"
     54         android:layout_width="match_parent"
     55         android:layout_height="wrap_content"
     56         android:text="@string/bt_new_devices" />
     57 
     58     <FrameLayout
     59         android:layout_width="match_parent"
     60         android:layout_height="match_parent"
     61         android:layout_weight="1"
     62         android:orientation="vertical">
     63         <ListView
     64             android:id="@+id/bt_new_devices"
     65             android:layout_width="match_parent"
     66             android:layout_height="match_parent" />
     67         <TextView
     68             android:id="@+id/bt_empty_new_devices"
     69             android:layout_width="match_parent"
     70             android:layout_height="match_parent"
     71             android:gravity="center"
     72             android:text="@string/bt_no_devices"
     73             android:visibility="gone" />
     74     </FrameLayout>
     75 
     76     <Button
     77         android:id="@+id/bt_scan_button"
     78         android:layout_width="match_parent"
     79         android:layout_height="wrap_content"
     80         android:drawableTop="@android:drawable/ic_menu_search"
     81         android:text="@string/bt_scan" />
     82 </LinearLayout>
     83