| 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 <org.chromium.chrome.browser.ntp.NewTabPageLayout | 5 <org.chromium.chrome.browser.ntp.NewTabPageLayout |
| 6 xmlns:android="http://schemas.android.com/apk/res/android" | 6 xmlns:android="http://schemas.android.com/apk/res/android" |
| 7 xmlns:chrome="http://schemas.android.com/apk/res-auto" | 7 xmlns:chrome="http://schemas.android.com/apk/res-auto" |
| 8 android:id="@+id/ntp_content" | 8 android:id="@+id/ntp_content" |
| 9 android:layout_width="match_parent" | 9 android:layout_width="match_parent" |
| 10 android:layout_height="match_parent" | 10 android:layout_height="match_parent" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 android:layout_width="0dp" | 52 android:layout_width="0dp" |
| 53 android:layout_height="0dp" | 53 android:layout_height="0dp" |
| 54 android:layout_weight="0" | 54 android:layout_weight="0" |
| 55 android:visibility="gone" /> | 55 android:visibility="gone" /> |
| 56 | 56 |
| 57 <!-- Search box --> | 57 <!-- Search box --> |
| 58 <LinearLayout | 58 <LinearLayout |
| 59 android:id="@+id/search_box" | 59 android:id="@+id/search_box" |
| 60 android:layout_width="match_parent" | 60 android:layout_width="match_parent" |
| 61 android:layout_height="@dimen/ntp_search_box_height" | 61 android:layout_height="@dimen/ntp_search_box_height" |
| 62 android:layout_marginStart="12dp" | 62 android:layout_marginStart="10dp" |
| 63 android:layout_marginEnd="12dp" | 63 android:layout_marginEnd="10dp" |
| 64 android:layout_marginTop="7dp" | 64 android:layout_marginTop="0dp" |
| 65 android:layout_marginBottom="8dp" | 65 android:layout_marginBottom="1dp" |
| 66 android:gravity="center_vertical" | 66 android:gravity="center_vertical" |
| 67 android:background="@drawable/bg_ntp_search_box" | 67 android:background="@drawable/textbox" |
| 68 android:orientation="horizontal" > | 68 android:orientation="horizontal" |
| 69 android:paddingStart="2dp" |
| 70 android:paddingEnd="2dp" |
| 71 android:paddingTop="3dp" |
| 72 android:paddingBottom="3dp" > |
| 69 <EditText | 73 <EditText |
| 70 android:id="@+id/search_box_text" | 74 android:id="@+id/search_box_text" |
| 71 android:layout_width="0dp" | 75 android:layout_width="0dp" |
| 72 android:layout_height="match_parent" | 76 android:layout_height="match_parent" |
| 73 android:layout_marginStart="12dp" | 77 android:layout_marginStart="12dp" |
| 74 android:layout_weight="1" | 78 android:layout_weight="1" |
| 75 android:background="@null" | 79 android:background="@null" |
| 76 android:ellipsize="end" | 80 android:ellipsize="end" |
| 77 android:focusableInTouchMode="false" | 81 android:focusableInTouchMode="false" |
| 78 android:gravity="center_vertical" | 82 android:gravity="center_vertical" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 android:layout_weight="1" | 139 android:layout_weight="1" |
| 136 android:visibility="gone" /> | 140 android:visibility="gone" /> |
| 137 | 141 |
| 138 <!-- Spacer to make the page scrollable when needed. --> | 142 <!-- Spacer to make the page scrollable when needed. --> |
| 139 <View | 143 <View |
| 140 android:id="@+id/ntp_scroll_spacer" | 144 android:id="@+id/ntp_scroll_spacer" |
| 141 android:layout_width="match_parent" | 145 android:layout_width="match_parent" |
| 142 android:layout_height="0dp" | 146 android:layout_height="0dp" |
| 143 android:visibility="gone" /> | 147 android:visibility="gone" /> |
| 144 </org.chromium.chrome.browser.ntp.NewTabPageLayout> | 148 </org.chromium.chrome.browser.ntp.NewTabPageLayout> |
| OLD | NEW |