mobile/android/base/resources/layout/home_smartfolder.xml
author Chenxia Liu <liuche@mozilla.com>
Mon, 02 May 2016 17:47:53 -0700
changeset 332741 3d60e5a9eb9f1cf28c22dec320331945a7c9048d
parent 332738 73b77e1a24e1d53ea30912b62a5a6f1e5a1eeed0
child 340933 6b9019f9156208d37ce7f35bc18d48106485f888
permissions -rw-r--r--
Bug 1261527 - Scale smartfolder icon. r=trivial, a=lizzard

<?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/.
-->

<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"
    android:layout_width="match_parent"
    android:layout_height="@dimen/home_header_item_height"
    android:minHeight="@dimen/home_header_item_height">

    <ImageView
        android:id="@+id/device_type"
        android:layout_width="@dimen/favicon_bg"
        android:layout_height="@dimen/favicon_bg"
        android:layout_marginLeft="16dp"
        android:layout_marginRight="16dp"
        android:layout_gravity="center_vertical"
        android:scaleType="fitCenter"
        tools:src="@drawable/cloud"/>

    <LinearLayout
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:orientation="vertical">

        <org.mozilla.gecko.widget.FadedSingleColorTextView
            android:id="@+id/title"
            style="@style/Widget.FolderTitle.TwoLine"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            gecko:fadeWidth="30dp"
            tools:text="Firefox on Nexus 5"/>

        <TextView
            android:id="@+id/subtext"
            style="@style/Widget.TwoLinePageRow.Url"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="4dp"
            android:maxLength="1024"
            tools:text="Last synced: 5 minutes ago"/>
    </LinearLayout>

</LinearLayout>