171 lines
6.5 KiB
XML
171 lines
6.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
~ Twidere - Twitter client for Android
|
|
~
|
|
~ Copyright (C) 2012-2015 Mariotaku Lee <mariotaku.lee@gmail.com>
|
|
~
|
|
~ This program is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU General Public License as published by
|
|
~ the Free Software Foundation, either version 3 of the License, or
|
|
~ (at your option) any later version.
|
|
~
|
|
~ This program is distributed in the hope that it will be useful,
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
~ GNU General Public License for more details.
|
|
~
|
|
~ You should have received a copy of the GNU General Public License
|
|
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
-->
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/element_spacing_normal">
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/mobile_network_label"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/on_mobile_network" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/total_usage_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/mobile_network_label"
|
|
android:layout_margin="@dimen/element_spacing_large"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/total_usage"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?android:textAppearanceLarge"
|
|
android:textColor="?android:textColorPrimary"
|
|
tools:text="124.50mb" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/this_month" />
|
|
</LinearLayout>
|
|
|
|
|
|
<GridLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/total_usage_sent"
|
|
android:layout_column="0"
|
|
android:layout_row="0"
|
|
android:textAppearance="?android:textAppearanceMedium"
|
|
android:textColor="?android:textColorPrimary"
|
|
tools:text="24.50mb" />
|
|
|
|
<TextView
|
|
android:layout_column="1"
|
|
android:layout_marginLeft="@dimen/element_spacing_normal"
|
|
android:layout_marginStart="@dimen/element_spacing_normal"
|
|
android:layout_row="0"
|
|
android:text="@string/usage_label_sent" />
|
|
|
|
<TextView
|
|
android:id="@+id/total_usage_received"
|
|
android:layout_column="0"
|
|
android:layout_row="1"
|
|
android:textAppearance="?android:textAppearanceMedium"
|
|
android:textColor="?android:textColorPrimary"
|
|
tools:text="100mb" />
|
|
|
|
<TextView
|
|
android:layout_column="1"
|
|
android:layout_marginLeft="@dimen/element_spacing_normal"
|
|
android:layout_marginStart="@dimen/element_spacing_normal"
|
|
android:layout_row="1"
|
|
android:text="@string/usage_label_received" />
|
|
</GridLayout>
|
|
</LinearLayout>
|
|
|
|
<GridLayout
|
|
android:id="@+id/usage_chart"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/total_usage_container"
|
|
android:visibility="gone">
|
|
|
|
<TextView
|
|
android:id="@+id/day_usage_max"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_column="0"
|
|
android:layout_row="0"
|
|
android:textAppearance="?android:textAppearanceSmall"
|
|
android:textColor="?android:textColorSecondary"
|
|
tools:text="10mb" />
|
|
|
|
<com.db.chart.view.StackBarChartView
|
|
android:id="@+id/chart"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="100dp"
|
|
android:layout_column="1"
|
|
android:layout_gravity="fill"
|
|
android:layout_row="0"
|
|
app:chart_barSpacing="2dp" />
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_column="1"
|
|
android:layout_gravity="fill"
|
|
android:layout_row="1"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/day_min"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="left"
|
|
android:textAppearance="?android:textAppearanceSmall"
|
|
android:textColor="?android:textColorSecondary"
|
|
tools:ignore="RtlHardcoded"
|
|
tools:text="1" />
|
|
|
|
<TextView
|
|
android:id="@+id/day_mid"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center_horizontal"
|
|
android:textAppearance="?android:textAppearanceSmall"
|
|
android:textColor="?android:textColorSecondary"
|
|
tools:text="15" />
|
|
|
|
<TextView
|
|
android:id="@+id/day_max"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="right"
|
|
android:textAppearance="?android:textAppearanceSmall"
|
|
android:textColor="?android:textColorSecondary"
|
|
tools:ignore="RtlHardcoded"
|
|
tools:text="30" />
|
|
</LinearLayout>
|
|
</GridLayout>
|
|
</RelativeLayout> |