Android: Cannot set gravity of TableLayout to Right -


I know there are so many questions about this that already float temporarily, but I'm one of them The bunch has read and still can not get aligned to correct my third column.

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; TableLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: layout_width = "fill_parent" Android: layout_height = "wrap_content" Android: Orientation = "Horizontal" Android: Background = "#FFFFFF "Android: Stretch column =" 2 "& gt; & Lt; TableRow & gt; & Lt; ImageView Android: src = "@drawable / bluelight" Android: layout_hett = "48px" Android: layout_width = "48px" Android: padding = "3pp" Android: layout_margin = "3pp" Android: layout_column = "1" / & Gt; & Lt; TableLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" android: layout_marginLeft = "10px" android: layout_gravity = "center_vertical" Android: layout_column = "2" & gt; & Lt; TableRow & gt; & Lt; TextView Android: Android: Android: Android: Android: Layout_Wind = "wrap_ content" Android: layout_height = "wrap_content" Android: text style = "bold" /> & Lt; / TableRow & gt; & Lt; TableRow & gt; Android: Android: textColor = "# 9E9E9E" Android: textStyle = "Italic | Bold" /> & Lt; TextView android: id = "@ + id / row_author" android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: & lt; / TableRow & gt; & Lt; / TableLayout & gt; & Lt; TableLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: layout_column = "3" android: layout_gravity = "center_vertical | Right "android: gravity =" center_vertical | right "& gt; & Lt; TableRow & gt; Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" android: textStyle = "bold" Android: Android: Android: Android: Android: textSyll = "15dp" Android: Android: /> & Lt; / TableRow & gt; & Lt; See Android: layout_height = "1dp" Android: background = "# 000000" Android: layout_margin right = "3dp" /> & Lt; TableRow & gt; & Lt; TextView android: textColor = "# 1B27D1" Android: Android: Android: Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: text style = "bold" /> & Lt; / TableRow & gt; & Lt; / TableLayout & gt; & Lt; / TableRow & gt; & Lt; / TableLayout & gt;  

What am I doing?

Can not align my 3 columns to the right.

Close the cuff, I suspect that the nested table layout widgets will not work very well while table layout If the table was designed to mimic the "API", there are limitations for the analogy.

If you want to "right align"

>


Comments