I avoid putting activities in tabs like the plague, except for one
book example, so I have no particular suggestions here -- sorry.

On Thu, Nov 11, 2010 at 12:26 PM, Emre A. Yavuz <[email protected]> wrote:
> Hi Mark,
>
> Yes, I was refering to a TextView that I have in a table cell. In fact, I
> have found out that the problem seems to have nothing to do with the
> TableLayout.
>
> I have created a Tab Layout based on the sample code given in the
> "Tutorials" section on the Android website. I have two Tabs with two
> Activities for each one of them.
>
> All I wanted to do was to update the a "TextView" using the setText() method
> for one of the Activities (whichever activity being displayed at the moment
> obviously). I must have been missing something but what ? I was able
> to achieve this display update  when I was using a single layout by just
> setting the text of the the TextView variable. It should have something to
> do with the Tab Layout.
>
> Any ideas ?
>
> Cheers,
>
> Emre
>
>> From: [email protected]
>> Date: Tue, 9 Nov 2010 18:30:12 -0500
>> Subject: Re: [android-developers] UI -using the setText() method ?
>> To: [email protected]
>>
>> On Tue, Nov 9, 2010 at 6:20 PM, Emre A. Yavuz <[email protected]> wrote:
>> > I have a TableLayout and I populate its columns (and rows) dynamically
>> > by
>> > calling the setText() method whenever the corresponding values are
>> > updated.
>>
>> There is no setText() on TableLayout AFAIK. I am assuming you are
>> referring to a TextView you have a in a table cell.
>>
>> > How can I be sure that the new value of a certain table location will
>> > fit
>> > into its allocated space to avoid any runtime errors ?
>>
>> The table automatically resizes based on its contents and rules, and
>> so there should not be any runtime errors, AFAIK. If you have evidence
>> to the contrary, post a sample app somewhere.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Android App Developer Books: http://commonsware.com/books
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" 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-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" 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-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to