How to make android app’s background image repeat.
2010-05-13 09:15
591 查看
here's what I've got in my app. Is includes a hack to prevent
drawable/app_background.xml:
values/styles.xml:
AndroidManifest.xml:
ListViews 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 tile a background image in Android
- How to set background image to a LinearLayout using Android-Universal-Image-Loader ? #594
- Android How to Check if the App is in Background
- How to set background image of a component in GWTEXT
- How to Get an Android Device Image?
- Android:How to upload .mp3 file and image to http server?
- How to Make an iOS VoIP App With Pjsip: Part 2
- Android make: How to control which module is built
- How to Make a Gesture-Driven To-Do List App Like Clear: Part 1/3
- Android tutorial: How to make a basic splash screen
- How to develop and package Android Wear App using Eclips
- How to Make a Bochs Disk Image
- How to sign app by android studio
- how to invoke activity when app in background
- For image 20130513, how to backup NAND to SD, and make SD bootable?
- How to Make Great App Store Screenshots
- How can I set the background of UITableView (the tableview style is "Grouped") to use an image?
- How To Make Successful iPhone App
- How To Use Proguard in Android APP
- How to make Windows Form app truly Full Screen (and to hide Taskbar) in C#? 转