Why are you using AbsoluteLayout?????????

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Sat, May 29, 2010 at 8:14 PM, Tollas <tolla...@gmail.com> wrote:

> No. I have a single AbosoluteLayout nested in a single ScrollView.
>
> <ScrollView
>        android:id="@+id/scrollview"
>         android:layout_width="fill_parent"
>        android:layout_height="fill_parent"
>         android:orientation="vertical"
>         xmlns:android="http://schemas.android.com/apk/res/android";>
>
> <AbsoluteLayout
>        android:id="@+id/mainlayout"
>         android:layout_width="fill_parent"
>        android:layout_height="fill_parent">
>
> On May 29, 8:14 am, niko20 <nikolatesl...@yahoo.com> wrote:
> > Hi,
> >
> > Are you using a relative layout at all? Relative layout has some bugs
> > when you use "forward references", and basically will "disappear".
> >
> > -niko
> >
> > On May 28, 3:07 pm, Tollas <tolla...@gmail.com> wrote:
> >
> > > Yes.
> > > (getResources().getDrawable(R.drawable.attack_any) != null) returns
> > > true.
> >
> > > On May 28, 1:41 pm, Justin Anderson <janderson....@gmail.com> wrote:
> >
> > > > Have you verified that
> "getResources().getDrawable(R.drawable.attack_any)"
> > > > is not returning a null value?
> >
> > > >
> ----------------------------------------------------------------------
> > > > There are only 10 types of people in the world...
> > > > Those who know binary and those who don't.
> > > >
> ----------------------------------------------------------------------
> >
> > > > On Fri, May 28, 2010 at 12:22 PM, Tollas <tolla...@gmail.com> wrote:
> > > > > The button is there. I can click on it and it behaves normally.
> > > > > I have a Spinner onItemSelected that updates the button's image.
> > > > > When I activate that & set to any value but the default, the button
> > > > > updates properly and the new image is displayed.
> >
> > > > > On May 28, 12:57 pm, Justin Anderson <janderson....@gmail.com>
> wrote:
> > > > > > Is it there and you just can't see it?  Or is it not there
> period?  What
> > > > > > happens if you click where the button is supposed to be at?
> >
> > > > > > One other thing I noticed... You are using AbsoluteLayout.  That
> has been
> > > > > > deprecated and it will not play nice with phones that have
> different
> > > > > screen
> > > > > > sizes.
> >
> > > > > >
> ----------------------------------------------------------------------
> > > > > > There are only 10 types of people in the world...
> > > > > > Those who know binary and those who don't.
> > > > > >
> ----------------------------------------------------------------------
> >
> > > > > > On Fri, May 28, 2010 at 11:43 AM, Tollas <tolla...@gmail.com>
> wrote:
> > > > > > > <Button
> > > > > > >   android:id="@+id/attack_ability_button"
> > > > > > >   android:layout_width="52dp"
> > > > > > >   android:layout_height="52dp"
> > > > > > >   android:layout_x="10dp"
> > > > > > >   android:layout_y="70dp"/>
> >
> > > > > > > final Button attack_ability_button =
> > > > > > > (Button)findViewById(R.id.attack_ability_button);
> >
> > > > >
> attack_ability_button.setBackgroundDrawable(getResources().getDrawable(R.drawable.attack_any));
> >
> > > > > > > My problem is that when I use the attack_any  drawable to
> create the
> > > > > > > button, it just isn't there.
> > > > > > > If I change to another image of the same size, the button shows
> up
> > > > > > > just fine.
> > > > > > > I've tried replacing the image file, renaming it, resizing it.
> Always
> > > > > > > with the same results.
> > > > > > > I tried using the attack_any drawable for another button and it
> > > > > > > disappears as well.
> > > > > > > I've also tried moving the button and changing its size, but
> the
> > > > > > > problem persists.
> > > > > > > I've even tried drawing the background in XML rather than java
> and it
> > > > > > > still will not show up.
> >
> > > > > > > attack_any.png is a 60x60px image 1kb in size.
> >
> > > > > > > Scroll View
> > > > > > > -----Absolute Layout
> >
> > > > > > > --
> > > > > > > You received this message because you are subscribed to the
> Google
> > > > > > > Groups "Android Beginners" group.
> >
> > > > > > > NEW! Try asking and tagging your question on Stack Overflow at
> > > > > > >http://stackoverflow.com/questions/tagged/android
> >
> > > > > > > To unsubscribe from this group, send email to
> > > > > > > android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com>
> <android-beginners%2bunsubscr...@googlegroups.com<android-beginners%252bunsubscr...@googlegroups.com>
> >
> > > > > <android-beginners%2bunsubscr...@googlegroups.com<android-beginners%252bunsubscr...@googlegroups.com>
> <android-beginners%252bunsubscr...@googlegroups.com<android-beginners%25252bunsubscr...@googlegroups.com>
> >
> >
> > > > > > > For more options, visit this group at
> > > > > > >http://groups.google.com/group/android-beginners?hl=en
> >
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "Android Beginners" group.
> >
> > > > > NEW! Try asking and tagging your question on Stack Overflow at
> > > > >http://stackoverflow.com/questions/tagged/android
> >
> > > > > To unsubscribe from this group, send email to
> > > > > android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com>
> <android-beginners%2bunsubscr...@googlegroups.com<android-beginners%252bunsubscr...@googlegroups.com>
> >
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/android-beginners?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to