Re: [android-developers] Re: Textview gravity resets

2012-04-03 Thread Kostya Vasilyev
Ok, understood. fill_parent refers to the parent's width. Perhaps the text view's parent changes its width? An easy way to find out is to temporarily assign bright, solid, distinct background colors to views in your hierarchy. -- K 3 апреля 2012 г. 4:24 пользователь adev enric...@gmail.com

[android-developers] Re: Textview gravity resets

2012-04-03 Thread adev
the parent is a tablerow, then a tablelayout, then linear layout (relative) so I have width set to fill_parent set to all. I actually do have it colored already inorder to have a border the size does not seem to change. I think the strange part is that this does not happen til after the adview

[android-developers] Re: Textview gravity resets

2012-04-02 Thread adev
It is set to wrap_content, I have tried match_parent and fill_parent but there is no difference. After the adview loads, everything APPEARS Left. However, if I programmatically look at the gravity attribute of the textview, the gravity is still set to right|center_vertical On Apr 2, 5:04 am,

[android-developers] Re: Textview gravity resets

2012-04-02 Thread adev
I understand what you are saying, but I am saying that it does not work. For the textview: layout_width=fill_parent gravity=right|center_vertical It still does not work. It looks fine until the ad loads. On Apr 2, 8:49 am, Kostya Vasilyev kmans...@gmail.com wrote: If your text view is set to

[android-developers] Re: Textview gravity resets

2012-04-01 Thread adev
The adview and admob is all in the XML. I do not have any code related to it. So that is not dynamic. However, it seems that the height of the adview is not determined until the ad is loaded. When I start the app, the adview height seems to be zero, then after one or two seconds, it appears and

[android-developers] Re: Textview gravity resets

2012-04-01 Thread adev
Also, even if I did do it dynamically, how do I know when to do it? I would need to trigger the gravity code to run after the ad has been loaded or when the gravity gets changed. Is there a way to trigger off one of these events? On Apr 1, 9:54 am, adev enric...@gmail.com wrote: The adview and

[android-developers] Re: Textview gravity resets

2012-04-01 Thread adev
I've tried dynamically changing each text view, but nothing happens when I change it. Is there anything thing else that would cause a text view to APPEAR to be left justified eventhough gravity is still set to RIGHT? On Apr 1, 9:54 am, adev enric...@gmail.com wrote: The adview and admob is all

[android-developers] Re: Textview gravity resets

2012-03-31 Thread adev
Sure I can reset the gravity on all of them in code, but that defeats the purpose of using the XML. I'd like to know the cause of the issue I'm seeing now and solve it. On Mar 31, 2:17 pm, Narendra Singh Rathore nsr.curi...@gmail.com wrote: On Sat, Mar 31, 2012 at 4:24 AM, adev

Re: [android-developers] Re: Textview gravity resets

2012-03-31 Thread Narendra Singh Rathore
On Sun, Apr 1, 2012 at 8:01 AM, adev enric...@gmail.com wrote: Sure I can reset the gravity on all of them in code, but that defeats the purpose of using the XML. No, not at all. Just reset the gravity of only the TextView in code. You need not to reset the gravity of all of them, as you are