android - How to arrange buttons with different text-sizes in a TableView so they are not displaced? -
I will just write an RPN calculator app for learning. Buttons are arranged in a table layout. Arithmetic buttons use a larger font size because the symbols are otherwise very small. It produced a little displaced button, but these are all of the same size. It works if all buttons use the same font size.
Look here for an image:
How can I stop it?
Thank you!
Update: I also tried: Android: Layout_central but no effect
Latest results:
used style:
Android: Table: Table: Android: id = "@ + id / TableLayout01" Android: layout_width = "fill_parent" Android: layout_height = "wrap_content" android: layout_marginTop = "10px" Android: Baseline Alliance = "False" & gt; & Lt; TableRow & gt; & Lt; Button Android: id = "@ + id / BtEnter" style = "@ style / enterbutton" Android: text = "Enter" & gt; & Lt; / Button & gt; & Lt; Button Android: ID = "@ + ID / BTB" style = "@ style / calculator" Android: text = "←" & gt; & Lt; / Button & gt; & Lt; Button Android: id = "@ + id / BtSwap" style = "@ style / calcbutton" Android: text = "y↔x" & gt; & Lt; / Button & gt; & Lt; Button Android: id = "@ + id / BtRoll" style = "@ style / CalcButton" Android: text = "R ↓" & gt; & Lt; / Button & gt; & Lt; Button Android: ID = "@ + ID / BTC" style = "@ style / calculator" Android: text = "CLR"> & Lt; / Button & gt; & Lt; / TableRow & gt; & Lt; / TableLayout & gt;
Comments
Post a Comment