Placing buttons where i want them in Android XML?
I am now having some problems when I want to create开发者_如何学Go my application for android that when I am making my layout in XML i am having trouble that in Eclipse its not latting me place the buttons next to each other side to side it only let me place them under each other. And I did chech that fill parrent was not checked I used only wrap content, ut still it's not letting me place them side to side.
And I didn't find how i would fix this when i search on the web. But maybe here someone can explain what im doing wrong?
You probably have an outer LinearLayout
with a vertical orientation (android:orientation="vertical"
in the XML source). That puts each child of it below the last one. Change this to horizontal
to align the buttons next to each other
or use a different parent layout.
精彩评论