Проблема с ScrollView

Интерфейс, диалоги, темы, стили, меню
Ответить
rjlexx
Сообщения: 7
Зарегистрирован: 20 мар 2013, 22:30

Проблема с ScrollView

Сообщение rjlexx » 03 ноя 2014, 15:11

Помогите плиз решить странную проблему с ScrollView. Есть вот такая разметка:

Код: Выделить всё

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical"
    android:paddingTop="50dp"
    android:id="@+id/fighterLayout"
    tools:context=".FighterActivity" >
	<ScrollView
	    android:id="@+id/scroll"
	    android:layout_width="fill_parent"
	    android:layout_height="0dp"
		android:scrollbars="vertical"
		android:fillViewport="true"
	    android:layout_weight="1" >
		<LinearLayout
		    android:layout_width="match_parent"
		    android:layout_height="wrap_content"
		    android:orientation="vertical">
		
			<LinearLayout
			    android:layout_width="match_parent"
			    android:layout_height="wrap_content"
			    android:orientation="horizontal" >
		
			    <ImageView
			        android:id="@+id/imgIcon"
			        android:layout_width="100dp"
			        android:layout_height="100dp"
			        android:layout_gravity="left|center_vertical"
			        android:layout_marginBottom="3dp"
			        android:layout_marginLeft="2dp"
			        android:layout_marginRight="2dp"
			        android:layout_marginTop="3dp"
			        android:scaleType="fitCenter"
			        android:contentDescription="@+id/icn_fighter" />
		
			    <TextView
			        android:id="@+id/tvName"
			        android:layout_width="wrap_content"
			        android:layout_height="wrap_content"
			        android:paddingLeft="8dp"
			        android:paddingRight="8dp"
			        android:textColor="@android:color/holo_blue_light"
			        android:textSize="24sp"
			        android:textStyle="bold"
			        android:typeface="monospace" />
			</LinearLayout>
		
		    <TextView
		        android:id="@+id/tvCombos"
		        android:layout_width="wrap_content"
		        android:layout_height="wrap_content"
		        android:layout_gravity="left"
		        android:layout_marginLeft="8dp"
		        android:textColor="@android:color/white"
		        android:textSize="18sp"
		        android:textStyle="bold"
		        android:typeface="monospace" />
		
		</LinearLayout>
	</ScrollView>
</LinearLayout>
При открытии этой страницы все отображается нормально. Но при скроллинге все начинает накладываться на старое отрендеренное изображение. Причем такая проблема воспроизводится на очень малом кол-ве телефонов. Я вообще смог воспроизвести ее только на эмуляторе с галкой Use GPU Host. С чем это может быть связано и как это исправить?
Нормальное отображение
Нормальное отображение
device-2014-11-03-160237.png (176 КБ) 2058 просмотров
Наложение при скроллинге
Наложение при скроллинге
device-2014-11-03-160458.png (311.81 КБ) 2058 просмотров

rjlexx
Сообщения: 7
Зарегистрирован: 20 мар 2013, 22:30

Re: Проблема с ScrollView

Сообщение rjlexx » 13 ноя 2014, 15:51

Неужели никто не сталкивался?

Ответить