- Where Developers Learn, Share, & Build Careers


I have 2 radio buttons inside a radio group right now they are standing vertical I tried to put them in a horizontal container , But it did not mess up.

Can there be a radio group button for the line horizontally?

<> pre & lt; LinearLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: layout_width = "fill_parent" Android: layout_height = "wrap_content" Android: orientation = "horizontal" & gt; & Lt; RadioGroup Android: id = "@ + id / radioSex" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" & gt; & Lt; Android: layout = "wrap_content" android: text = "chat_content" android: text = "chat" & Lt; Android: layout_height = "wrap_content" android: text = "players" Android: check = "true" /> & Lt; / RadioGroup & gt; & Lt; Android: text = "home" Android: id = "@ + id / buthome" Android: paddingTop = "- 15dip" Android: layout_width = "wrap_content" android: layout_height = "wrap_content" /> & Lt; Button Android: Text = "Players" Android: id = "@ + id / butplayers" Android: layout_width = "wrap_content" android: layout_height = "wrap_content" /> & Lt; Android: layout_height = "wrap_content" Android: text = "TedP" Android: layout_gravity = "right" Android: textcolor = "# fffff109" Android: TextView Android: id = "@ + id / viewActivePlayer" android: TextSize = "26dip" />

Add Android: Orientation = 'Horizontal' radio group Tags:

  & amp ;;; Radio Group Android: id = "@ + id / radioSex" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: orientation = 'horizontal' & gt;    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -