Note that there are some explanatory texts on larger screens.

plurals
  1. POsony smart extension scrollable textview
    primarykey
    data
    text
    <p>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.</p> <p>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? </p> <p>Thanks for any suggestions</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;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" &gt; &lt;RelativeLayout android:id="@+id/header" android:layout_width="fill_parent" android:layout_height="28px" android:layout_alignParentTop="true" android:background="@android:color/black" &gt; &lt;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" /&gt; &lt;/RelativeLayout&gt; &lt;View android:id="@+id/divider" android:layout_width="fill_parent" android:layout_height="1dp" android:layout_below="@+id/header" android:background="@android:color/white" /&gt; &lt;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" &gt; &lt;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" /&gt; &lt;/RelativeLayout&gt; &lt;/RelativeLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload