forked from organicmaps/organicmaps
[android] Set correct help text for timetable editor.
This commit is contained in:
parent
0d994ee07a
commit
0931066a50
5 changed files with 12 additions and 11 deletions
1
android/assets/opening_hours_how_to_edit.html
Symbolic link
1
android/assets/opening_hours_how_to_edit.html
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../data/opening_hours_how_to_edit.html
|
|
@ -46,7 +46,7 @@
|
|||
<RelativeLayout
|
||||
android:id="@+id/examples"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:animateLayoutChanges="true">
|
||||
|
||||
<TextView
|
||||
|
@ -67,16 +67,12 @@
|
|||
android:layout_below="@id/tv__examples_title"
|
||||
android:background="?dividerHorizontal"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv__examples"
|
||||
<WebView
|
||||
android:id="@+id/wv__examples"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/tv__examples_title"
|
||||
android:fontFamily="@string/robotoMedium"
|
||||
android:padding="@dimen/margin_base"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3"
|
||||
tools:ignore="UnusedAttribute"
|
||||
tools:text="24/7 any non-stop facilities, 24 hours a day, 7 days a week;
\n\nSa-Su 00:00-24:00 opens only the weekend but non-stop, 24 hours;
\n\nsunrise-sunset.
"/>
|
||||
android:padding="@dimen/margin_base"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ cp ../data/packed_polygons_obsolete.bin assets/
|
|||
cp ../data/patterns.txt assets/
|
||||
cp ../data/types.txt assets/
|
||||
cp ../data/unicode_blocks.txt assets/
|
||||
cp ../data/opening_hours_how_to_edit.html assets/
|
||||
|
||||
cp -r ../data/resources-hdpi_legacy/ assets/
|
||||
cp -r ../data/resources-hdpi_dark/ assets/
|
||||
|
|
|
@ -6,12 +6,14 @@ import android.support.annotation.Nullable;
|
|||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.webkit.WebView;
|
||||
import android.widget.EditText;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.mapswithme.maps.R;
|
||||
import com.mapswithme.maps.base.BaseMwmFragment;
|
||||
import com.mapswithme.maps.editor.data.Timetable;
|
||||
import com.mapswithme.util.Constants;
|
||||
import com.mapswithme.util.Graphics;
|
||||
import com.mapswithme.util.UiUtils;
|
||||
|
||||
|
@ -21,7 +23,7 @@ public class AdvancedTimetableFragment extends BaseMwmFragment
|
|||
{
|
||||
private boolean mIsExampleShown;
|
||||
private EditText mInput;
|
||||
private TextView mExample;
|
||||
private WebView mExample;
|
||||
private Timetable[] mInitTimetables;
|
||||
private TextView mExamplesTitle;
|
||||
|
||||
|
@ -52,8 +54,8 @@ public class AdvancedTimetableFragment extends BaseMwmFragment
|
|||
{
|
||||
view.findViewById(R.id.examples).setOnClickListener(this);
|
||||
mInput = (EditText) view.findViewById(R.id.et__timetable);
|
||||
mExample = (TextView) view.findViewById(R.id.tv__examples);
|
||||
// TODO set text of example from html stored in data/
|
||||
mExample = (WebView) view.findViewById(R.id.wv__examples);
|
||||
mExample.loadUrl(Constants.Url.OPENING_HOURS_MANUAL);
|
||||
mExamplesTitle = (TextView) view.findViewById(R.id.tv__examples_title);
|
||||
setExampleDrawables(R.drawable.ic_type_text, R.drawable.ic_expand_more);
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@ public final class Constants
|
|||
|
||||
public static final String COPYRIGHT = "file:///android_asset/copyright.html";
|
||||
public static final String FAQ = "file:///android_asset/faq.html";
|
||||
public static final String OPENING_HOURS_MANUAL = "file:///android_asset/opening_hours_how_to_edit.html";
|
||||
|
||||
public static final String OSM_REGISTER = "https://www.openstreetmap.org/user/new";
|
||||
public static final String OSM_RECOVER_PASSWORD = "https://www.openstreetmap.org/user/forgot-password";
|
||||
|
|
Loading…
Add table
Reference in a new issue