开发者

Help with backgroud image and exit button

开发者 https://www.devze.com 2023-02-09 20:17 出处:网络
How do I add a background image and icon to my app in eclipse? And an exi开发者_JAVA百科t button that closes app?For adding a background on your view simply add in the layout xml file

How do I add a background image and icon to my app in eclipse? And an exi开发者_JAVA百科t button that closes app?


For adding a background on your view simply add in the layout xml file

android:background="#000000" or android:background="@drawable/yourdrawable"

where yourdrawable is your image in the drawable folder in your project.

The icon of your app can be changed by replacing the icon.png in the drawable folder or by changing the android:icon="@drawable/yourdrawable in the AndroidManifest.xml

For more about icons in Android check this site.

About adding an exit button in you app you should definitely read this first then think about it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号