aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src/main/res/layout/stats_activity_single_post_details.xml
diff options
context:
space:
mode:
authorChris Warrington <cmw@google.com>2016-10-18 12:29:21 +0100
committerChris Warrington <cmw@google.com>2016-10-18 12:34:18 +0100
commite3780081075c01aa1dff6d1f373cb43192b33e68 (patch)
treefb734615933a39f3d009210dc0d1457160479b35 /WordPress/src/main/res/layout/stats_activity_single_post_details.xml
parent7e05eb7e57827eddc885570bc00aed8a50320dbf (diff)
parent025b8b226c8d8edba2b309ca878572f40512eca7 (diff)
downloadgradle-perf-android-medium-e3780081075c01aa1dff6d1f373cb43192b33e68.tar.gz
Change-Id: I63f5e16d09297c48432192761b840310935eb903
Diffstat (limited to 'WordPress/src/main/res/layout/stats_activity_single_post_details.xml')
-rw-r--r--WordPress/src/main/res/layout/stats_activity_single_post_details.xml273
1 files changed, 273 insertions, 0 deletions
diff --git a/WordPress/src/main/res/layout/stats_activity_single_post_details.xml b/WordPress/src/main/res/layout/stats_activity_single_post_details.xml
new file mode 100644
index 000000000..84a63a0e0
--- /dev/null
+++ b/WordPress/src/main/res/layout/stats_activity_single_post_details.xml
@@ -0,0 +1,273 @@
+<?xml version="1.0" encoding="utf-8"?>
+<org.wordpress.android.util.widgets.CustomSwipeRefreshLayout
+ android:id="@+id/ptr_layout"
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <org.wordpress.android.ui.stats.ScrollViewExt
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:id="@+id/scroll_view_stats"
+ android:fillViewport="true">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <!-- The title "Stats for XXX" -->
+ <org.wordpress.android.widgets.WPTextView
+ android:id="@+id/stats_summary_title"
+ android:background="?android:selectableItemBackground"
+ android:textAppearance="?android:attr/textAppearance"
+ android:textSize="@dimen/text_sz_large"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="@dimen/margin_large"
+ android:layout_marginBottom="@dimen/margin_medium"
+ android:layout_marginLeft="@dimen/content_margin"
+ android:layout_marginRight="@dimen/content_margin"
+ android:textColor="@color/grey_darken_20"
+ android:gravity="center"
+ tools:text="Title"/>
+
+ <!-- Graph -->
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@drawable/stats_white_background"
+ android:orientation="vertical"
+ android:padding="@dimen/margin_medium"
+ android:layout_marginBottom="@dimen/margin_medium"
+ android:layout_marginTop="@dimen/margin_medium"
+ android:layout_marginLeft="@dimen/content_margin"
+ android:layout_marginRight="@dimen/content_margin">
+
+ <LinearLayout
+ android:id="@+id/stats_bar_chart_fragment_container"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:minHeight="@dimen/stats_barchart_height"
+ android:orientation="vertical" />
+
+ <RelativeLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="@dimen/margin_medium"
+ android:layout_marginRight="@dimen/margin_medium"
+ android:layout_marginTop="@dimen/margin_medium"
+ android:layout_marginBottom="@dimen/margin_small">
+
+ <org.wordpress.android.widgets.WPTextView
+ android:id="@+id/stats_views_label"
+ style="@style/StatsInsightsLabel"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/stats_default_number_zero"
+ android:textColor="@color/grey_dark"
+ android:layout_alignParentLeft="true" />
+
+ <org.wordpress.android.widgets.WPTextView
+ android:id="@+id/stats_views_totals"
+ style="@style/StatsInsightsLabel"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textColor="@color/notification_status_unapproved_dark"
+ android:text="@string/stats_default_number_zero"
+ android:layout_alignParentRight="true" />
+
+ </RelativeLayout>
+
+ </LinearLayout>
+
+ <!-- Months and Years -->
+ <LinearLayout
+ android:id="@+id/stats_months_years_module"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@drawable/stats_white_background"
+ android:orientation="vertical"
+ android:paddingTop="@dimen/margin_small"
+ android:layout_marginBottom="@dimen/margin_medium"
+ android:layout_marginTop="@dimen/margin_medium"
+ android:layout_marginLeft="@dimen/content_margin"
+ android:layout_marginRight="@dimen/content_margin">
+
+ <org.wordpress.android.widgets.WPTextView
+ android:layout_marginLeft="@dimen/margin_large"
+ style="@style/StatsModuleTitle"
+ android:text="@string/stats_months_and_years" />
+
+ <include
+ android:id="@+id/stats_months_years_empty_module_placeholder"
+ layout="@layout/stats_empty_module_placeholder"
+ android:layout_marginLeft="@dimen/margin_large"
+ android:layout_marginRight="@dimen/margin_large"
+ android:layout_marginTop="@dimen/margin_large"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+
+ <RelativeLayout
+ android:id="@+id/stats_months_years_header"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="@dimen/margin_large"
+ android:layout_marginRight="@dimen/margin_large"
+ android:paddingBottom="@dimen/margin_small"
+ android:paddingTop="@dimen/margin_small">
+
+ <org.wordpress.android.widgets.WPTextView
+ style="@style/StatsHeader"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:text="@string/stats_period" />
+
+ <org.wordpress.android.widgets.WPTextView
+ style="@style/StatsHeader"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:text="@string/stats_total" />
+ </RelativeLayout>
+
+ <LinearLayout
+ android:id="@+id/stats_months_years_list_linearlayout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:scrollbarStyle="outsideOverlay"
+ android:visibility="gone">
+ </LinearLayout>
+
+ </LinearLayout>
+
+ <!-- Average per Day -->
+ <LinearLayout
+ android:id="@+id/stats_averages_module"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@drawable/stats_white_background"
+ android:orientation="vertical"
+ android:paddingTop="@dimen/margin_small"
+ android:layout_marginBottom="@dimen/margin_medium"
+ android:layout_marginTop="@dimen/margin_medium"
+ android:layout_marginLeft="@dimen/content_margin"
+ android:layout_marginRight="@dimen/content_margin">
+
+ <org.wordpress.android.widgets.WPTextView
+ android:layout_marginLeft="@dimen/margin_large"
+ style="@style/StatsModuleTitle"
+ android:text="@string/stats_average_per_day" />
+
+ <include
+ android:id="@+id/stats_averages_empty_module_placeholder"
+ layout="@layout/stats_empty_module_placeholder"
+ android:layout_marginLeft="@dimen/margin_large"
+ android:layout_marginRight="@dimen/margin_large"
+ android:layout_marginTop="@dimen/margin_large"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+
+ <RelativeLayout
+ android:id="@+id/stats_averages_list_header"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="@dimen/margin_large"
+ android:layout_marginRight="@dimen/margin_large"
+ android:paddingBottom="@dimen/margin_small"
+ android:paddingTop="@dimen/margin_small">
+
+ <org.wordpress.android.widgets.WPTextView
+ style="@style/StatsHeader"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:text="@string/stats_period" />
+
+ <org.wordpress.android.widgets.WPTextView
+ style="@style/StatsHeader"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:text="@string/stats_overall" />
+ </RelativeLayout>
+
+ <LinearLayout
+ android:id="@+id/stats_averages_list_linearlayout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:scrollbarStyle="outsideOverlay"
+ android:visibility="gone"/>
+
+ </LinearLayout>
+
+
+ <!-- Recent Weeks -->
+ <LinearLayout
+ android:id="@+id/stats_recent_weeks_module"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@drawable/stats_white_background"
+ android:orientation="vertical"
+ android:paddingTop="@dimen/margin_small"
+ android:layout_marginBottom="@dimen/margin_medium"
+ android:layout_marginTop="@dimen/margin_medium"
+ android:layout_marginLeft="@dimen/content_margin"
+ android:layout_marginRight="@dimen/content_margin">
+
+ <org.wordpress.android.widgets.WPTextView
+ android:layout_marginLeft="@dimen/margin_large"
+ style="@style/StatsModuleTitle"
+ android:text="@string/stats_recent_weeks" />
+
+ <include
+ android:id="@+id/stats_recent_weeks_empty_module_placeholder"
+ layout="@layout/stats_empty_module_placeholder"
+ android:layout_marginLeft="@dimen/margin_large"
+ android:layout_marginRight="@dimen/margin_large"
+ android:layout_marginTop="@dimen/margin_large"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+
+ <RelativeLayout
+ android:id="@+id/stats_recent_weeks_list_header"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="@dimen/margin_large"
+ android:layout_marginRight="@dimen/margin_large"
+ android:paddingBottom="@dimen/margin_small"
+ android:paddingTop="@dimen/margin_small">
+
+ <org.wordpress.android.widgets.WPTextView
+ style="@style/StatsHeader"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:text="@string/stats_period" />
+
+ <org.wordpress.android.widgets.WPTextView
+ style="@style/StatsHeader"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:text="@string/stats_total" />
+ </RelativeLayout>
+
+ <LinearLayout
+ android:id="@+id/stats_recent_weeks_list_linearlayout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:scrollbarStyle="outsideOverlay"
+ android:visibility="gone"/>
+
+ </LinearLayout>
+
+
+ </LinearLayout>
+ </org.wordpress.android.ui.stats.ScrollViewExt>
+</org.wordpress.android.util.widgets.CustomSwipeRefreshLayout>