I am trying to insert a textView and a toggle button in a table row, however, they do not align (top After clicking on the button above 10 pixels, the text below is above the top of the view, although the height is equal to each element. Can anyone tell me?
Android: layout_width = "fill_parents "Android: layout_height =" wrap_content "gt; & gt; TableRow & gt; Android: AutoCompleteTextView Android: layout_width =" wrap_content "Andr Id: layout_height = "wrap_content" android: oneLine = "true" android: layout_weight = "1" /> gt; togglebutton Android: layout_width = "wrap_content" android: layout_height = "wrap_content" /> gt; & lt; / TableRow & gt; & lt; / table layout & gt;
Tableauer Linear Layout And tries to align the widgets with the text together by default. Baseline by default if you want to align it differently then on your ToggleButton, android: layout_gravity = "center_vertical"
(or another guru) Setting Settings).
Comments
Post a Comment