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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 </LinearLayout> | 97 </LinearLayout> |
98 | 98 |
99 <!-- Middle spacer --> | 99 <!-- Middle spacer --> |
100 <View | 100 <View |
101 android:id="@+id/ntp_middle_spacer" | 101 android:id="@+id/ntp_middle_spacer" |
102 android:layout_width="0dp" | 102 android:layout_width="0dp" |
103 android:layout_height="0dp" | 103 android:layout_height="0dp" |
104 android:layout_weight="0" | 104 android:layout_weight="0" |
105 android:visibility="invisible" /> | 105 android:visibility="invisible" /> |
106 | 106 |
107 <!-- Site suggestion tiles --> | 107 <!-- Site suggestion tile grid --> |
108 <org.chromium.chrome.browser.suggestions.TileGridLayout | 108 <org.chromium.chrome.browser.suggestions.TileGridLayout |
109 android:id="@+id/tile_grid_layout" | 109 android:id="@+id/tile_grid_layout" |
110 android:layout_width="wrap_content" | 110 android:layout_width="wrap_content" |
111 android:layout_height="wrap_content" | 111 android:layout_height="wrap_content" |
112 android:layout_marginBottom="16dp" | 112 android:layout_marginBottom="16dp" |
113 android:layout_marginStart="12dp" | 113 android:layout_marginStart="12dp" |
114 android:layout_marginEnd="12dp" | 114 android:layout_marginEnd="12dp" |
115 android:layout_gravity="center_horizontal" | 115 android:layout_gravity="center_horizontal" |
116 android:paddingTop="@dimen/tile_grid_layout_padding_top" | 116 android:paddingTop="@dimen/tile_grid_layout_padding_top" |
117 android:paddingBottom="4dp" /> | 117 android:paddingBottom="4dp" /> |
118 | 118 |
119 <!-- Site suggestions tile grid placeholder --> | 119 <!-- Site suggestion tile grid placeholder --> |
120 <ViewStub | 120 <ViewStub |
121 android:id="@+id/tile_grid_placeholder_stub" | 121 android:id="@+id/tile_grid_placeholder_stub" |
122 android:layout_width="match_parent" | 122 android:layout_width="match_parent" |
123 android:layout_height="wrap_content" | 123 android:layout_height="wrap_content" |
124 android:layout_weight="1" | 124 android:layout_weight="1" |
125 android:inflatedId="@+id/tile_grid_placeholder" | 125 android:inflatedId="@+id/tile_grid_placeholder" |
126 android:layout="@layout/new_tab_page_tile_grid_placeholder" /> | 126 android:layout="@layout/new_tab_page_tile_grid_placeholder" /> |
127 | 127 |
128 <!-- Bottom spacer --> | 128 <!-- Bottom spacer --> |
129 <View | 129 <View |
130 android:id="@+id/ntp_bottom_spacer" | 130 android:id="@+id/ntp_bottom_spacer" |
131 android:layout_width="0dp" | 131 android:layout_width="0dp" |
132 android:layout_height="0dp" | 132 android:layout_height="0dp" |
133 android:layout_weight="0" | 133 android:layout_weight="0" |
134 android:visibility="invisible" /> | 134 android:visibility="invisible" /> |
135 | 135 |
136 <!-- Spacer for when there is no search provider logo. --> | 136 <!-- Spacer for when there is no search provider logo. --> |
137 <View | 137 <View |
138 android:id="@+id/no_search_logo_spacer" | 138 android:id="@+id/no_search_logo_spacer" |
139 android:layout_width="match_parent" | 139 android:layout_width="match_parent" |
140 android:layout_height="0dp" | 140 android:layout_height="0dp" |
141 android:layout_weight="1" | 141 android:layout_weight="1" |
142 android:visibility="gone" /> | 142 android:visibility="gone" /> |
143 </org.chromium.chrome.browser.ntp.NewTabPageLayout> | 143 </org.chromium.chrome.browser.ntp.NewTabPageLayout> |
OLD | NEW |