OLD | NEW |
---|---|
(Empty) | |
1 <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.
| |
2 android:layout_width="match_parent" | |
3 android:layout_height="match_parent" > | |
4 | |
5 <LinearLayout | |
6 android:layout_width="match_parent" | |
7 android:layout_height="wrap_content" | |
8 android:layout_marginEnd="16dp" | |
9 android:layout_marginStart="16dp" | |
10 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
| |
11 android:orientation="vertical" > | |
12 | |
13 <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
| |
14 android:layout_width="match_parent" | |
15 android:layout_height="wrap_content" > | |
16 | |
17 <EditText | |
18 android:id="@+id/title_text" | |
19 android:layout_width="match_parent" | |
20 android:layout_height="wrap_content" | |
21 android:hint="@string/bookmark_name" | |
22 android:imeOptions="flagNoExtractUi" | |
23 android:inputType="textCapSentences|textAutoCorrect" | |
24 android:singleLine="true" /> | |
25 </org.chromium.chrome.browser.widget.FloatLabelLayout> | |
26 | |
27 <TextView | |
28 android:layout_width="wrap_content" | |
29 android:layout_height="wrap_content" | |
30 android:paddingEnd="3dp" | |
31 android:paddingStart="3dp" | |
32 android:paddingTop="8dp" | |
33 android:text="@string/bookmark_folder" | |
34 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
| |
35 | |
36 <TextView | |
37 android:id="@+id/folder_text" | |
38 android:layout_width="match_parent" | |
39 android:layout_height="wrap_content" | |
40 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
| |
41 android:paddingBottom="8dp" | |
42 android:paddingEnd="3dp" | |
43 android:paddingStart="3dp" | |
44 android:paddingTop="8dp" | |
45 android:textAppearance="@android:style/TextAppearance.Medium" | |
46 android:textColor="@color/dark_mode_tint" /> | |
47 | |
48 <org.chromium.chrome.browser.widget.FloatLabelLayout | |
49 android:layout_width="match_parent" | |
50 android:layout_height="wrap_content" > | |
51 | |
52 <EditText | |
53 android:id="@+id/url_text" | |
54 android:layout_width="match_parent" | |
55 android:layout_height="wrap_content" | |
56 android:hint="@string/bookmark_url" | |
57 android:imeOptions="flagNoExtractUi" | |
58 android:inputType="textUri" | |
59 android:singleLine="true" /> | |
60 </org.chromium.chrome.browser.widget.FloatLabelLayout> | |
61 </LinearLayout> | |
62 | |
63 </ScrollView> | |
OLD | NEW |