Do not show a dialog more than once.
Implement "Do not show again"
This commit is contained in:
28
mobile/res/layout/dialog_notice.xml
Normal file
28
mobile/res/layout/dialog_notice.xml
Normal file
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_notice"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/cb_do_not_show_again"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/notice_do_not_show_again"/>
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
@ -148,6 +148,7 @@
|
||||
<string name="search_hint">Search Locations</string>
|
||||
<string name="intent_error">Address could not be opened</string>
|
||||
<string name="msg_copied">Copied to clipboard…</string>
|
||||
<string name="notice_do_not_show_again">Do not show again</string>
|
||||
|
||||
<string name="tab_map">Map</string>
|
||||
<string name="tab_share">Share</string>
|
||||
|
Reference in New Issue
Block a user