OK, I do not want to complicate anything.
I have a linear layout first, so I want to paint another one in the other layout at the top of the layout and I want to focus it. The reason is that I am doing this so that this icon can be parked without rotating in the scenario. Here's what I've done so far:
& lt; LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" Android: layout_width = "fill_parent" android: layout_height = "fill_parent" android: orientation = "vertical" android: background = "@ drawable / Default1 "& lt; LinearLayout Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: orientation = "vertical" android: background = "@drawable / icon1" Android: layout_gravity = "center" & lt; / LinearLayout & gt; & Lt; / LinearLayout & gt; The icon in the second layout sticks to the top of the screen and is not centered. Thanks!
No matter I got the answer, it is in this link.
Comments
Post a Comment