OLD | NEW |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!-- Copyright 2016 The Chromium Authors. All rights reserved. | 2 <!-- Copyright 2016 The Chromium Authors. All rights reserved. |
3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
4 found in the LICENSE file. --> | 4 found in the LICENSE file. --> |
5 | 5 |
6 <AutoCompleteTextView | 6 <FrameLayout |
7 xmlns:android="http://schemas.android.com/apk/res/android" | 7 xmlns:android="http://schemas.android.com/apk/res/android" |
8 android:id="@+id/text_view" | |
9 android:layout_width="match_parent" | 8 android:layout_width="match_parent" |
10 android:layout_height="wrap_content" | 9 android:layout_height="wrap_content"> |
11 android:singleLine="true" | 10 |
12 android:imeOptions="flagNoExtractUi" /> | 11 <org.chromium.chrome.browser.widget.CompatibilityTextInputLayout |
Ted C
2016/10/21 17:50:43
what happens if this text is very long? Won't the
gogerald1
2016/10/21 20:01:34
Done. Add padding programmatically in EditorTextFi
| |
12 android:id="@+id/text_input_layout" | |
13 android:layout_width="match_parent" | |
14 android:layout_height="wrap_content"> | |
15 | |
16 <AutoCompleteTextView | |
17 android:id="@+id/text_view" | |
18 android:layout_width="match_parent" | |
19 android:layout_height="wrap_content" | |
20 android:singleLine="true" | |
21 android:imeOptions="flagNoExtractUi" /> | |
22 </org.chromium.chrome.browser.widget.CompatibilityTextInputLayout> | |
23 | |
24 <ImageView | |
25 android:id="@+id/action_icon" | |
26 android:layout_width="48dp" | |
27 android:layout_height="48dp" | |
28 android:padding="12dp" | |
29 android:layout_gravity="end" | |
30 android:contentDescription="@null" | |
31 android:visibility="gone"/> | |
32 </FrameLayout> | |
OLD | NEW |