Add empty state layouts
This commit is contained in:
parent
5dfdadf62a
commit
8fe6486f62
3 changed files with 94 additions and 0 deletions
52
OsmAnd/res/layout-land/empty_state_av_notes.xml
Normal file
52
OsmAnd/res/layout-land/empty_state_av_notes.xml
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout
|
||||||
|
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="match_parent"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/empty_state_image_view"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_marginBottom="@dimen/empty_state_image_margin_bottom"
|
||||||
|
android:layout_marginLeft="@dimen/empty_state_image_margin_left"
|
||||||
|
android:layout_marginStart="@dimen/empty_state_image_margin_left"
|
||||||
|
android:layout_marginTop="@dimen/empty_state_image_margin_top"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
tools:src="@drawable/ic_empty_state_av_notes_night"/>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:clipToPadding="false"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:paddingEnd="@dimen/empty_state_text_button_padding_right"
|
||||||
|
android:paddingLeft="@dimen/empty_state_text_button_padding_left"
|
||||||
|
android:paddingRight="@dimen/empty_state_text_button_padding_right"
|
||||||
|
android:paddingStart="@dimen/empty_state_text_button_padding_left"
|
||||||
|
android:paddingTop="@dimen/empty_state_text_button_padding_top">
|
||||||
|
|
||||||
|
<net.osmand.plus.widgets.TextViewEx
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="@dimen/empty_state_text_interval"
|
||||||
|
android:background="@null"
|
||||||
|
android:text="@string/empty_state_av_notes"
|
||||||
|
android:textColor="?android:attr/textColorPrimary"
|
||||||
|
android:textSize="@dimen/empty_state_text_size"
|
||||||
|
osmand:typeface="@string/font_roboto_medium"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@null"
|
||||||
|
android:text="@string/empty_state_av_notes_desc"
|
||||||
|
android:textColor="?android:attr/textColorSecondary"
|
||||||
|
android:textSize="@dimen/empty_state_text_desc_size"/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
40
OsmAnd/res/layout/empty_state_av_notes.xml
Normal file
40
OsmAnd/res/layout/empty_state_av_notes.xml
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout
|
||||||
|
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="match_parent"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/empty_state_image_view"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="@dimen/empty_state_image_margin_bottom"
|
||||||
|
android:layout_marginTop="@dimen/empty_state_image_margin_top"
|
||||||
|
tools:src="@drawable/ic_empty_state_av_notes_night"/>
|
||||||
|
|
||||||
|
<net.osmand.plus.widgets.TextViewEx
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="@dimen/empty_state_text_interval"
|
||||||
|
android:background="@null"
|
||||||
|
android:text="@string/empty_state_av_notes"
|
||||||
|
android:textColor="?android:attr/textColorPrimary"
|
||||||
|
android:textSize="@dimen/empty_state_text_size"
|
||||||
|
osmand:typeface="@string/font_roboto_medium"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginLeft="@dimen/empty_state_text_desc_margin"
|
||||||
|
android:layout_marginRight="@dimen/empty_state_text_desc_margin"
|
||||||
|
android:background="@null"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/empty_state_av_notes_desc"
|
||||||
|
android:textColor="?android:attr/textColorSecondary"
|
||||||
|
android:textSize="@dimen/empty_state_text_desc_size"/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
|
@ -9,6 +9,8 @@
|
||||||
3. All your modified/created strings are in the top of the file (to make easier find what\'s translated).
|
3. All your modified/created strings are in the top of the file (to make easier find what\'s translated).
|
||||||
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
|
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
|
||||||
-->
|
-->
|
||||||
|
<string name="empty_state_av_notes">Take notes!</string>
|
||||||
|
<string name="empty_state_av_notes_desc">Add audio, video or photo note to every point on the map, using widget or context menu.</string>
|
||||||
<string name="notes_by_date">Notes by date</string>
|
<string name="notes_by_date">Notes by date</string>
|
||||||
<string name="by_date">By date</string>
|
<string name="by_date">By date</string>
|
||||||
<string name="by_type">By type</string>
|
<string name="by_type">By type</string>
|
||||||
|
|
Loading…
Reference in a new issue