Updated statistics layout
This commit is contained in:
parent
71949ab1b7
commit
045e4bc419
|
@ -1,41 +1,58 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_height="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:orientation="vertical"
|
android:layout_height="match_parent"
|
||||||
android:paddingTop="8dp"
|
android:orientation="vertical">
|
||||||
android:paddingBottom="8dp">
|
|
||||||
|
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/total_time_listened_to_podcasts"
|
android:orientation="vertical"
|
||||||
android:gravity="center_horizontal"/>
|
android:padding="16dp">
|
||||||
|
|
||||||
<ProgressBar
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:id="@+id/progressBar"
|
android:textSize="14sp"
|
||||||
android:layout_gravity="center_horizontal"
|
android:text="@string/total_time_listened_to_podcasts"
|
||||||
style="?android:attr/progressBarStyleLarge"/>
|
android:gravity="center_horizontal"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:id="@+id/total_time"
|
android:id="@+id/total_time"
|
||||||
android:gravity="center_horizontal"
|
android:textColor="?android:attr/textColorPrimary"
|
||||||
android:textSize="45sp"/>
|
android:gravity="center_horizontal"
|
||||||
|
android:textSize="28sp"
|
||||||
|
tools:text="10.0 hours"/>
|
||||||
|
|
||||||
|
<ProgressBar
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/progressBar"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
style="?android:attr/progressBarStyleSmall"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_marginLeft="16dp"
|
||||||
|
android:layout_marginRight="16dp"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:background="?android:attr/dividerVertical"/>
|
||||||
|
|
||||||
<ListView
|
<ListView
|
||||||
android:id="@+id/statistics_list"
|
android:id="@+id/statistics_list"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:choiceMode="singleChoice"
|
android:choiceMode="singleChoice"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
android:divider="@android:color/transparent"
|
android:divider="@android:color/transparent"
|
||||||
android:dividerHeight="0dp"
|
android:dividerHeight="0dp"
|
||||||
android:paddingBottom="@dimen/list_vertical_padding"
|
android:paddingBottom="@dimen/list_vertical_padding"
|
||||||
android:paddingTop="@dimen/list_vertical_padding"
|
android:paddingTop="@dimen/list_vertical_padding"
|
||||||
android:scrollbarStyle="outsideOverlay" />
|
android:scrollbarStyle="outsideOverlay"
|
||||||
|
tools:listitem="@layout/statistics_listitem"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
@ -3,63 +3,54 @@
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/listitem_iconwithtext_height"
|
android:layout_height="wrap_content"
|
||||||
android:paddingLeft="@dimen/listitem_threeline_verticalpadding"
|
android:paddingLeft="16dp"
|
||||||
android:paddingStart="@dimen/listitem_threeline_verticalpadding"
|
android:paddingRight="16dp"
|
||||||
android:paddingRight="@dimen/listitem_threeline_verticalpadding"
|
android:paddingTop="8dp"
|
||||||
android:paddingEnd="@dimen/listitem_threeline_verticalpadding"
|
android:paddingBottom="8dp">
|
||||||
tools:background="@android:color/darker_gray">
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/imgvCover"
|
android:id="@+id/imgvCover"
|
||||||
android:contentDescription="@string/cover_label"
|
android:contentDescription="@string/cover_label"
|
||||||
android:layout_width="@dimen/thumbnail_length_navlist"
|
android:layout_width="40dp"
|
||||||
android:layout_height="@dimen/thumbnail_length_navlist"
|
android:layout_height="40dp"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_alignParentStart="true"
|
android:layout_alignParentStart="true"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:cropToPadding="true"
|
android:cropToPadding="true"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
android:layout_marginTop="4dp"
|
tools:src="@drawable/ic_antenna"
|
||||||
android:layout_marginBottom="4dp"
|
tools:background="@android:color/holo_green_dark"/>
|
||||||
tools:src="@drawable/ic_antenna"
|
|
||||||
tools:background="@android:color/holo_green_dark"/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/txtvTime"
|
android:id="@+id/txtvTitle"
|
||||||
android:layout_width="wrap_content"
|
android:lines="1"
|
||||||
android:layout_height="wrap_content"
|
android:ellipsize="end"
|
||||||
android:layout_marginLeft="@dimen/list_vertical_padding"
|
android:singleLine="true"
|
||||||
android:layout_marginStart="@dimen/list_vertical_padding"
|
android:textColor="?android:attr/textColorPrimary"
|
||||||
android:lines="1"
|
android:textSize="16sp"
|
||||||
android:textColor="?android:attr/textColorTertiary"
|
android:layout_width="wrap_content"
|
||||||
android:textSize="@dimen/text_size_navdrawer"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_marginLeft="16dp"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_marginStart="16dp"
|
||||||
android:layout_centerVertical="true"
|
android:layout_toRightOf="@id/imgvCover"
|
||||||
tools:text="23"
|
android:layout_alignTop="@id/imgvCover"
|
||||||
tools:background="@android:color/holo_green_dark"/>
|
android:layout_alignWithParentIfMissing="true"
|
||||||
|
tools:text="Feed title"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/txtvTitle"
|
android:id="@+id/txtvTime"
|
||||||
android:lines="1"
|
android:layout_width="wrap_content"
|
||||||
android:ellipsize="end"
|
android:layout_height="wrap_content"
|
||||||
android:singleLine="true"
|
android:lines="1"
|
||||||
android:layout_centerVertical="true"
|
android:textColor="?android:attr/textColorTertiary"
|
||||||
android:textColor="?android:attr/textColorPrimary"
|
android:textSize="14sp"
|
||||||
android:textSize="@dimen/text_size_navdrawer"
|
android:layout_toEndOf="@+id/imgvCover"
|
||||||
android:layout_width="wrap_content"
|
android:layout_toRightOf="@+id/imgvCover"
|
||||||
android:layout_height="wrap_content"
|
android:layout_marginLeft="16dp"
|
||||||
android:layout_marginLeft="@dimen/listitem_iconwithtext_textleftpadding"
|
android:layout_marginStart="16dp"
|
||||||
android:layout_marginStart="@dimen/listitem_iconwithtext_textleftpadding"
|
android:layout_below="@+id/txtvTitle"
|
||||||
android:layout_toRightOf="@id/imgvCover"
|
tools:text="23 hours"/>
|
||||||
android:layout_toEndOf="@id/imgvCover"
|
|
||||||
android:layout_toLeftOf="@id/txtvTime"
|
|
||||||
android:layout_toStartOf="@id/txtvTime"
|
|
||||||
android:layout_alignWithParentIfMissing="true"
|
|
||||||
tools:text="Navigation feed item title"
|
|
||||||
tools:background="@android:color/holo_green_dark"/>
|
|
||||||
|
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
Loading…
Reference in New Issue