OsmAnd/OsmAnd/res/layout/subscription_fragment.xml

281 lines
12 KiB
XML
Raw Normal View History

2016-01-24 16:14:33 +01:00
<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="match_parent"
2016-01-24 19:52:55 +01:00
android:background="?attr/spinnerListBackground"
2016-01-24 16:14:33 +01:00
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="56dp"
android:background="@color/osmand_orange"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageButton
android:id="@+id/closeButton"
style="@style/Widget.AppCompat.Button.Borderless"
2016-01-27 19:49:30 +01:00
android:layout_width="52dp"
android:layout_height="52dp"
2016-01-24 16:14:33 +01:00
android:src="@drawable/ic_action_remove_dark"/>
<net.osmand.plus.widgets.TextViewEx
2016-01-27 19:49:30 +01:00
android:id="@+id/titleTextView"
2016-01-24 16:14:33 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
2016-01-26 22:11:13 +01:00
android:text="@string/osm_live_subscription"
2016-01-24 16:14:33 +01:00
android:textColor="@color/color_white"
android:textSize="@dimen/default_list_text_size_large"
android:textStyle="bold"
app:typeface="@string/font_roboto_regular"/>
</LinearLayout>
<include layout="@layout/shadow_bottom"/>
2016-01-24 19:52:55 +01:00
2016-01-24 22:09:54 +01:00
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
2016-01-24 21:18:07 +01:00
2016-01-24 22:09:54 +01:00
<LinearLayout
2016-01-24 21:16:17 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-01-24 22:09:54 +01:00
android:orientation="vertical">
2016-01-24 21:18:07 +01:00
2016-01-24 22:09:54 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="56dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/emailIcon"
android:layout_width="56dp"
android:layout_height="48dp"
android:scaleType="center"
android:src="@drawable/ic_action_message"/>
<EditText
android:id="@+id/emailEdit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
2016-01-27 08:56:39 +01:00
android:paddingLeft="2dp"
2016-01-26 22:11:13 +01:00
android:hint="@string/shared_string_email_address"
2016-01-24 22:09:54 +01:00
android:inputType="textEmailAddress"/>
2016-01-24 21:18:07 +01:00
2016-01-24 22:09:54 +01:00
</LinearLayout>
2016-01-24 21:18:07 +01:00
2016-01-24 22:09:54 +01:00
<TextView
2016-01-24 19:52:55 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2016-01-27 08:56:39 +01:00
android:paddingLeft="2dp"
2016-01-24 22:09:54 +01:00
android:layout_marginLeft="72dp"
2016-01-24 19:52:55 +01:00
android:layout_marginRight="16dp"
2016-01-26 22:11:13 +01:00
android:text="@string/osm_live_email_desc"
2016-01-24 22:09:54 +01:00
android:textColor="?android:attr/textColorSecondary"/>
2016-01-24 19:52:55 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2016-01-24 22:09:54 +01:00
<LinearLayout
android:layout_width="match_parent"
2016-01-24 19:52:55 +01:00
android:layout_height="wrap_content"
2016-01-24 22:09:54 +01:00
android:minHeight="56dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/userNameIcon"
android:layout_width="56dp"
android:layout_height="48dp"
android:scaleType="center"
android:src="@drawable/ic_person"/>
<EditText
android:id="@+id/userNameEdit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
2016-01-27 08:56:39 +01:00
android:paddingLeft="2dp"
2016-01-26 22:11:13 +01:00
android:hint="@string/osm_live_user_public_name"
2016-01-24 22:09:54 +01:00
android:inputType="text"/>
</LinearLayout>
<CheckBox
2016-01-26 22:11:13 +01:00
android:id="@+id/hideUserNameCheckbox"
2016-01-24 22:09:54 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="12dp"
android:layout_marginLeft="72dp"
2016-01-24 19:52:55 +01:00
android:layout_marginRight="16dp"
2016-01-24 22:09:54 +01:00
android:layout_marginTop="8dp"
2016-01-27 08:56:39 +01:00
android:paddingLeft="2dp"
2016-01-26 22:11:13 +01:00
android:text="@string/osm_live_hide_user_name"
2016-01-24 22:09:54 +01:00
android:textColor="?android:attr/textColorPrimary"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
2016-01-24 19:52:55 +01:00
android:layout_marginTop="4dp"
2016-01-24 22:09:54 +01:00
android:minHeight="56dp"
android:orientation="horizontal">
2016-01-24 19:52:55 +01:00
2016-01-24 22:09:54 +01:00
<ImageView
android:id="@+id/countryIcon"
android:layout_width="56dp"
android:layout_height="48dp"
android:scaleType="center"
android:src="@drawable/ic_world_globe_dark"/>
2016-01-24 19:52:55 +01:00
2016-01-24 22:09:54 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-01-27 19:49:30 +01:00
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="8dp"
2016-01-24 22:09:54 +01:00
android:orientation="vertical">
2016-01-24 19:52:55 +01:00
2016-01-27 19:49:30 +01:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="2dp"
android:textColor="?android:attr/textColorSecondary"
android:text="@string/osm_live_support_region"/>
2016-01-24 19:52:55 +01:00
2016-01-24 22:09:54 +01:00
<net.osmand.plus.widgets.AutoCompleteTextViewEx
android:id="@+id/selectCountryEdit"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
2016-01-27 08:56:39 +01:00
android:paddingLeft="2dp"
android:paddingRight="0dp"
2016-01-24 22:09:54 +01:00
android:drawableRight="@drawable/ic_action_arrow_drop_down"
android:editable="false"
2016-01-27 19:49:30 +01:00
android:text="Ukraine"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="2dp"
android:layout_marginTop="8dp"
android:textColor="?android:attr/textColorSecondary"
android:text="@string/osm_live_region_desc"/>
2016-01-24 16:14:33 +01:00
2016-01-24 22:09:54 +01:00
</LinearLayout>
2016-01-24 16:14:33 +01:00
2016-01-24 22:09:54 +01:00
</LinearLayout>
2016-01-24 16:14:33 +01:00
2016-01-24 22:09:54 +01:00
</LinearLayout>
2016-01-24 16:14:33 +01:00
2016-01-24 22:09:54 +01:00
<LinearLayout
2016-01-27 19:49:30 +01:00
android:id="@+id/editModeBottomView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:visibility="gone">
<Button
android:id="@+id/saveChangesButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="72dp"
android:layout_marginRight="16dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:textColor="@color/color_white"
android:background="@drawable/btn_round_blue"
android:text="@string/shared_string_save_changes"/>
</LinearLayout>
<LinearLayout
android:id="@+id/purchaseCard"
2016-01-24 22:09:54 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:background="?attr/bg_card"
2016-01-27 19:49:30 +01:00
android:orientation="vertical"
android:visibility="visible">
2016-01-24 16:14:33 +01:00
2016-01-24 22:09:54 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:orientation="horizontal">
<net.osmand.plus.widgets.TextViewEx
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
2016-01-26 22:11:13 +01:00
android:text="@string/osm_live_month_cost"
2016-01-24 22:09:54 +01:00
android:textColor="?android:attr/textColorPrimary"
android:textSize="@dimen/default_list_text_size_large"
2016-01-26 22:11:13 +01:00
android:textStyle="bold"/>
2016-01-24 22:09:54 +01:00
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/priceTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2016-01-26 22:11:13 +01:00
android:layout_marginLeft="16dp"
2016-01-24 22:09:54 +01:00
android:gravity="right"
android:text="@string/osm_live_default_price"
android:textColor="?attr/color_dialog_buttons"
android:textSize="@dimen/default_list_text_size_large"
2016-01-26 22:11:13 +01:00
android:textStyle="bold"/>
2016-01-24 22:09:54 +01:00
</LinearLayout>
<net.osmand.plus.widgets.TextViewEx
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
2016-01-26 22:11:13 +01:00
android:text="@string/osm_live_month_cost_desc"
2016-01-24 22:09:54 +01:00
android:textColor="?android:attr/textColorSecondary"
2016-01-26 22:11:13 +01:00
android:textSize="@dimen/default_desc_text_size"/>
2016-01-24 22:09:54 +01:00
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginBottom="10dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="10dp"
android:background="?attr/divider_color"/>
2016-01-24 16:14:33 +01:00
2016-01-24 22:09:54 +01:00
<Button
android:id="@+id/subscribeButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginBottom="10dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="6dp"
android:background="?attr/selectableItemBackground"
android:paddingLeft="10dp"
android:paddingRight="10dp"
2016-01-26 22:11:13 +01:00
android:text="@string/osm_live_subscribe_btn"
2016-01-24 22:09:54 +01:00
android:textColor="?attr/color_dialog_buttons"/>
2016-01-24 16:14:33 +01:00
2016-01-24 22:09:54 +01:00
</LinearLayout>
</LinearLayout>
2016-01-24 16:14:33 +01:00
2016-01-24 22:09:54 +01:00
</ScrollView>
2016-01-24 16:14:33 +01:00
</LinearLayout>