How to make android app’s background image repeat.
来源:互联网 发布:nginx 用户名密码 编辑:程序博客网 时间:2024/06/05 10:02
here's what I've got in my app. Is includes a hack to prevent ListView
s from going black while scrolling.
drawable/app_background.xml:
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/actual_pattern_image"
android:tileMode="repeat" />
values/styles.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="app_theme" parent="android:Theme">
<item name="android:windowBackground">@drawable/app_background</item>
<item name="android:listViewStyle">@style/TransparentListView</item>
<item name="android:expandableListViewStyle">@style/TransparentExpandableListView</item>
</style>
<style name="TransparentListView" parent="@android:style/Widget.ListView">
<item name="android:cacheColorHint">@android:color/transparent</item>
</style>
<style name="TransparentExpandableListView" parent="@android:style/Widget.ExpandableListView">
<item name="android:cacheColorHint">@android:color/transparent</item>
</style>
</resources>
AndroidManifest.xml:
//
<application android:theme="@style/app_theme">
//
- How to make android app’s background image repeat.
- How to make android app's background image repeat
- How to tile a background image in Android
- how to make boot image
- how to make boot image
- Android How to Check if the App is in Background
- how to set UITableViewCell background image
- UILabel How to set background image
- background ,image and repeat [and button's background implement in xp]
- How to make telnetd service in Android's init.rc
- How to Make a Bochs Disk Image
- How to make the sprite image ?
- How to stretch a background image of a windows form
- How to set background image of a component in GWTEXT
- how to select a transparent background image in ms paint.
- How to Make an HTML5 iPhone App
- How to Make an HTML5 iPhone App
- How To Make Successful iPhone App
- 节约内存:清除任务栏“自定义通知”里的图标
- Qt 属性
- 信息化人员要摆正位置
- JAVA配置环境变量
- Oracle查找第n个最大值
- How to make android app’s background image repeat.
- asp.net4.0的新特性入门概述
- linux下挂载硬盘
- LINK2005"符号已定义"的链接错误
- ODBC API常用函数诠释
- vc模拟键盘输入的一些资料
- Test1pass CompTIA PD1-001 free braindumps
- 华为的研发给我们什么启示?
- zen cart中如何增加页面?