My understanding of the API is that there is no method for setting just one of the padding components (there is an XML property, but no method). You have to use an array for our hash element :
padding: [5,48,5,5]
If you want to leave the other padding in tact, you can get the values individually, and use them in the call above.
--
You received this message because you are subscribed to the Google Groups "Ruboto (JRuby on Android)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruboto+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
That's a great question! It's actually a major problem I'm still having; I don't know how to get error messages :(
I've tried using IRB, but I can't get the example scripts to run from the server (they run on my device just fine).
So what is the best way to get an error message out?
--
You received this message because you are subscribed to a topic in the Google Groups "Ruboto (JRuby on Android)" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ruboto/PYtcvo5s_jo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ruboto+un...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Ruboto (JRuby on Android)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruboto+un...@googlegroups.com.
Hi Scott,In the API I see now a setPadding method for a LinearLayout working as you described. Thanks for pointing that out!I originally thought that the hash we pass to a widget sets its XML attributes. Are you saying that the hash corresponds to methods on the widget?For example, when I say:self.content_view =linear_layout orientation: :vertical, . . .I'm making a call to the LinearLayout's setOrientation method, not setting it's orientation attribute?. . . Ah, I see now that many of the XML attributes have a 'Related Method' association. So if I want to set an XML attribute I need to find the method that set's it and call that in the Hash.Is that right?