android - Radio button disappeared after placing inside radio group in linear layout -
I have to take two radio buttons that are horizontally used, but I have a problem which is both radio buttons Getting is chosen instead of normal behavior, where any radio button should be selected ... so I used the me This requires to get a radio button below the experts, please help me with this. Thank you for your time Full XML Finally I found the answer because I remember this parameter was added now Android: Android: layout_width = "150dip" Android: layout_height = "22dip" Android: Orientation = "Horizontal" Android: Android: Background = There is no need for radio group inside a
linear layout horizontal But surprisingly all the radio buttons disappeared. No clue ..
Android: Leaut_vind = "L50dip" Android: layout_height = "22dip" android: background = "@ color / silver" android: orientation = "horizontal" & gt; Android; Radio Group Android: ID = "@ + ID / Radiography" Android: Layout_Wind = "150 DP" Android: Layout_Hypt = "22 DP" Android: Background = "@color / Silver" & gt; Android: layout_weight = "1" Android: text = "/ share" Android: textAppearance = "Android: Android: Android: Android: layout_width =" 0dp "Android: layout_hett =" match_parent ": attr / textAppearanceSmall" /> ; Android: Layout_weight = "1" Android: text = "/ value" android: textAppearance = "? Android: Android: Android: Android: Layout_Wind =" 0 DP ": Attr / textAppearanceSmall" /> & Lt; / RadioGroup & gt; & Lt; / LinearLayout & gt;
abc
& lt; linearLayout Android: layout_width = "match_parent" Android: layout_height = "45dp" Android: background = "@color / dark_snf" Android: orientation = "horizontal" & gt; & Lt; LinearLayout Android: layout_width = "150dip" Android: layout_height = "45dp" Android: background = "@color / silver" Android: orientation = "vertical" & gt; Android: layout_heid = "23dip" Android: Android: background = "@color / silver" Android: text = "brokerage" Android: typeface = "Android: serif" Android: text apparatus = "? Android: ATR / Text Appearance Small" /> & Lt; LinearLayout android: layout_width = "150dip" Android: layout_height = "22dip" Android: background = "@color / silver" Android: orientation = "horizontal" & gt; Android; Radio Group Android: ID = "@ + ID / Radiography" Android: Layout_Wind = "150 DP" Android: Layout_Hypt = "22 DP" Android: Background = "@color / Silver" & gt; Android: layout_weight = "1" Android: text = "/ share" Android: textAppearance = "Android: Android: Android: Android: layout_wind =" 0 dip ": Attr / textAppearanceSmall" /> Android: Layout_weight = "1" Android: text = "/ value" android: textAppearance = "? Android: Android: Android: Android: Layout_Wind =" 0 DP ": Attr / textAppearanceSmall" /> & Lt; / RadioGroup & gt; & Lt; / LinearLayout & gt; & Lt; / LinearLayout & gt; Android: Android: Android: layout_heck = "match_perrent" Android: layout_weight = "1" Android: text collar = "@color / white" Android: Android: background = "@draubable / backdrop" Android: Gravity = "center" Android: Typefaces = "Serif" Android: Ams = "10" Android: InputType = "Number Decimal" Android: Text = "0.0" & gt; & Lt; Requestfocus / & gt; & Lt; / EditText> Android: Android: "Gravity =" Center "Android: Text Collar =" @color / Android: Android: Android: Android: Layout_With = "0 DP" Android: Layout_Height = "Match_Part" Android: Layout_Vet = "1.00" Android : Android: Android: Android: @Drawable / Background Android: Typefaces = "Serif" Android: Ams = "10" Android: InfantType = "Number Decimal" Android: Text = "0.0" /> & Lt; / LinearLayout & gt;
orientation parameter
radio group ....
android: orientation = "horizontal"
Android: Android: "@color / silver" & gt;
linear layout horizontal
Comments
Post a Comment