This is two questions.

First, how do I set the style of an object in code?  I have a rating
bar, but its way to big by default so I want to use the small one:
ratingBarStyleSmall.  However I can't find a place to set that in the
RatingBar class.  And there is no smallRatingBar class or anything
like that that I can find.

I know how to set that if I do the layout in xml but not in code, and
I would much perfer to set this up in code as its a very dynamic
layout.

The second question is how do I set gravity properly?  I have 3 linear
layouts, a horizontal and a vertical.  The two verticals are inside
the horizontal one and I want the second vertical layout to be aligned
against the right side of the screen.  I have tried just setting
gravity of the layout to the right but that seems to do nothing.  I've
also tried putting a weight on the first vertical layout so it pushes
the other one all the way to the right but that didnt work either.

Again, this is in code.  And its also a slight simplification of what
I have, a table layout will not work for my set up.

Thanks for the help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to