<?xml version="1.0" encoding="utf-8"?><!--
  ~ Twidere - Twitter client for Android
  ~
  ~  Copyright (C) 2012-2014 Mariotaku Lee <mariotaku.lee@gmail.com>
  ~
  ~  This program is free software: you can redistribute it and/or modify
  ~  it under the terms of the GNU General Public License as published by
  ~  the Free Software Foundation, either version 3 of the License, or
  ~  (at your option) any later version.
  ~
  ~  This program is distributed in the hope that it will be useful,
  ~  but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~  GNU General Public License for more details.
  ~
  ~  You should have received a copy of the GNU General Public License
  ~  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  -->

<!--suppress AndroidUnknownAttribute -->
<view xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      class="org.mariotaku.twidere.view.TabPagerIndicator$ItemLayout"
      android:layout_width="wrap_content"
      android:layout_height="match_parent"
      android:background="?selectableItemBackground"
      tools:layout_height="?actionBarSize">

    <LinearLayout
        android:id="@+id/tab_content"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:gravity="center_vertical"
        android:orientation="horizontal">

        <ImageView
            android:id="@+id/tab_icon"
            android:layout_width="@dimen/action_icon_size"
            android:layout_height="@dimen/action_icon_size"
            android:contentDescription="@string/icon"
            android:scaleType="centerInside"
            tools:src="@drawable/ic_action_home"/>

        <org.mariotaku.twidere.view.FixedTextView
            android:id="@+id/tab_label"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            android:textAllCaps="true"
            android:textAppearance="?android:textAppearanceSmall"
            android:textColor="?android:textColorPrimary"
            android:textStyle="bold"/>
    </LinearLayout>

    <org.mariotaku.twidere.view.BadgeView
        android:id="@+id/unread_indicator"
        android:layout_width="@dimen/unread_indicator_size"
        android:layout_height="@dimen/unread_indicator_size"
        android:layout_alignEnd="@+id/tab_content"
        android:layout_alignRight="@+id/tab_content"
        android:layout_alignTop="@+id/tab_content"
        android:layout_marginTop="@dimen/element_spacing_minus_small"
        android:background="@drawable/bg_unread_indicator"
        android:ellipsize="none"
        android:gravity="center"
        android:padding="@dimen/element_spacing_xsmall"
        android:singleLine="true"
        android:textColor="@android:color/white"/>

</view>