improved layout of feedlist status indicators
This commit is contained in:
parent
f182862182
commit
66cfd44413
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval" >
|
||||
|
||||
<solid android:color="@color/white" />
|
||||
|
||||
<size
|
||||
android:height="4dp"
|
||||
android:width="4dp" />
|
||||
|
||||
</shape>
|
|
@ -23,47 +23,69 @@
|
|||
android:layout_centerVertical="true"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<LinearLayout
|
||||
<RelativeLayout
|
||||
android:id="@+id/lNewStatusLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="@dimen/status_indicator_width"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1" >
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/status_unread" >
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginRight="4dp"
|
||||
android:src="@drawable/white_circle" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txtvNewEps"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_marginRight="4dip"
|
||||
android:textSize="@dimen/text_size_medium"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:maxLines="1"
|
||||
android:minEms="2"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/text_size_micro"
|
||||
android:textStyle="bold" />
|
||||
</RelativeLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="5dip"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/status_unread"
|
||||
android:visibility="visible" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
<RelativeLayout
|
||||
android:id="@+id/lProgressStatusLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="@dimen/status_indicator_width"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1" >
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/ics_gray" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txtvProgressEps"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_marginRight="4dip"
|
||||
android:textSize="@dimen/text_size_medium"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@color/status_progress"
|
||||
android:maxLines="1"
|
||||
android:minEms="2"
|
||||
android:paddingLeft="4dp"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/text_size_micro"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="5dip"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/status_progress"
|
||||
android:visibility="visible" />
|
||||
</LinearLayout>
|
||||
<ImageView
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="8dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginRight="2dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:src="@drawable/av_play_dark" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
<color name="actionbar_gray">#DDDDDD</color>
|
||||
<color name="download_success_green">#669900</color>
|
||||
<color name="download_failed_red">#CC0000</color>
|
||||
<color name="status_unread">#99CC00</color>
|
||||
<color name="status_progress">#FFBB33</color>
|
||||
<color name="status_unread">#E099CC00</color>
|
||||
<color name="status_progress">#E033B5E5</color>
|
||||
<color name="status_playing">#EE5F52</color>
|
||||
<color name="overlay_dark">#262C31</color>
|
||||
<color name="overlay_light">#DDDDDD</color>
|
||||
|
|
|
@ -9,5 +9,6 @@
|
|||
<dimen name="text_size_small">14sp</dimen>
|
||||
<dimen name="text_size_medium">18sp</dimen>
|
||||
<dimen name="text_size_large">22sp</dimen>
|
||||
<dimen name="status_indicator_width">36dp</dimen>
|
||||
|
||||
</resources>
|
Loading…
Reference in New Issue