i'm trying the sonys add-on SDK 2.0 for sony smartwatch 2. I will develop some kinde of Messageviewer. Like the existing gmail App. It should show a list with messages (simple text, subject) and by selecting any item should be shown content viewer with header and text.
I created Sample project "SampleAdvancedControlExtension" which is almost that, what i want. I tried to create a new "ContentView" Control with following layout. The problem is, the Text is not scrollable, and i don't see any possibility to make the text scrollable. If i correctly do understand EXTRA_DATA_XML_LAYOUT, the ScrollView is not supported. But somehow the GMail app can scroll the content of eMail. How can they do that?
Thanks for any suggestions
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="@dimen/smart_watch_2_control_width"
android:layout_height="@dimen/smart_watch_2_control_height"
tools:ignore="PxUsage,UselessParent,HardcodedText" >
<RelativeLayout
android:id="@+id/header"
android:layout_width="fill_parent"
android:layout_height="28px"
android:layout_alignParentTop="true"
android:background="@android:color/black" >
<TextView
android:id="@+id/header_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:paddingLeft="6px"
android:text="Это заголовок"
android:textColor="@android:color/white"
android:textSize="@dimen/smart_watch_2_text_size_medium"
android:textStyle="bold" />
</RelativeLayout>
<View
android:id="@+id/divider"
android:layout_width="fill_parent"
android:layout_height="1dp"
android:layout_below="@+id/header"
android:background="@android:color/white" />
<RelativeLayout
android:id="@+id/content"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_below="@+id/divider"
android:background="@android:color/black" >
<TextView
android:id="@+id/content_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:maxLines="5"
android:paddingLeft="6px"
android:text="Тут будет текст"
android:textColor="@android:color/white"
android:textSize="@dimen/smart_watch_2_text_size_medium"
android:textStyle="bold" />
</RelativeLayout>
</RelativeLayout>