364 lines
No EOL
15 KiB
XML
364 lines
No EOL
15 KiB
XML
<ScrollView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:osmand="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
tools:context="net.osmand.plus.liveupdates.ReportsFragment">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/bg_color"
|
|
android:orientation="vertical">
|
|
|
|
<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"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginLeft="56dp"
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/reportsButton"
|
|
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/regionIconImageView"
|
|
android:layout_width="56dp"
|
|
android:layout_height="56dp"
|
|
android:scaleType="center"
|
|
android:src="@drawable/ic_world_globe_dark"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
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"/>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<include layout="@layout/card_bottom_divider"/>
|
|
|
|
<include layout="@layout/card_top_divider"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/bg_color"
|
|
android:orientation="vertical">
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progress"
|
|
style="?android:attr/progressBarStyleHorizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="8dp"
|
|
android:indeterminate="true"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/numberOfContributorsLayout"
|
|
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/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
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginLeft="56dp"
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/numberOfEditsLayout"
|
|
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/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"
|
|
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>
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginLeft="56dp"
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
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"
|
|
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>
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginLeft="56dp"
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
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"
|
|
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>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<include layout="@layout/card_bottom_divider"/>
|
|
|
|
<android.support.v7.widget.CardView
|
|
android:id="@+id/card_view"
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_margin="8dp"
|
|
card_view:cardBackgroundColor="?attr/bg_color"
|
|
card_view:cardCornerRadius="4dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/show_all"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:gravity="center_vertical"
|
|
android:minHeight="48dp"
|
|
android:orientation="vertical"
|
|
android:padding="16dp">
|
|
|
|
<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>
|
|
|
|
</LinearLayout>
|
|
</ScrollView> |