mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 1084098 - Add Android tools tags to some Remote Tabs home panel views. r=mcomella
These tags are used by Android tools (including IntelliJ) at design-time to show "sample data". They're stripped entirely at build time.
This commit is contained in:
parent
e93eb67e90
commit
05762df188
@ -6,6 +6,7 @@
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:gecko="http://schemas.android.com/apk/res-auto"
|
||||
style="@style/Widget.RemoteTabsClientView"
|
||||
android:gravity="center_vertical"
|
||||
@ -19,7 +20,8 @@
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:scaleType="center"/>
|
||||
android:scaleType="center"
|
||||
tools:src="@drawable/sync_mobile"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
@ -32,7 +34,8 @@
|
||||
style="@style/Widget.TwoLinePageRow.Title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
gecko:fadeWidth="30dp"/>
|
||||
gecko:fadeWidth="30dp"
|
||||
tools:text="Firefox on Nexus 5"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/last_synced"
|
||||
@ -40,7 +43,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:maxLength="1024"/>
|
||||
android:maxLength="1024"
|
||||
tools:text="Last synced: 5 minutes ago"/>
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
@ -49,6 +53,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_marginLeft="15dip"
|
||||
android:layout_marginRight="15dip"
|
||||
android:scaleType="center"/>
|
||||
android:scaleType="center"
|
||||
tools:src="@drawable/home_group_expanded"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
@ -4,12 +4,15 @@
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:gecko="http://schemas.android.com/apk/res-auto">
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:gecko="http://schemas.android.com/apk/res-auto"
|
||||
tools:context=".BrowserApp">
|
||||
|
||||
<org.mozilla.gecko.widget.FaviconView android:id="@+id/icon"
|
||||
android:layout_width="@dimen/favicon_bg"
|
||||
android:layout_height="@dimen/favicon_bg"
|
||||
android:layout_margin="16dp"/>
|
||||
android:layout_margin="16dp"
|
||||
tools:background="@drawable/favicon"/>
|
||||
|
||||
<LinearLayout android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -22,14 +25,18 @@
|
||||
style="@style/Widget.TwoLinePageRow.Title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
gecko:fadeWidth="30dp"/>
|
||||
gecko:fadeWidth="30dp"
|
||||
tools:text="This is a long test title"/>
|
||||
|
||||
<TextView android:id="@+id/url"
|
||||
style="@style/Widget.TwoLinePageRow.Url"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawablePadding="5dp"
|
||||
android:maxLength="1024"/>
|
||||
android:maxLength="1024"
|
||||
tools:text="http://test.com/test"
|
||||
tools:drawableLeft="@drawable/ic_url_bar_tab"
|
||||
tools:drawableRight="@drawable/ic_url_bar_star"/>
|
||||
|
||||
</LinearLayout>
|
||||
</merge>
|
||||
|
Loading…
Reference in New Issue
Block a user