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

Unified Diff: chrome/android/java_staging/res/layout/eb_edit.xml

Issue 1182083005: Re-engineer edit screen in enhanced bookmark (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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: chrome/android/java_staging/res/layout/eb_edit.xml
diff --git a/chrome/android/java_staging/res/layout/eb_edit.xml b/chrome/android/java_staging/res/layout/eb_edit.xml
new file mode 100644
index 0000000000000000000000000000000000000000..141c9882ccb5f1bc992a739f49a0967f768a5a67
--- /dev/null
+++ b/chrome/android/java_staging/res/layout/eb_edit.xml
@@ -0,0 +1,63 @@
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
newt (away) 2015/06/17 04:42:22 copyright
Ian Wen 2015/06/17 21:07:41 Done.
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="16dp"
+ android:layout_marginStart="16dp"
+ android:layout_marginTop="8dp"
newt (away) 2015/06/17 04:42:22 why not margin bottom?
Ian Wen 2015/06/17 21:07:42 Because on tablet the size of the dialog is fixed
newt (away) 2015/06/17 23:53:25 99%? This doesn't sound very scientific ;) What ab
+ android:orientation="vertical" >
+
+ <org.chromium.chrome.browser.widget.FloatLabelLayout
Kibeom Kim (inactive) 2015/06/17 06:10:30 Maybe TODO or a bug for TextInputLayout migration
Ian Wen 2015/06/17 21:07:42 I knew this package exists. However it might not b
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" >
+
+ <EditText
+ android:id="@+id/title_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:hint="@string/bookmark_name"
+ android:imeOptions="flagNoExtractUi"
+ android:inputType="textCapSentences|textAutoCorrect"
+ android:singleLine="true" />
+ </org.chromium.chrome.browser.widget.FloatLabelLayout>
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingEnd="3dp"
+ android:paddingStart="3dp"
+ android:paddingTop="8dp"
+ android:text="@string/bookmark_folder"
+ android:textAppearance="@android:style/TextAppearance.Small" />
newt (away) 2015/06/17 04:42:22 I believe TextAppearance.Small and TextAppearance.
Ian Wen 2015/06/17 21:07:42 Switched to TextAppearance.AppCompat.Small
+
+ <TextView
+ android:id="@+id/folder_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:clickable="true"
newt (away) 2015/06/17 04:42:22 FYI, you don't need to set clickable="true". If yo
Ian Wen 2015/06/17 21:07:42 I added it to experiment whether setting clickable
+ android:paddingBottom="8dp"
+ android:paddingEnd="3dp"
+ android:paddingStart="3dp"
+ android:paddingTop="8dp"
+ android:textAppearance="@android:style/TextAppearance.Medium"
+ android:textColor="@color/dark_mode_tint" />
+
+ <org.chromium.chrome.browser.widget.FloatLabelLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" >
+
+ <EditText
+ android:id="@+id/url_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:hint="@string/bookmark_url"
+ android:imeOptions="flagNoExtractUi"
+ android:inputType="textUri"
+ android:singleLine="true" />
+ </org.chromium.chrome.browser.widget.FloatLabelLayout>
+ </LinearLayout>
+
+</ScrollView>

Powered by Google App Engine
This is Rietveld 408576698