gecko-dev/mobile/android/base/resources/layout/abouthome_content.xml
Sriram Ramasubramanian 68b37c80c5 Bug 852312: Split views in about:home [r=bnicholson]
--HG--
rename : mobile/android/base/AboutHomeContent.java => mobile/android/base/widget/AboutHomeContent.java
rename : mobile/android/base/AboutHomeSection.java => mobile/android/base/widget/AboutHomeSection.java
rename : mobile/android/base/AboutHomePromoBox.java => mobile/android/base/widget/PromoBox.java
extra : rebase_source : 0db7d60aa0c57eb9aeb9cad3e1f297b0ec0ddd0f
2013-03-25 15:45:33 -07:00

94 lines
4.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- 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">
<RelativeLayout android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingLeft="@dimen/abouthome_gutter_large"
android:paddingRight="@dimen/abouthome_gutter_large">
<Gecko.ImageView android:id="@+id/abouthome_logo"
android:src="@drawable/abouthome_logo"
android:layout_width="wrap_content"
android:layout_height="24dip"
android:layout_marginTop="16dip"
android:layout_marginBottom="10dip"
android:layout_marginLeft="12dip"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"/>
<Gecko.TextView android:id="@+id/top_sites_title"
android:text="@string/abouthome_top_sites_title"
android:layout_width="fill_parent"
android:layout_height="26dip"
android:background="#34FFFFFF"
android:paddingLeft="12dip"
android:textSize="12sp"
android:textColor="@color/abouthome_section_title"
android:textStyle="bold"
android:gravity="left|center_vertical"
android:layout_below="@id/abouthome_logo"/>
<ImageView android:src="@drawable/abouthome_icon"
android:layout_width="180dp"
android:layout_height="153dp"
android:layout_marginTop="4dp"
android:layout_marginRight="@dimen/abouthome_icon_crop"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"/>
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@id/top_sites_title">
<Gecko.TopSitesView android:id="@+id/top_sites_grid"
style="@style/AboutHome.Thumbnail.Grid"/>
<Gecko.PromoBox android:id="@+id/promo_box"
android:background="@drawable/abouthome_promo_box"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
android:layout_marginTop="17dp"
android:layout_marginBottom="14dp"
android:drawablePadding="7dp"
android:gravity="center"
android:clickable="true"
android:textSize="15sp"
android:textColor="#FFFFFF"
android:visibility="gone"
android:focusable="true"/>
<Gecko.LastTabsSection android:id="@+id/last_tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:visibility="gone"
gecko:title="@string/abouthome_last_tabs_title"
gecko:more_text="@string/abouthome_last_tabs_open"/>
<Gecko.AddonsSection android:id="@+id/recommended_addons"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:visibility="gone"
gecko:title="@string/abouthome_addons_title"
gecko:more_text="@string/abouthome_addons_browse"/>
<Gecko.RemoteTabsSection android:id="@+id/remote_tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:visibility="gone"
gecko:title="@string/remote_tabs"
gecko:more_text="@string/remote_tabs_show_all"/>
</LinearLayout>
</RelativeLayout>
</merge>