Bug 1227325 - Part 1: Upgrade EditBookmarkDialog to use TextInputLayout r=mcomella
authorAndrzej Hunt <ahunt@mozilla.com>
Mon, 11 Jan 2016 18:16:57 -0800
changeset 281380 a26c5c9ab77dc3c9eb843b19e672c11ed305aeea
parent 281379 65e26c4110070a05956f665a7b6ac0abbca7e10a
child 281381 d868de0c4779f073934b728ca8ddf7f2d661ac43
push id29935
push userphilringnalda@gmail.com
push dateSun, 24 Jan 2016 02:12:02 +0000
treeherdermozilla-central@a2e81822194a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcomella
bugs1227325
milestone46.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1227325 - Part 1: Upgrade EditBookmarkDialog to use TextInputLayout r=mcomella
mobile/android/base/resources/layout/bookmark_edit.xml
--- a/mobile/android/base/resources/layout/bookmark_edit.xml
+++ b/mobile/android/base/resources/layout/bookmark_edit.xml
@@ -1,34 +1,54 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- This Source Code Form is subject to the terms of the Mozilla Public
    - License, v. 2.0. If a copy of the MPL was not distributed with this
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
 
 
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+              xmlns:app="http://schemas.android.com/apk/res-auto"
               android:layout_width="match_parent"
               android:orientation="vertical"
               android:layout_height="match_parent">
 
-    <org.mozilla.gecko.widget.FloatingHintEditText
-              android:id="@+id/edit_bookmark_name"
-              android:layout_width="match_parent"
-              android:layout_height="wrap_content"
-              android:singleLine="true"
-              android:hint="@string/bookmark_edit_name"/>
+    <android.support.design.widget.TextInputLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            app:hintAnimationEnabled="true">
+
+        <EditText
+                android:id="@+id/edit_bookmark_name"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:singleLine="true"
+                android:hint="@string/bookmark_edit_name"
+                />
+    </android.support.design.widget.TextInputLayout>
+
+    <android.support.design.widget.TextInputLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            app:hintAnimationEnabled="true">
 
-    <org.mozilla.gecko.widget.FloatingHintEditText
-              android:id="@+id/edit_bookmark_location"
-              android:layout_width="match_parent"
-              android:layout_height="wrap_content"
-              android:singleLine="true"
-              android:hint="@string/bookmark_edit_location"
-              android:inputType="textNoSuggestions"/>
+        <EditText
+                android:id="@+id/edit_bookmark_location"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:singleLine="true"
+                android:hint="@string/bookmark_edit_location"
+                android:inputType="textNoSuggestions"/>
+    </android.support.design.widget.TextInputLayout>
 
-    <org.mozilla.gecko.widget.FloatingHintEditText
-              android:id="@+id/edit_bookmark_keyword"
-              android:layout_width="match_parent"
-              android:layout_height="wrap_content"
-              android:singleLine="true"
-              android:hint="@string/bookmark_edit_keyword"/>
+    <android.support.design.widget.TextInputLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            app:hintAnimationEnabled="true">
+
+        <EditText
+                android:id="@+id/edit_bookmark_keyword"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:singleLine="true"
+                android:hint="@string/bookmark_edit_keyword"/>
+    </android.support.design.widget.TextInputLayout>
 
 </LinearLayout>