1
0
forked from GitHub/gf-core

now this is a working version of the app with topic disambiguation but it is still not optimal

This commit is contained in:
krasimir
2015-12-02 20:47:54 +00:00
parent f2b057c078
commit 967b87d9d3
11 changed files with 535 additions and 75 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 B

View File

@@ -4,49 +4,66 @@
android:layout_height="match_parent"
android:layout_width="match_parent">
<RelativeLayout
android:layout_height="match_parent"
android:layout_width="match_parent">
<android.support.v4.widget.DrawerLayout
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- The main content view -->
<RelativeLayout
android:id="@+id/lexical_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">
android:layout_height="match_parent"
android:layout_width="match_parent">
<org.grammaticalframework.ui.android.LanguageSelector
android:id="@+id/show_language"
<RelativeLayout
android:id="@+id/lexical_header"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:padding="0dp"/>
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:padding="8dp"
android:background="#C0C0C0">
<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:padding="0dp"/>
</RelativeLayout>
<TextView
android:id="@+id/lexical_desc"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/lexical_header"
android:paddingLeft="1dp"
android:paddingTop="4dp"
android:paddingBottom="2dp"
android:textSize="25sp"/>
<ListView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/lexical_desc"
android:orientation="vertical"
android:paddingLeft="1dp"
android:id="@android:id/list" >
</ListView>
</RelativeLayout>
<TextView
android:id="@+id/lexical_desc"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/lexical_header"
android:paddingLeft="1dp"
android:paddingTop="4dp"
android:paddingBottom="2dp"
android:textSize="25sp"/>
<ListView
android:layout_width="match_parent"
<!-- The navigation drawer -->
<ListView android:id="@+id/topics_list"
android:layout_width="250dp"
android:layout_height="match_parent"
android:layout_below="@id/lexical_desc"
android:orientation="vertical"
android:paddingLeft="1dp"
android:id="@android:id/list" >
</ListView>
</RelativeLayout>
android:layout_gravity="start"
android:choiceMode="singleChoice"
android:divider="@android:color/transparent"
android:dividerHeight="0dp"
android:background="#FFFFE0"/>
</android.support.v4.widget.DrawerLayout>
<LinearLayout
android:id="@+id/progressBarView"
@@ -60,4 +77,4 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
</FrameLayout>
</FrameLayout>

View File

@@ -18,10 +18,10 @@
android:layout_toRightOf="@id/arrow"
android:paddingLeft="10dp"
android:textSize="25sp"/>
<WebView
android:id="@+id/desc_details"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/lexical_desc"/>
</RelativeLayout>
</RelativeLayout>

View File

@@ -1,6 +1,8 @@
<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/topics"
android:title="@string/topics"/>
<item android:id="@+id/help"
android:title="@string/help"/>
</menu>

View File

@@ -29,4 +29,8 @@
<string name="search_hint">Search word:</string>
<string name="search_description">Search for words in the lexicon</string>
<string name="topics">Topics</string>
<string name="topics_open">Open topics</string>
<string name="topics_close">Close topics</string>
</resources>