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
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 написал:
> I understa
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 wrote:
> If your text view is set to wrap_content,
If your text view is set to wrap_content, its width will match the text it
contains, and so, by definition, changing android:gravity will have no
effect (this is true for single-line text, but let's keep things simple for
the sake of discussion).
What you want is one of:
android:layout_width="fil
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, Kost
There is - layout_width="wrap_content" on the text view.
2 апреля 2012 г. 7:30 пользователь 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 eventho
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 wrote:
> The adview and admob is all in the XML.
> I do
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 wrote:
> The adview and admob is all in the
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 the
On Sun, Apr 1, 2012 at 8:01 AM, adev 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 facing the proble
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
wrote:
> On Sat, Mar 31, 2012 at 4:24 AM, adev wrote:
>
> > How can I avoid this in
11 matches
Mail list logo