开发者

Help with backgroud image and exit button

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜