Note that there are some explanatory texts on larger screens.

plurals
  1. POscrollview is extremly slow on ics (android 4.0) when containing a long textview
    primarykey
    data
    text
    <p>Here's my problem, i'm developing a news applicaiton and i used scrollview wrapping a textview to show the content of the news. But i found that scrolling is extremly slow on android 4.0 ics when the textview is quite long, and the longer the text, the slower the scrolling is. While on android 2.3 devices things just go as fast as expected. </p> <p>I don't know whether this is really a system bug cause i found this <a href="http://code.google.com/p/android/issues/detail?id=22514" rel="nofollow">similar problems reported on the android project</a></p> <p>Here's my layout: </p> <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"&gt; &lt;ScrollView android:id="@id/lst_news_details" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/list_background" android:fadingEdge="none" android:gravity="center" &gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" &gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="10dp" android:layout_marginLeft="15dp" android:layout_marginRight="15dp" android:layout_marginTop="10dp" android:orientation="vertical" &gt; &lt;TextView android:id="@id/tv_news_details_title" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/Detail_Title"/&gt; &lt;TextView android:id="@id/tv_news_details_category" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/Detail_Category"/&gt; &lt;TextView android:id="@id/tv_news_details_created_at" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="10dp" style="@style/Detail_Time"/&gt; &lt;include layout="@layout/detail_horizontal_divideline" /&gt; &lt;ImageView android:id="@id/img_news_details_image" style="@style/Detail_Picture" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="6dp" android:layout_gravity="center_horizontal" android:contentDescription="@string/image_contentDescription"/&gt; &lt;TextView android:id="@id/tv_news_details_context" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:layout_gravity="center_horizontal" style="@style/Detail_Content"/&gt; &lt;/LinearLayout&gt; &lt;View android:layout_width="match_parent" android:layout_height="10dip" /&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; &lt;!-- actionbar shadow --&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/action_bar_shadow" &gt; &lt;/LinearLayout&gt; &lt;/FrameLayout&gt; </code></pre> <p>And my style.xml</p> <pre><code>&lt;style name="Detail_Title"&gt; &lt;item name="android:textColor"&gt;@color/list_item_title&lt;/item&gt; &lt;item name="android:textSize"&gt;18sp&lt;/item&gt; &lt;item name="android:shadowColor"&gt;@color/list_item_text_shadow&lt;/item&gt; &lt;item name="android:shadowDx"&gt;0&lt;/item&gt; &lt;item name="android:shadowDy"&gt;2&lt;/item&gt; &lt;item name="android:shadowRadius"&gt;2&lt;/item&gt; &lt;/style&gt; &lt;style name="Detail_Category"&gt; &lt;item name="android:textColor"&gt;@color/list_item_category&lt;/item&gt; &lt;item name="android:textSize"&gt;14sp&lt;/item&gt; &lt;item name="android:shadowColor"&gt;@color/list_item_text_shadow&lt;/item&gt; &lt;item name="android:shadowDx"&gt;0&lt;/item&gt; &lt;item name="android:shadowDy"&gt;2&lt;/item&gt; &lt;item name="android:shadowRadius"&gt;2&lt;/item&gt; &lt;/style&gt; &lt;style name="Detail_Time"&gt; &lt;item name="android:textColor"&gt;@color/list_item_time&lt;/item&gt; &lt;item name="android:textSize"&gt;14sp&lt;/item&gt; &lt;item name="android:shadowColor"&gt;@color/list_item_text_shadow&lt;/item&gt; &lt;item name="android:shadowDx"&gt;0&lt;/item&gt; &lt;item name="android:shadowDy"&gt;2&lt;/item&gt; &lt;item name="android:shadowRadius"&gt;2&lt;/item&gt; &lt;/style&gt; &lt;style name="Detail_Content"&gt; &lt;item name="android:textColor"&gt;@color/detail_content_text&lt;/item&gt; &lt;item name="android:textSize"&gt;16sp&lt;/item&gt; &lt;item name="android:autoLink"&gt;all&lt;/item&gt; &lt;item name="android:shadowColor"&gt;@color/list_item_text_shadow&lt;/item&gt; &lt;item name="android:shadowDx"&gt;0&lt;/item&gt; &lt;item name="android:shadowDy"&gt;2&lt;/item&gt; &lt;item name="android:shadowRadius"&gt;2&lt;/item&gt; &lt;/style&gt; &lt;style name="Detail_Picture"&gt; &lt;item name="android:layout_gravity"&gt;center&lt;/item&gt; &lt;item name="android:gravity"&gt;center&lt;/item&gt; &lt;item name="android:background"&gt;@drawable/image_frame&lt;/item&gt; &lt;/style&gt; </code></pre> <p>By the way, i've already set </p> <p><code>android:minSdkVersion="7"</code> <code>android:targetSdkVersion="14"</code></p> <p>But haven't set the hardware accelerated flag yet.</p> <p>Is there any solution? Please help me, thanks!</p>
    singulars
    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.
 

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