How to make android app's background image repeat
来源:互联网 发布:vscode在插件 编辑:程序博客网 时间:2024/06/05 18:09
Here is a pure-java implementation of background image repeating:
@Overridepublic void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.bg_image); BitmapDrawable bitmapDrawable = new BitmapDrawable(bmp); bitmapDrawable.setTileModeXY(Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); LinearLayout layout = new LinearLayout(this); layout.setBackgroundDrawable(bitmapDrawable);}
In this case, our background image would have to be stored in res/drawable/bg_image.png.
- 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
- Permission Denial: starting Intent 解决办法 .
- 算法导论——第六章——中位数和顺序统计学
- 数据的绑定
- 深入理解按位异或运算符
- SQL Server数据类型的介绍
- How to make android app's background image repeat
- ubuntu安装使用tftp
- 排错:libstdc++.a: No such file: Permission denied
- asp.net数据绑定
- poj1028
- java abstract
- Page_load事件
- 遇到Word2007 只能打开一个文档,切换窗口再回去鼠标也不能用。解决问题
- eclipse编译调试java与ndk c++的混合代码