186 lines
No EOL
7.3 KiB
XML
186 lines
No EOL
7.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="6dp"
|
|
android:paddingRight="6dp"
|
|
android:paddingTop="16dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/subscription_banner"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/bg_card_orange"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="12dp"
|
|
android:paddingLeft="24dp"
|
|
android:paddingRight="12dp"
|
|
android:paddingTop="16dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_action_osm_live"/>
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginLeft="10dp"
|
|
android:text="@string/osm_live_subscription"
|
|
android:textColor="@color/color_white"
|
|
android:textSize="@dimen/default_list_text_size"
|
|
android:textStyle="bold"
|
|
app:typeface="@string/font_roboto_regular"/>
|
|
</LinearLayout>
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/osm_live_header"
|
|
android:textColor="@color/color_white"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
app:typeface="@string/font_roboto_regular"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|right"
|
|
android:layout_marginTop="16dp"
|
|
android:gravity="right">
|
|
|
|
<Button
|
|
android:id="@+id/read_more_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/btn_round_shade"
|
|
android:paddingLeft="12dp"
|
|
android:paddingRight="12dp"
|
|
android:text="@string/shared_string_read_more"
|
|
android:textColor="@color/color_white"/>
|
|
|
|
<Button
|
|
android:id="@+id/subscription_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="12dp"
|
|
android:paddingRight="12dp"
|
|
android:layout_marginLeft="12dp"
|
|
android:background="@drawable/btn_round_shade"
|
|
android:text="@string/osm_live_subscribe_btn"
|
|
android:textColor="@color/color_white"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/subscription_info"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/bg_card"
|
|
android:orientation="vertical"
|
|
android:visibility="visible">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:minHeight="64dp"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:text="@string/shared_string_status"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
app:typeface="@string/font_roboto_regular"/>
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@+id/statusTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="4dp"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginTop="4dp"
|
|
android:text="@string/osm_live_active"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="@dimen/default_list_text_size_large"
|
|
app:typeface="@string/font_roboto_medium"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="right|center_vertical"
|
|
android:layout_marginRight="16dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/statusIcon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_action_done"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:minHeight="48dp">
|
|
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:text="@string/osm_live_support_region"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="@dimen/default_list_text_size"
|
|
app:typeface="@string/font_roboto_regular"/>
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@+id/regionTextView"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
android:layout_marginBottom="4dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginTop="4dp"
|
|
android:gravity="right"
|
|
android:text="World"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="@dimen/default_list_text_size"
|
|
app:typeface="@string/font_roboto_medium"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |