| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright 2017 The Chromium Authors. All rights reserved. |
| Use of this source code is governed by a BSD-style license that can be |
| found in the LICENSE file. |
| --> |
| |
| <!-- Represents a single item in the Photo Picker. --> |
| |
| <view class="org.chromium.chrome.browser.photo_picker.PickerBitmapView" |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| xmlns:tools="http://schemas.android.com/tools" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| |
| <FrameLayout |
| android:id="@+id/border" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center"> |
| |
| <ImageView |
| android:id="@+id/bitmap_view" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| tools:ignore="ContentDescription" /> |
| |
| <ImageView |
| android:id="@+id/scrim" |
| android:layout_width="64dp" |
| android:layout_height="64dp" |
| android:background="@drawable/file_picker_scrim" |
| tools:ignore="ContentDescription" |
| android:visibility="gone" /> |
| </FrameLayout> |
| |
| <ImageView |
| android:id="@+id/selected" |
| android:layout_width="26dp" |
| android:layout_height="26dp" |
| android:layout_marginStart="2dp" |
| android:layout_marginTop="2dp" |
| tools:ignore="ContentDescription" |
| android:visibility="gone" |
| app:srcCompat="@drawable/checkmark_blue" /> |
| |
| <ImageView |
| android:id="@+id/unselected" |
| android:layout_width="22dp" |
| android:layout_height="22dp" |
| android:layout_marginStart="4dp" |
| android:layout_marginTop="4dp" |
| android:background="@drawable/circle_white" |
| tools:ignore="ContentDescription" |
| android:visibility="gone" /> |
| |
| <!-- Special tiles, that give access to the camera and gallery --> |
| <LinearLayout |
| android:id="@+id/special_tile" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" |
| android:layout_gravity="center" |
| android:gravity="center" |
| android:visibility="gone"> |
| |
| <ImageView |
| android:id="@+id/special_tile_icon" |
| android:adjustViewBounds="true" |
| android:layout_width="48dp" |
| android:layout_height="48dp" |
| tools:ignore="ContentDescription" |
| android:tint="@color/photo_picker_tile_bg_color" /> |
| |
| <TextView |
| android:id="@+id/special_tile_label" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/photo_picker_label_gap" |
| android:gravity="center" |
| android:textAppearance="@style/TextAppearance.PhotoPickerSpecialTile" /> |
| </LinearLayout> |
| </view> |