I hope you are doing well.
First of all, if this appears to be a stupid question, then apologies how does a person tell me how can I add an image to an empty activity in Android studios?
I am using API version 1 and have created an empty activity in a new project. I have an image that I would like to use in PNG format, it has a transparent background.
Thank you,
Paul
& lt; Relative layout xmlns: android = "http://schemas.android.com/apk/res/android" Android: Layout_height = "match_parent" Android: layout_width = "match_parent" & gt; & Lt; ImageView Android: layout_width = "match_parent" Android: layout_height = "wrap_content" Android: layout_centerInParent = "true" Android: src = "@drawable / img_soos_iation" /> & Lt; / RelativeLayout & gt;
Depending on what you want to show, you may want to use LinearLayout or FrameLayout.
Comments
Post a Comment