From ca9d631ffe95ab0467d71bbb49bb38a0e5887fd3 Mon Sep 17 00:00:00 2001 From: Philipp Schaefer Date: Wed, 4 Dec 2013 11:20:33 +0100 Subject: [PATCH] updated drawers notice to a how to use notice --- mobile/res/values/strings.xml | 8 +++++--- .../src/com/cradle/iitc_mobile/IITC_NavigationHelper.java | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/mobile/res/values/strings.xml b/mobile/res/values/strings.xml index 7fe993dd..5f62e775 100644 --- a/mobile/res/values/strings.xml +++ b/mobile/res/values/strings.xml @@ -56,12 +56,14 @@ PERFORMANCE OF THIS SOFTWARE. ]]> - -
+ + How to use IITCm:

• Navigation: swipe from the left edge of your screen (or click the app icon) to evoke the Navigation Drawer. Click the app icon again to return to the map.

• Layers/Highlights: swipe from the right edge of your screen (or click the layer-chooser icon in the ActionBar) - to evoke the Layer Drawer]]> + to evoke the Layer Drawer

+ • You can add official plugins in the settings

+ • For external plugins please have a look at the FAQ]]>

diff --git a/mobile/src/com/cradle/iitc_mobile/IITC_NavigationHelper.java b/mobile/src/com/cradle/iitc_mobile/IITC_NavigationHelper.java index 7f93e1ae..20612a05 100644 --- a/mobile/src/com/cradle/iitc_mobile/IITC_NavigationHelper.java +++ b/mobile/src/com/cradle/iitc_mobile/IITC_NavigationHelper.java @@ -12,6 +12,7 @@ import android.preference.PreferenceManager; import android.support.v4.app.ActionBarDrawerToggle; import android.support.v4.widget.DrawerLayout; import android.text.Html; +import android.text.method.LinkMovementMethod; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; @@ -83,7 +84,7 @@ public class IITC_NavigationHelper extends ActionBarDrawerToggle implements OnIt String text; switch (which) { case NOTICE_DRAWERS: - text = mIitc.getText(R.string.notice_drawers).toString(); + text = mIitc.getText(R.string.notice_how_to).toString(); break; case NOTICE_INFO: text = mIitc.getText(R.string.notice_info).toString(); @@ -98,6 +99,7 @@ public class IITC_NavigationHelper extends ActionBarDrawerToggle implements OnIt TextView message = new TextView(mIitc); message.setPadding(20, 20, 20, 20); message.setText(Html.fromHtml(text)); + message.setMovementMethod(LinkMovementMethod.getInstance()); AlertDialog dialog = new AlertDialog.Builder(mIitc) .setView(message)