1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 10:22:15 -05:00
k-9/res/layout/unread_widget_layout.xml

60 lines
2.0 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/unread_widget_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="2dp"
android:orientation="vertical"
2012-02-09 15:47:47 -05:00
android:clickable="true"
android:focusable="true"
android:background="@drawable/unread_widget_background"
android:gravity="bottom|center_horizontal">
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
2012-02-07 13:38:46 -05:00
android:layout_width="@android:dimen/app_icon_size"
android:layout_height="@android:dimen/app_icon_size"
android:scaleType="fitCenter"
android:src="@drawable/icon" />
<TextView
android:id="@+id/unread_count"
2012-02-09 15:47:47 -05:00
android:visibility="gone"
2012-02-07 13:38:46 -05:00
android:textSize="10dp"
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"
android:textColor="#ffffff"/>
</FrameLayout>
<TextView
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"
android:textSize="12dp"
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"
2012-02-07 13:38:46 -05:00
android:layout_marginTop="3dp"
android:background="@drawable/rounded_corners"
2012-02-07 13:38:46 -05:00
android:textColor="#ffffff"
android:shadowColor="#000000"
android:shadowRadius="2.0"/>
</LinearLayout>