• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    android:orientation="horizontal"
22    android:animateLayoutChanges="true"
23    android:keepScreenOn="true" >
24    <LinearLayout
25        android:layout_width="0dp"
26        android:layout_weight="1"
27        android:layout_height="match_parent"
28        android:gravity="center_horizontal"
29        android:animateLayoutChanges="true" >
30        <RelativeLayout
31            android:id="@+id/progress_holder"
32            android:layout_width="wrap_content"
33            android:layout_height="match_parent"
34            android:animateLayoutChanges="true" >
35            <ImageView
36                android:id="@+id/tune_icon"
37                android:layout_width="@dimen/ut_scan_icon_width"
38                android:layout_height="wrap_content"
39                android:layout_centerVertical="true"
40                android:src="@drawable/usb_antenna" />
41            <TextView
42                android:id="@+id/tune_title"
43                android:layout_width="wrap_content"
44                android:layout_height="wrap_content"
45                android:layout_toRightOf="@id/tune_icon"
46                android:layout_alignParentTop="true"
47                android:layout_marginTop="@dimen/ut_scan_title_margin_top"
48                android:layout_marginLeft="@dimen/ut_scan_icon_margin_right"
49                android:ellipsize="end"
50                android:fontFamily="sans-serif-light"
51                android:maxLines="@integer/ut_scan_title_max_lines"
52                android:textColor="@color/ut_scan_title_text"
53                android:textSize="@dimen/ut_scan_title_text_size"
54                android:text="@string/bt_channel_scan" />
55            <ProgressBar
56                android:id="@+id/tune_progress"
57                style="@android:style/Widget.ProgressBar.Horizontal"
58                android:layout_width="@dimen/ut_scan_progress_width"
59                android:layout_height="@dimen/ut_scan_progress_height"
60                android:layout_marginTop="@dimen/ut_scan_progress_margin_top"
61                android:layout_marginLeft="@dimen/ut_scan_icon_margin_right"
62                android:layout_below="@id/tune_title"
63                android:layout_toRightOf="@id/tune_icon"
64                android:progressDrawable="@drawable/ut_scan_progress" />
65            <TextView
66                android:id="@+id/tune_description"
67                android:accessibilityLiveRegion="polite"
68                android:layout_width="wrap_content"
69                android:layout_height="wrap_content"
70                android:layout_marginTop="@dimen/ut_scan_description_margin_top"
71                android:layout_marginLeft="@dimen/ut_scan_icon_margin_right"
72                android:layout_below="@id/tune_progress"
73                android:layout_toRightOf="@id/tune_icon"
74                android:fontFamily="sans-serif"
75                android:textColor="@color/ut_scan_description_text"
76                android:textSize="@dimen/ut_scan_description_text_size"
77                android:text="@string/ut_channel_scan_time" />
78            <Button
79                android:id="@+id/tune_cancel"
80                android:layout_width="wrap_content"
81                android:layout_height="@dimen/ut_scan_button_height"
82                android:layout_marginTop="@dimen/ut_scan_button_margin_top"
83                android:layout_marginLeft="@dimen/ut_scan_icon_margin_right"
84                android:layout_below="@id/tune_description"
85                android:layout_toRightOf="@id/tune_icon"
86                android:paddingLeft="@dimen/ut_scan_button_padding"
87                android:paddingRight="@dimen/ut_scan_button_padding"
88                android:textAllCaps="false"
89                android:focusable="true"
90                android:fontFamily="sans-serif-condensed"
91                android:textColor="@color/ut_scan_button_text"
92                android:textSize="@dimen/ut_scan_button_text_size"
93                android:text="@string/ut_stop_channel_scan"
94                style="?android:attr/borderlessButtonStyle" />
95        </RelativeLayout>
96    </LinearLayout>
97    <LinearLayout
98        android:id="@+id/channel_holder"
99        android:layout_width="@dimen/ut_scan_channellist_width"
100        android:layout_height="match_parent"
101        android:focusable="false"
102        android:descendantFocusability="blocksDescendants"
103        android:animateLayoutChanges="true"
104        android:visibility="gone">
105        <ListView
106            android:id="@+id/channel_list"
107            android:layout_width="match_parent"
108            android:layout_height="match_parent"
109            android:layout_marginTop="@dimen/ut_scan_channellist_padding_top"
110            android:layout_marginBottom="@dimen/ut_scan_channellist_padding_bottom"
111            android:paddingStart="@dimen/ut_scan_channellist_padding_start"
112            android:divider="@android:color/transparent"
113            android:scrollbars="none"
114            android:dividerHeight="7dp"
115            android:transcriptMode="alwaysScroll" />
116    </LinearLayout>
117</LinearLayout>
118