2012-02-06 19:00:16 -05:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2014-04-07 14:09:22 -04:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2013-03-15 20:15:33 -04:00
|
|
|
style="@style/UnreadWidgetContainer"
|
2012-02-06 19:00:16 -05:00
|
|
|
android:id="@+id/unread_widget_layout"
|
2013-03-15 20:15:33 -04:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2012-02-06 19:00:16 -05:00
|
|
|
android:orientation="vertical"
|
2012-02-09 15:47:47 -05:00
|
|
|
android:clickable="true"
|
2013-03-15 20:15:33 -04:00
|
|
|
android:focusable="true">
|
2012-02-06 19:00:16 -05:00
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<ImageView
|
2013-03-15 20:15:33 -04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2012-02-07 13:38:46 -05:00
|
|
|
android:scaleType="fitCenter"
|
2013-03-15 20:15:33 -04:00
|
|
|
android:src="@drawable/unread_widget_icon" />
|
2012-02-06 19:00:16 -05:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/unread_count"
|
2012-02-09 15:47:47 -05:00
|
|
|
android:visibility="gone"
|
2013-03-15 20:15:33 -04:00
|
|
|
android:textSize="12dp"
|
2012-02-06 19:00:16 -05:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="right|bottom"
|
|
|
|
android:paddingTop="0.5dp"
|
|
|
|
android:paddingBottom="0.5dp"
|
|
|
|
android:paddingLeft="5dp"
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
android:background="@drawable/unread_count_background"
|
2014-04-07 14:09:22 -04:00
|
|
|
android:textColor="#ffffff"
|
|
|
|
tools:ignore="SpUsage"/>
|
2012-02-06 19:00:16 -05:00
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<TextView
|
2013-03-15 20:15:33 -04:00
|
|
|
style="@style/UnreadWidgetTextView"
|
2012-02-06 19:00:16 -05:00
|
|
|
android:id="@+id/account_name"
|
2012-02-09 15:47:47 -05:00
|
|
|
android:text="@string/app_name"
|
2012-02-07 13:38:46 -05:00
|
|
|
android:ellipsize="marquee"
|
2012-02-06 19:00:16 -05:00
|
|
|
android:singleLine="true"
|
|
|
|
android:paddingTop="1dp"
|
|
|
|
android:paddingBottom="1dp"
|
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingRight="4dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
2013-03-15 20:15:33 -04:00
|
|
|
android:layout_marginTop="3dp" />
|
2012-02-06 19:00:16 -05:00
|
|
|
|
|
|
|
</LinearLayout>
|