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

Unified Diff: content/public/android/java/res/layout-v21/text_edit_suggestion_container.xml

Issue 2650113004: [WIP] Add support for Android SuggestionSpans when editing text (Closed)
Patch Set: Remove logging statements, fix copyright years in new files Created 3 years, 11 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
Index: content/public/android/java/res/layout-v21/text_edit_suggestion_container.xml
diff --git a/content/public/android/java/res/layout-v21/text_edit_suggestion_container.xml b/content/public/android/java/res/layout-v21/text_edit_suggestion_container.xml
new file mode 100644
index 0000000000000000000000000000000000000000..59173f1719f6c40f204f1b8305b5a2ab0b87b3a5
--- /dev/null
+++ b/content/public/android/java/res/layout-v21/text_edit_suggestion_container.xml
@@ -0,0 +1,52 @@
+<?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.
+-->
rlanday 2017/01/31 19:50:21 It seems we use inconsistent styles for these comm
+
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content">
+ <LinearLayout
+ android:id="@+id/suggestionWindowContainer"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@drawable/floating_popup_background_light"
+ android:elevation="2dp"
+ android:layout_margin="20dp"
+ android:orientation="vertical"
+ android:divider="?android:attr/listDivider"
+ android:showDividers="middle"
+ tools:ignore="UselessParent">
+ <ListView
+ android:id="@+id/suggestionContainer"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="4dp"
+ android:paddingBottom="0dp"
+ android:divider="@null" />
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+ <TextView
+ android:id="@+id/deleteButton"
+ android:text="@string/delete_text"
+ android:textAppearance="@android:style/TextAppearance.Material.Button"
+ android:textColor="?@android:attr/colorAccent"
+ android:drawablePadding="8dip"
+ android:gravity="start|center_vertical"
+ android:layout_gravity="start|center_vertical"
+ android:layout_height="48dip"
+ android:layout_width="match_parent"
+ android:paddingBottom="8dip"
+ android:paddingEnd="16dip"
+ android:paddingStart="16dip"
+ android:paddingTop="8dip"
+ android:singleLine="true"
+ android:textAllCaps="true"
+ android:textSize="14sp" />
+ </LinearLayout>
+ </LinearLayout>
+</RelativeLayout>

Powered by Google App Engine
This is Rietveld 408576698