android - Trouble aligning TextView and Checkbox in a layout -
I have a linear layout that includes text view and checkbox
& Lt; Checkbox Android: id = "@ + id / checkFollowDate" style = "@ style / checkbox style type 1" /> & Lt; / LinearLayout & gt; More styles are:
& lt; Style name = "linearLayoutStyleNoBgColor" & gt; & Lt; Item name = "Android: layout_width" & gt; Fill_print & lt; / Item & gt; & Lt; Item name = "Android: Layout_hete" & gt; Fill_print & lt; / Item & gt; & Lt; Item name = "android: layout_margin" & gt; 5dp & lt; / Item & gt; & Lt; Item name = "android: weightSum" & gt; 1.0 & lt; / Item & gt; & Lt; / Style & gt; & Lt; Style name = "textFieldStyleType1WithCheckbox" Parent = "@ style / text filetype type 1" & gt; & Lt; Item name = "Android: Layout_hete" & gt; Mail_parents & lt; / Item & gt; & Lt; Item name = "android: layout_weight" & gt; 0.30 & lt; / Item & gt; & Lt; Item name = "Android: Gravity" & gt; Centrally & lt; / Item & gt; & Lt; / Style & gt; & Lt; Style name = "checkbox style1 type" & gt; & Lt; Item name = "android: layout_width" & gt; 0dp & lt; / Item & gt; & Lt; Item name = "Android: Layout_hete" & gt; Rap_news & lt; / Item & gt; & Lt; Item name = "android: layout_weight" & gt; 0.70 & lt; / Item & gt; & Lt; Item name = "Android: Gravity" & gt; Right | Termination & lt; / Item & gt; & Lt; / Style & gt; What I'm trying to achieve
TextView | Checkbox (30% percent screen) | (Right) but I'm getting now
TextView | Checkbox (30% percent screen) | and layout_gravity in the appropriate places; This can be useful:
Comments
Post a Comment