I’m new to Android programming. I have a UI with some TextView and Button controls. How do I set a background behind those components? Lets call it background.png.
I’m new to Android programming. I have a UI with some TextView and Button
Share
in your parent layout element, e.g. linearlayout or whatever, simply add
android:background="@drawable/background"This will set the background of your layout, assuming you have the image in a /drawable folder.