1
0
forked from GitHub/gf-core

Visualization for parse trees on Android

This commit is contained in:
kr.angelov
2014-07-02 11:30:06 +00:00
parent 42dea944d9
commit ba1e95dacb
5 changed files with 331 additions and 69 deletions

View File

@@ -12,16 +12,18 @@
android:paddingRight="5dp" />
<TextView
android:id="@+id/lexical_desc"
android:id="@+id/alternative_desc"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/arrow"
android:paddingLeft="10dp"
android:textSize="25sp"/>
<WebView
android:id="@+id/lexical_inflection"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/lexical_desc"/>
<org.grammaticalframework.ui.android.ParseTreeView
android:id="@+id/desc_details"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/alternative_desc"
android:textSize="25sp"
/>
</RelativeLayout>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ImageView
android:id="@+id/arrow"
android:layout_width="30dp"
android:layout_height="30dp"
android:contentDescription="@string/open_image"
android:src="@drawable/open_arrow"
android:paddingLeft="10dp"
android:paddingRight="5dp" />
<TextView
android:id="@+id/lexical_desc"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
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>