• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4* Copyright 2019, 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<LinearLayout
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
22    android:layout_width="match_parent"
23    android:layout_height="wrap_content"
24    android:orientation="vertical"
25    android:background="?android:attr/colorBackground">
26
27  <CheckBox
28      android:id="@+id/include_text_action"
29      android:layout_width="wrap_content"
30      android:layout_height="wrap_content"
31      android:layout_gravity="end"
32      android:layout_marginEnd="@dimen/chooser_edge_margin_normal"
33      android:visibility="gone" />
34
35  <LinearLayout
36      android:layout_width="match_parent"
37      android:layout_height="wrap_content"
38      android:orientation="horizontal"
39      android:gravity="center_horizontal"
40      android:layout_marginBottom="@dimen/chooser_view_spacing">
41
42      <ViewStub
43          android:id="@+id/image_preview_stub"
44          android:inflatedId="@androidprv:id/content_preview_image_area"
45          android:layout_width="wrap_content"
46          android:layout_height="wrap_content" />
47
48      <TextView
49          android:id="@androidprv:id/content_preview_text"
50          android:layout_width="0dp"
51          android:layout_height="wrap_content"
52          android:layout_weight="1"
53          android:layout_gravity="center_vertical"
54          android:paddingEnd="@dimen/chooser_edge_margin_normal"
55          android:maxLines="6"
56          android:ellipsize="end"
57          android:linksClickable="false"
58          android:visibility="gone"
59          android:textAppearance="@style/TextAppearance.ChooserDefault" />
60  </LinearLayout>
61
62  <TextView
63      android:id="@+id/reselection_action"
64      android:layout_width="match_parent"
65      android:layout_height="wrap_content"
66      android:visibility="gone"
67      android:text="@string/select_images"
68      android:gravity="center"
69      style="@style/ReselectionAction" />
70
71  <ViewStub
72      android:id="@+id/action_row_stub"
73      android:layout_width="match_parent"
74      android:layout_height="wrap_content" />
75
76</LinearLayout>
77