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

Side by Side Diff: chrome/android/java/res/layout/powered_by_chrome_footer.xml

Issue 1229223002: Add a footer at the bottom of the menu for custom tabs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed first review comments Created 5 years, 5 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 unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698