updated drawers notice to a how to use notice

This commit is contained in:
Philipp Schaefer 2013-12-04 11:20:33 +01:00
parent 67f273fd6d
commit ca9d631ffe
2 changed files with 8 additions and 4 deletions

View File

@ -56,12 +56,14 @@
PERFORMANCE OF THIS SOFTWARE. PERFORMANCE OF THIS SOFTWARE.
]]> ]]>
</string> </string>
<string name="notice_drawers"> <string name="notice_how_to">
<![CDATA[IITCm recently changed its navigation structure. How to use it:<br><br> <![CDATA[<b>How to use IITCm:</b><br><br>
• Navigation: swipe from the left edge of your screen (or click the app icon) to evoke the Navigation Drawer. • 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.<br><br> Click the app icon again to return to the map.<br><br>
• Layers/Highlights: swipe from the right edge of your screen (or click the layer-chooser icon in the ActionBar) • 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<br><br>
• You can add official plugins in the settings<br><br>
• For external plugins please have a look at the <a href="http://iitc.jonatkins.com/?page=faq#mobile-plugins">FAQ]]>
</string> </string>
<string name="notice_info"> <string name="notice_info">
<![CDATA[Hint: Alternative ways to open the info screen:<br><br> <![CDATA[Hint: Alternative ways to open the info screen:<br><br>

View File

@ -12,6 +12,7 @@ import android.preference.PreferenceManager;
import android.support.v4.app.ActionBarDrawerToggle; import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.widget.DrawerLayout; import android.support.v4.widget.DrawerLayout;
import android.text.Html; import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.view.MenuItem; import android.view.MenuItem;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
@ -83,7 +84,7 @@ public class IITC_NavigationHelper extends ActionBarDrawerToggle implements OnIt
String text; String text;
switch (which) { switch (which) {
case NOTICE_DRAWERS: case NOTICE_DRAWERS:
text = mIitc.getText(R.string.notice_drawers).toString(); text = mIitc.getText(R.string.notice_how_to).toString();
break; break;
case NOTICE_INFO: case NOTICE_INFO:
text = mIitc.getText(R.string.notice_info).toString(); 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); TextView message = new TextView(mIitc);
message.setPadding(20, 20, 20, 20); message.setPadding(20, 20, 20, 20);
message.setText(Html.fromHtml(text)); message.setText(Html.fromHtml(text));
message.setMovementMethod(LinkMovementMethod.getInstance());
AlertDialog dialog = new AlertDialog.Builder(mIitc) AlertDialog dialog = new AlertDialog.Builder(mIitc)
.setView(message) .setView(message)