summaryrefslogtreecommitdiffstats
path: root/res/layout-television/permissions_frame.xml
blob: da0b2555935d13fa28eb967ce2a4f13e6b5647e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2015 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License
  -->

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:filterTouchesWhenObscured="true">

    <FrameLayout
        android:layout_width="@dimen/lb_action_section_width"
        android:layout_height="match_parent"
        android:layout_alignParentEnd="true"
        android:background="@color/lb_action_fragment_background">

        <FrameLayout
            android:id="@+id/prefs_container"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <TextView
                android:id="@+id/no_permissions"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:text="@string/no_permissions"
                android:gravity="center"
                android:textAppearance="@android:style/TextAppearance.Large"
                />

        </FrameLayout>

    </FrameLayout>

    <RelativeLayout
        android:layout_width="@dimen/lb_content_section_width"
        android:layout_height="match_parent"
        android:layout_alignParentStart="true"
        android:background="@color/lb_dialog_activity_background"
        android:paddingStart="@dimen/lb_content_fragment_start_padding"
        android:paddingEnd="@dimen/lb_content_fragment_delimiter_padding" >

        <ImageView
            android:id="@+id/lb_icon"
            android:layout_width="@dimen/lb_content_fragment_icon_width"
            android:layout_height="@dimen/lb_content_fragment_icon_width"
            android:layout_alignParentEnd="true"
            android:layout_centerVertical="true"
            android:layout_marginStart="@dimen/lb_content_fragment_delimiter_padding"
            android:maxHeight="@dimen/lb_content_fragment_max_icon_height"
            android:minHeight="@dimen/lb_content_fragment_icon_width"
            android:scaleType="fitCenter"
            tools:ignore="ContentDescription" />

        <TextView
            android:id="@+id/lb_title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignWithParentIfMissing="true"
            android:layout_centerVertical="true"
            android:layout_toStartOf="@id/lb_icon"
            android:ellipsize="end"
            android:fontFamily="sans-serif-light"
            android:gravity="end"
            android:maxLines="2"
            android:paddingBottom="@dimen/lb_content_fragment_title_text_bottom_padding"
            android:paddingTop="@dimen/lb_content_fragment_title_text_top_padding"
            android:textColor="@color/lb_content_title_text_color"
            android:textSize="@dimen/lb_content_fragment_title_text_size"/>

        <TextView
            android:id="@+id/lb_breadcrumb"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@id/lb_title"
            android:layout_alignWithParentIfMissing="true"
            android:layout_toStartOf="@id/lb_icon"
            android:ellipsize="end"
            android:fontFamily="sans-serif-condensed"
            android:singleLine="true"
            android:textColor="@color/lb_content_breadcrumb_text_color"
            android:textSize="@dimen/lb_content_fragment_breadcrumb_text_size" />

        <TextView
            android:id="@+id/lb_description"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignWithParentIfMissing="true"
            android:layout_below="@id/lb_title"
            android:layout_toStartOf="@id/lb_icon"
            android:ellipsize="end"
            android:fontFamily="sans-serif"
            android:gravity="end"
            android:maxLines="6"
            android:textColor="@color/lb_content_description_text_color"
            android:textSize="@dimen/lb_content_fragment_description_text_size"
            android:lineSpacingExtra="3dp"/>
    </RelativeLayout>

</RelativeLayout>