android - ratebar star in tablerow -
I have a Also, with 4 stars instead of 4 stars, Here you are using the rating bar in the table row, according to the reference docs, children of Tablovor take the width of their parents. You can nest a horizontal linear layout inside this table row, which in turn will embed the rating bar: RatingBar with 5 stars in the
TableRow but It always comes out of 8 stars. But I've already used it to notify
android: numStars = "5" .
android: rating = "4"
utf-8" & gt; & Lt; TableLayout xmlns: android = "Http://schemaskandroidkcom/apk/res/android" Android: Layout_width = "Match_parent" Android: Layout_height = "Match_parent" android: background = "@ drawable / Drop_shaid" android: orientation = "Vertical" & gt; & Lt; TableRow android: id = "@ + id / image_row" Android: layout_width = "match_parent" Android: layout_height = "match_parent" android: gravity = "center" android: padding = "5dp" & gt; & Lt; ImageView Android: id = "@ + id / grid_image" Android: layout_width = "130dp" Android: layout_height = "130dp" /> & Lt; / TableRow & gt; & Lt; TableRow Android: id = "@ + id / text_row" Android: layout_width = "wrap_content" Android: layout_height = "70dp" & gt; & Lt; TextView android: id = "@ + id / Grid_tekst" Android: Layout_width = "Wrap_content" Android: Layout_height = "Wrap_content" Android: maxWidth = "140dp" android: text = "summary" / & gt; & Lt; / TableRow & gt; & Lt; TableRow Android: id = "@ + id / rate_row" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" & gt; Android: Layout_height = "Wrap_content" Android: Android: IsIndicator = "True" Android: max = "Android: Android: Android: Android: Rating =" Android 5 "Android: NumStars =" 5 "Android: Rating =" 4 " Android: stepSize = "1" />
& quot; TableRow android: id = "@ + id / rate_row" android : layout_width = "Wrap_content" Android: layout_height = "wrap_content" & gt; & lt; LinearLayout Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" & gt; Android: layout_height = "wrap_content" Android: Android: IsIndicator = "True" android: max = "android: android: android: android: rating =" android: 5 "Android: numStars =" 5 "Android: Rating = "4" Android: stepSize = "1" /> & Lt; / LinearLayout & gt; & Lt; / TableRow & gt;
Comments
Post a Comment