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

Unified Diff: chrome/android/java/res/layout/location_bar_google_g.xml

Issue 2806753003: 🔍 Hide the Google G by default (Closed)
Patch Set: 🔍 Hide the Google G by default Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/res/layout/location_bar_google_g.xml
diff --git a/chrome/android/java/res/layout/location_bar_google_g.xml b/chrome/android/java/res/layout/location_bar_google_g.xml
new file mode 100644
index 0000000000000000000000000000000000000000..0871425c67b6ce300205c15047c33f12c68f3fde
--- /dev/null
+++ b/chrome/android/java/res/layout/location_bar_google_g.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2017 The Chromium Authors. All rights reserved.
+ Use of this source code is governed by a BSD-style license that can be
+ found in the LICENSE file. -->
+
+<!-- The container for the Google G is kept at a fixed width to make the horizontal translation
+ calculations work. The contents are end-aligned, so when the location bar expands,
+ the space in the start margin will be pushed out, creating the effect of both margins
+ shrinking simultaneously. -->
+<FrameLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="@dimen/location_bar_google_g_container_width"
+ android:layout_height="match_parent" >
+
+ <ImageView android:id="@+id/google_g"
+ style="@style/LocationBarButton"
+ android:layout_width="@dimen/location_bar_google_g_width"
+ android:layout_height="match_parent"
+ android:layout_marginEnd="@dimen/location_bar_google_g_margin"
+ android:layout_gravity="end"
+ android:scaleType="fitCenter"
+ android:src="@drawable/googleg"
+ android:contentDescription="@null" />
+
+</FrameLayout>

Powered by Google App Engine
This is Rietveld 408576698