Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4657)

Unified Diff: chrome/android/java/res/layout/photo_picker_bitmap_view.xml

Issue 2758313002: Implement the new Photo picker, part two. (Closed)
Patch Set: Address Ted's comments (and sync to latest) Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/android/java/res/layout/photo_picker_dialog.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/res/layout/photo_picker_bitmap_view.xml
diff --git a/chrome/android/java/res/layout/photo_picker_bitmap_view.xml b/chrome/android/java/res/layout/photo_picker_bitmap_view.xml
new file mode 100644
index 0000000000000000000000000000000000000000..01b0b6fd7b563eaeedce43115e2909520c5f79d1
--- /dev/null
+++ b/chrome/android/java/res/layout/photo_picker_bitmap_view.xml
@@ -0,0 +1,43 @@
+<?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"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@color/photo_picker_tile_bg_color">
+
+ <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"
+ android:contentDescription="@null" />
+ </FrameLayout>
+
+ <!-- Special tiles, that give access to the camera and gallery -->
+ <TextView
+ android:id="@+id/special_tile"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="@dimen/photo_picker_label_gap"
+ android:drawablePadding="10dp"
+ android:fontFamily="sans-serif-medium"
+ android:textStyle="bold"
+ android:textSize="14sp"
+ android:textAllCaps="true"
+ android:textColor="@color/photo_picker_special_tile_color"
+ android:gravity="center"
+ android:layout_gravity="center" />
+</view>
« no previous file with comments | « no previous file | chrome/android/java/res/layout/photo_picker_dialog.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698