OsmAnd/OsmAnd/res/layout/fragment_reports.xml

364 lines
15 KiB
XML
Raw Normal View History

<ScrollView
2016-01-06 16:37:35 +01:00
xmlns:android="http://schemas.android.com/apk/res/android"
2016-03-10 10:10:12 +01:00
xmlns:osmand="http://schemas.android.com/apk/res-auto"
2016-02-26 11:18:05 +01:00
xmlns:tools="http://schemas.android.com/tools"
2016-01-06 16:37:35 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-02-26 11:18:05 +01:00
tools:context="net.osmand.plus.liveupdates.ReportsFragment">
2016-01-06 16:37:35 +01:00
<LinearLayout
android:layout_width="match_parent"
2016-02-24 01:41:34 +01:00
android:layout_height="wrap_content"
android:orientation="vertical">
2016-02-24 01:41:34 +01:00
2016-03-10 10:10:12 +01:00
<LinearLayout
2016-02-24 01:41:34 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/bg_color"
2016-03-10 10:10:12 +01:00
android:orientation="vertical">
2016-03-10 10:10:12 +01:00
<LinearLayout
android:id="@+id/monthButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:gravity="center_vertical"
android:minHeight="60dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/calendarImageView"
android:layout_width="56dp"
android:layout_height="56dp"
android:scaleType="center"
android:src="@drawable/ic_action_data"/>
<Spinner
android:id="@+id/monthReportsSpinner"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="-8dp"
android:layout_marginRight="16dp"
android:layout_weight="1"
android:background="@null"
android:clickable="false"/>
<ImageView
android:id="@+id/monthDropDownIcon"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginRight="16dp"
android:src="@drawable/ic_action_arrow_drop_down"/>
2016-03-05 19:34:15 +01:00
2016-03-10 10:10:12 +01:00
</LinearLayout>
<View
2016-03-10 10:10:12 +01:00
android:layout_width="match_parent"
android:layout_height="1dp"
2016-03-10 10:10:12 +01:00
android:layout_marginLeft="56dp"
android:background="?attr/dashboard_divider"/>
<LinearLayout
android:id="@+id/reportsButton"
2016-02-24 01:41:34 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-03-10 10:10:12 +01:00
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:gravity="center_vertical"
android:minHeight="60dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/regionIconImageView"
android:layout_width="56dp"
android:layout_height="56dp"
android:scaleType="center"
android:src="@drawable/ic_world_globe_dark"/>
<LinearLayout
android:layout_width="0dp"
2016-02-27 14:56:22 +01:00
android:layout_height="wrap_content"
2016-03-10 10:10:12 +01:00
android:layout_marginRight="16dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/reports_for"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_sub_text_size"/>
<TextView
android:id="@android:id/text1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="fill_horizontal"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"
tools:text="Worldwide"/>
</LinearLayout>
<ImageView
android:id="@+id/countryDropDownIcon"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginRight="16dp"
android:src="@drawable/ic_action_arrow_drop_down"/>
2016-03-05 19:34:15 +01:00
</LinearLayout>
2016-03-10 10:10:12 +01:00
</LinearLayout>
2016-02-27 14:56:22 +01:00
<include layout="@layout/card_bottom_divider"/>
<include layout="@layout/card_top_divider"/>
2016-03-10 10:10:12 +01:00
<LinearLayout
2016-02-27 14:56:22 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/bg_color"
2016-03-10 10:10:12 +01:00
android:orientation="vertical">
2016-03-10 10:10:12 +01:00
<FrameLayout
2016-02-24 01:41:34 +01:00
android:layout_width="match_parent"
2016-03-10 10:10:12 +01:00
android:layout_height="wrap_content">
2016-02-27 14:56:22 +01:00
2016-03-10 10:10:12 +01:00
<ProgressBar
android:id="@+id/progress"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
2016-03-10 10:10:12 +01:00
android:layout_height="8dp"
android:indeterminate="true"/>
2016-03-05 19:34:15 +01:00
2016-03-10 10:10:12 +01:00
<LinearLayout
android:id="@+id/numberOfContributorsLayout"
2016-02-27 14:56:22 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-03-10 10:10:12 +01:00
android:background="?attr/selectableItemBackground"
2016-03-10 11:02:37 +01:00
android:clickable="true"
2016-03-10 10:10:12 +01:00
android:gravity="center_vertical"
android:minHeight="60dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/numberOfContributorsIcon"
android:layout_width="56dp"
android:layout_height="56dp"
android:scaleType="center"
android:src="@drawable/ic_group"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="16dp"
android:orientation="vertical">
<TextView
android:id="@+id/numberOfContributorsTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/number_of_contributors"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_sub_text_size"/>
<TextView
android:id="@+id/contributorsTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="0"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"/>
</LinearLayout>
</LinearLayout>
</FrameLayout>
<View
2016-03-10 10:10:12 +01:00
android:layout_width="match_parent"
android:layout_height="1dp"
2016-03-10 10:10:12 +01:00
android:layout_marginLeft="56dp"
android:background="?attr/dashboard_divider"/>
<LinearLayout
android:id="@+id/numberOfEditsLayout"
2016-02-24 01:41:34 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-03-10 10:10:12 +01:00
android:background="?attr/selectableItemBackground"
2016-03-10 11:02:37 +01:00
android:clickable="true"
2016-03-10 10:10:12 +01:00
android:gravity="center_vertical"
android:minHeight="60dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/numberOfEditsIcon"
android:layout_width="56dp"
android:layout_height="56dp"
android:scaleType="center"
android:src="@drawable/ic_map"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-03-10 10:10:12 +01:00
android:layout_marginRight="16dp"
android:orientation="vertical">
<TextView
android:id="@+id/numberOfEditsTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/number_of_edits"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_sub_text_size"/>
<TextView
android:id="@+id/editsTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="0"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"/>
</LinearLayout>
2016-03-05 19:34:15 +01:00
</LinearLayout>
2016-03-05 19:34:15 +01:00
<View
2016-03-10 10:10:12 +01:00
android:layout_width="match_parent"
2016-03-05 19:34:15 +01:00
android:layout_height="1dp"
2016-03-10 10:10:12 +01:00
android:layout_marginLeft="56dp"
2016-03-05 19:34:15 +01:00
android:background="?attr/dashboard_divider"/>
<LinearLayout
2016-02-24 01:41:34 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-03-10 10:10:12 +01:00
android:gravity="center_vertical"
android:minHeight="60dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/donationsIcon"
android:layout_width="56dp"
android:layout_height="56dp"
android:scaleType="center"
android:src="@drawable/ic_action_bitcoin"/>
<LinearLayout
android:id="@+id/donationsLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-03-10 10:10:12 +01:00
android:layout_marginRight="16dp"
android:orientation="vertical">
<TextView
android:id="@+id/donationsTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/donations"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_sub_text_size"/>
<TextView
android:id="@+id/donationsTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="-"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"/>
</LinearLayout>
2016-03-05 19:34:15 +01:00
</LinearLayout>
<View
2016-03-10 10:10:12 +01:00
android:layout_width="match_parent"
android:layout_height="1dp"
2016-03-10 10:10:12 +01:00
android:layout_marginLeft="56dp"
android:background="?attr/dashboard_divider"/>
<LinearLayout
2016-02-24 01:41:34 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-03-10 10:10:12 +01:00
android:gravity="center_vertical"
android:minHeight="60dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/numberOfRecipientsIcon"
android:layout_width="56dp"
android:layout_height="60dp"
android:scaleType="center"
android:src="@drawable/ic_group"/>
<LinearLayout
android:id="@+id/numberOfRecipientsLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-03-10 10:10:12 +01:00
android:layout_marginRight="16dp"
android:orientation="vertical">
<TextView
android:id="@+id/numberOfRecipientsTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/number_of_recipients"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_sub_text_size"/>
<TextView
android:id="@+id/recipientsTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="-"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"/>
</LinearLayout>
2016-03-05 19:34:15 +01:00
</LinearLayout>
2016-02-24 01:41:34 +01:00
2016-03-10 10:10:12 +01:00
</LinearLayout>
2016-01-06 16:37:35 +01:00
<include layout="@layout/card_bottom_divider"/>
2016-03-10 10:10:12 +01:00
<android.support.v7.widget.CardView
android:id="@+id/card_view"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
2016-02-27 14:56:22 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-03-10 10:10:12 +01:00
android:layout_gravity="center"
2016-02-27 14:56:22 +01:00
android:layout_margin="8dp"
2016-03-10 10:10:12 +01:00
card_view:cardBackgroundColor="?attr/bg_color"
card_view:cardCornerRadius="4dp">
2016-02-27 14:56:22 +01:00
2016-03-10 10:10:12 +01:00
<LinearLayout
android:id="@+id/show_all"
android:layout_width="match_parent"
2016-02-27 14:56:22 +01:00
android:layout_height="wrap_content"
2016-03-10 10:10:12 +01:00
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:gravity="center_vertical"
android:minHeight="48dp"
android:orientation="vertical"
android:padding="16dp">
2016-02-27 14:56:22 +01:00
2016-03-10 10:10:12 +01:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/full_report"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_sub_text_size"/>
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/osm_live_url_label"
style="@style/DashboardGeneralButton"
android:layout_height="wrap_content"
android:background="@null"
android:clickable="false"
android:gravity="left|center_vertical"
android:textSize="@dimen/default_desc_text_size"
osmand:textAllCapsCompat="false"
osmand:typeface="@string/font_roboto_medium"
tools:text="http://osmand.net/osm_live"/>
</LinearLayout>
</android.support.v7.widget.CardView>
2016-02-26 11:18:05 +01:00
</LinearLayout>
</ScrollView>