Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid textView scroll
    primarykey
    data
    text
    <p>I have been trying to develop an android app that contain an activity which is scrollable and inside the activity, I have 2 textView which I want them to be scrollable as well.</p> <p>My problem is that whenever I touch inside the textView the scrolls show up but the main activity part which is the linearLayout directly steel the focus and no longer the textView scroll</p> <p>the way I have it now is setup for the textView to scroll in the xml file I have done that. and if I keep raising my finger and put it back on the screen trying to scroll the textView I can move a little bit but as I said, the layout that contains the textView capture the focus and leave me unable to scroll the textView.</p> <p>I hope I did explain my problem very well.</p> <p>Please any suggestion to help.</p> <hr> <p>let me explain how the app is built first first part is: the main(first) activity is a tabHost which I defined as scrollable</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;ScrollView android:id="@+id/scrollView1" android:layout_width="match_parent" android:layout_height="wrap_content" &gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" &gt; &lt;FrameLayout android:id="@android:id/tabcontent" android:layout_width="match_parent" android:layout_height="422dp" &gt; &lt;/FrameLayout&gt; &lt;TabWidget android:id="@android:id/tabs" android:layout_width="match_parent" android:layout_height="63dp" &gt; &lt;/TabWidget&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; &lt;/TabHost&gt; </code></pre> <p>where I am having problem with is this activity</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:background="@color/light_gray_color" android:layout_height="match_parent" android:layout_width="match_parent" android:weightSum="1" android:orientation="vertical" android:baselineAligned="false"&gt; &lt;LinearLayout android:id="@+id/linearLayout3" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="0.04"&gt; &lt;TextView android:textAppearance="?android:attr/textAppearanceLarge" android:layout_height="wrap_content" android:layout_width="wrap_content" android:textColor="@color/black_color" android:layout_gravity="center_horizontal" android:text="@string/display_label" android:id="@+id/display_label"&gt; &lt;/TextView&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/linearLayout2" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="0.83" android:baselineAligned="false" android:orientation="horizontal" &gt; &lt;ScrollView android:id="@+id/english_scrollView" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_weight="0.03" &gt; &lt;TextView android:id="@+id/display_english_textView" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="2px" android:layout_marginRight="2px" android:layout_weight="0.03" android:background="@drawable/black_rectangle" android:focusable="true" android:paddingLeft="2px" android:paddingRight="2px" android:scrollbars="vertical" android:textColor="@color/black_color" /&gt; &lt;/ScrollView&gt; &lt;ScrollView android:id="@+id/translation_scrollView" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_weight="0.03" &gt; &lt;TextView android:id="@+id/display_translation_textView" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="2px" android:layout_marginRight="2px" android:layout_weight="0.03" android:background="@drawable/black_rectangle" android:focusable="true" android:paddingLeft="2px" android:paddingRight="2px" android:scrollbars="vertical" android:textColor="@color/black_color" /&gt; &lt;/ScrollView&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&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