1
0
forked from GitHub/gf-core

added code for visualization of the sematic graph in the app. The code is there but the menu item for activating it is not there yet since the functionality is not complete

This commit is contained in:
krasimir
2015-09-01 08:00:56 +00:00
parent 1c86783e17
commit 66454d844a
15 changed files with 731 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 868 B

View File

@@ -8,4 +8,4 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</RelativeLayout>
</RelativeLayout>

View File

@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="match_parent">
<RelativeLayout
android:layout_height="match_parent"
android:layout_width="match_parent">
<RelativeLayout
android:id="@+id/graph_header"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:padding="8dp"
android:background="#C0C0C0">
<ImageView
android:id="@+id/add_word"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignParentRight="true"
android:padding="8dp"
android:src="@drawable/ic_search_black_24dp"/>
<org.grammaticalframework.ui.android.LanguageSelector
android:id="@+id/show_language"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_toLeftOf="@id/add_word"
android:padding="0dp"/>
</RelativeLayout>
<org.grammaticalframework.ui.android.SemanticGraphView
android:id="@+id/semantic_graph"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_below="@id/graph_header"/>
</RelativeLayout>
<LinearLayout
android:id="@+id/progressBarView"
android:gravity="center"
android:visibility="gone"
android:background="#00000000"
android:layout_height="match_parent"
android:layout_width="match_parent">
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
</FrameLayout>

View File

@@ -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="semantic_graph">Semantic Graph</string>
<string name="help">Help</string>
<string name="global_preferences_key">org.grammaticalframework.ui.android.GLOBAL_PREFERENCES</string>
@@ -24,4 +25,7 @@
<!-- Labels for subtype -->
<string name="normalKeyboardMode">normalKeyboardMode</string>
<string name="internalKeyboardMode">internalKeyboardMode</string>
<string name="search_hint">Search word:</string>
<string name="search_description">Search for words in the lexicon</string>
</resources>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<searchable xmlns:android="http://schemas.android.com/apk/res/android"
android:label="@string/app_name"
android:hint="@string/search_hint"
android:searchSuggestAuthority="org.grammaticalframework.ui.android.LexiconSuggestionProvider"
android:includeInGlobalSearch="true"
android:searchSettingsDescription="@string/search_description">
</searchable>