如何把了滚动的修复图像背景? [英] How to put an fix image background for ScrollView?
本文介绍了如何把了滚动的修复图像背景?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想滚动视图滚动,而不是在图像中背景
I should want the scrollview scroll, but not the image in its background.
推荐答案
一个例子是:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background_image"
android:orientation="vertical">
<ListView
android:id="@+id/category_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:cacheColorHint="@android:color/transparent"/>
<TextView
android:id="@android:id/empty"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
在这里的LinearLayout保持底色的图像。这份名单将高于此与透明背景显示。有关此主题的更多信息看看的ListView背景
这篇关于如何把了滚动的修复图像背景?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文