mobile/android/base/resources/layout/home_remote_tabs_group.xml
author Chenxia Liu <liuche@mozilla.com>
Thu, 10 Mar 2016 17:29:22 -0800
changeset 290830 f2a5f6a248ed41b7313a27662c223ed801e0b13c
parent 288870 d62999417a47b9f3e3524533131394ba0cfebc44
child 290886 48cabf56e441a81f69e08b55f298610550302e87
permissions -rw-r--r--
Bug 1220928 - Align synced clients with history items. r=sebastian MozReview-Commit-ID: KDz13cm8okc

<?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="center"
        tools:src="@drawable/sync_mobile"/>

    <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/client"
            style="@style/Widget.TwoLinePageRow.Title"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            gecko:fadeWidth="30dp"
            tools:text="Firefox on Nexus 5"/>

        <TextView
            android:id="@+id/last_synced"
            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>

    <ImageView
        android:id="@+id/device_expanded"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:layout_marginLeft="15dip"
        android:layout_marginRight="15dip"
        android:scaleType="center"
        tools:src="@drawable/arrow_down"/>

</LinearLayout>