OLD | NEW |
---|---|
(Empty) | |
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <!-- | |
3 Copyright 2017 The Chromium Authors. All rights reserved. | |
Theresa
2017/04/06 15:13:52
nit: photo_picker_bitmap_view.xml for consistency
Finnur
2017/04/06 15:46:47
Done.
| |
4 Use of this source code is governed by a BSD-style license that can be | |
5 found in the LICENSE file. | |
6 --> | |
7 | |
8 <!-- Represents a single item in the Photo Picker. --> | |
9 | |
10 <view class="org.chromium.chrome.browser.photo_picker.PickerBitmapView" | |
11 xmlns:android="http://schemas.android.com/apk/res/android" | |
12 xmlns:chrome="http://schemas.android.com/apk/res-auto" | |
13 android:layout_width="wrap_content" | |
14 android:layout_height="wrap_content" | |
15 android:background="@color/photo_picker_tile_bg_color"> | |
16 | |
17 <FrameLayout | |
18 android:id="@+id/border" | |
19 android:layout_width="wrap_content" | |
20 android:layout_height="wrap_content" | |
21 android:layout_gravity="center"> | |
22 | |
23 <ImageView | |
24 android:id="@+id/bitmap_view" | |
25 android:layout_width="wrap_content" | |
26 android:layout_height="wrap_content" | |
27 android:contentDescription="@null" /> | |
28 </FrameLayout> | |
29 | |
30 <!-- Special tiles, that give access to the camera and gallery --> | |
31 <TextView | |
32 android:id="@+id/special_tile" | |
33 android:layout_width="match_parent" | |
34 android:layout_height="wrap_content" | |
35 android:layout_marginTop="@dimen/photo_picker_label_gap" | |
36 android:drawablePadding="10dp" | |
37 android:fontFamily="sans-serif-medium" | |
38 android:textStyle="bold" | |
39 android:textSize="14sp" | |
40 android:textAllCaps="true" | |
41 android:textColor="@color/photo_picker_special_tile_color" | |
42 android:gravity="center" | |
43 android:layout_gravity="center" /> | |
44 </view> | |
OLD | NEW |