OLD | NEW |
---|---|
(Empty) | |
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. | |
3 Use of this source code is governed by a BSD-style license that can be | |
4 found in the LICENSE file. --> | |
5 | |
6 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
7 android:layout_width="match_parent" | |
8 android:layout_height="wrap_content" | |
newt (away)
2015/07/10 18:55:46
Technically, this height should be powered_by_chro
Yusuf
2015/07/10 19:12:19
Yes, to the technicality. No to the calculations.
newt (away)
2015/07/10 19:18:38
That probably happens because you're not passing a
Yusuf
2015/07/10 19:23:55
Ah. I see. OK added the padding to the top.
| |
9 android:background="#f5f5f5" > | |
10 <View | |
11 android:layout_width="match_parent" | |
12 android:layout_height="1dp" | |
13 android:background="#e0e0e0" /> | |
14 <TextView | |
15 android:layout_width="match_parent" | |
16 android:layout_height="@dimen/powered_by_chrome_footer_height" | |
newt (away)
2015/07/10 18:55:46
Then, this can simply be match_parent. You could a
| |
17 android:paddingStart="16dp" | |
18 android:paddingEnd="16dp" | |
19 android:gravity="start|center_vertical" | |
20 android:textSize="12sp" | |
21 android:textColor="#616161" | |
22 android:text="@string/powered_by_chrome_message" | |
23 android:singleLine="true" /> | |
newt (away)
2015/07/10 18:55:46
maxLines="1" is recommended over singleLine="true"
Yusuf
2015/07/10 19:12:19
Done.
| |
24 </FrameLayout> | |
OLD | NEW |