android - Is there a way to have a radio group be laid out horizontally? -


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

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -