スクロールビュー内の大きな背景画像は明らかに非常に遅いですが、画像を圧縮しようとしましたが、何も変わらないようです。スクロール・ラグを減らす方法はありますか?すべての答えは感謝しています、ありがとう!大きな背景画像をスクロールするときのラグの減少
そして、ここでは
<HorizontalScrollView
android:overScrollMode="never"
android:id="@+id/day_switcher"
android:scrollbars="none"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:overScrollMode="never"
android:scrollbars="none"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/day_holder"
android:layout_width="8000dp"
android:layout_height="wrap_content">
<RelativeLayout // Has Large Background Image
android:id="@+id/day_left"
android:background="some_background"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<include
layout="@layout/day_view_1" />
</RelativeLayout>
<RelativeLayout // Has Large Background Image
android:layout_toRightOf="@id/day_left"
android:background="some_background"
android:id="@+id/day_mid"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<include
layout="@layout/day_view_2" />
</RelativeLayout>
<RelativeLayout // Has Large Background Image
android:id="@+id/day_right"
android:background="some_background"
android:layout_toRightOf="@id/day_mid"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<include
layout="@layout/day_view_3" />
</RelativeLayout>
</RelativeLayout>
</ScrollView>
</HorizontalScrollView>
まずは、あなたの画像の解像度は? –
ビューの階層構造を縮小してみてください。あまりにも乱雑です – MRX
@BartekLipinski私は1080で3000を推測しています –