forked from GitHub/gf-core
added help view in the android app. The help itself is not very useful right now
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity android:name="LexicalEntryActivity"></activity>
|
||||
<activity android:name="HelpActivity"></activity>
|
||||
<service android:name="TranslatorInputMethodService"
|
||||
android:permission="android.permission.BIND_INPUT_METHOD">
|
||||
<intent-filter>
|
||||
|
||||
5
src/ui/android/assets/help_content.html
Normal file
5
src/ui/android/assets/help_content.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
<p>Sorry, we can't help you</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,4 +1,6 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:id="@+id/input_mode"
|
||||
android:title="@string/keyboard_input"/>
|
||||
<item android:id="@+id/help"
|
||||
android:title="@string/help"/>
|
||||
</menu>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<string name="open_image">Opening</string>
|
||||
<string name="mic_input">Speech Input</string>
|
||||
<string name="keyboard_input">Keyboard Input</string>
|
||||
<string name="help">Help</string>
|
||||
<string name="global_preferences_key">org.grammaticalframework.ui.android.GLOBAL_PREFERENCES</string>
|
||||
|
||||
<!-- Labels on soft keys -->
|
||||
|
||||
@@ -185,6 +185,10 @@ public class MainActivity extends Activity {
|
||||
editor.commit();
|
||||
|
||||
return true;
|
||||
case R.id.help:
|
||||
Intent myIntent = new Intent(MainActivity.this, HelpActivity.class);
|
||||
MainActivity.this.startActivity(myIntent);
|
||||
return true;
|
||||
default:
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@ package org.grammaticalframework.ui.android;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.res.XmlResourceParser;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import android.view.inputmethod.CompletionInfo;
|
||||
|
||||
@@ -13,18 +11,13 @@ import org.grammaticalframework.pgf.FullFormEntry;
|
||||
import org.grammaticalframework.pgf.MorphoAnalysis;
|
||||
import org.grammaticalframework.pgf.PGF;
|
||||
import org.grammaticalframework.pgf.ParseError;
|
||||
import org.xmlpull.v1.XmlPullParserException;
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.PriorityQueue;
|
||||
|
||||
public class Translator {
|
||||
|
||||
Reference in New Issue
Block a user