What is it exactly you observe as a result? I know for sure that
setBackgroundColor() works.

On Sun, Jun 15, 2008 at 1:44 AM, Sylvester Steele
<[EMAIL PROTECTED]> wrote:
>
>
>
> On Jun 9, 8:12 am, "Romain Guy" <[EMAIL PROTECTED]> wrote:
>> First of all, the content view (set with setContentView()) is always
>> set to use all of the available space. That's why setHeight() wasn't
>> working. Note you can always change the layout parameters from your
>> code using getLayoutParams() and then setting the height to the height
>> you computed dynamically. You may also use the android:layout_weight
>> attribute, provided by LinearLayout.
>>
>> On Sun, Jun 8, 2008 at 8:07 PM, Sylvester Steele
>>
>> <[EMAIL PROTECTED]> wrote:
>>
>> >  Try putting your EditText inside a
>> >> LinearLayout, setting layout_height and layout_width to your desired
>> >> values, and see if that helps
>>
>> > Yes that is what i did after hours of frustration with the functions,
>> > but what if i want to make it dynamic? Say height= 1/10 of the screen
>> > height? How do I do that with XML? and any reason why the setHeight
>> > etc functions may not be working?
>>
>> > Sylvester
>>
>> --
>> Romain Guywww.curious-creature.org
>
> I am trying to set the background colour of a textView that I display
> in a toast. The added1.setBackgroundColor(0xFEAAAA); function does not
> seem to work. Same reason?
>
> Sylvester
> >
>



-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to