Re: [android-developers] Drawing an EditText on top of an image
On 14 August 2010 06:26, Abhi abishe...@gmail.com wrote: Hi, I am creating a custom view which has an image. The image can be of any type. What i want to achieve is that i want to draw an EditText control on top of the image so that the user can add some values to it. I am not sure how to achieve this. The onDraw control will not allow me to draw any view right? I am new to android so any help would be appreaciated. Put them both in relative or absolute layout and make edit text object overlap your image object and that's it. note layout order matters, so text edit have to be second in layout order as otherwise image view will be drawn over it -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Drawing an EditText on top of an image
Hi, I am creating a custom view which has an image. The image can be of any type. What i want to achieve is that i want to draw an EditText control on top of the image so that the user can add some values to it. I am not sure how to achieve this. The onDraw control will not allow me to draw any view right? I am new to android so any help would be appreaciated. Thanks and Regards, Abhijeeth -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Drawing an EditText on top of an image
On Fri, Aug 13, 2010 at 11:26 PM, Abhi abishe...@gmail.com wrote: What i want to achieve is that i want to draw an EditText control on top of the image so that the user can add some values to it. Just define a layout that has an EditText and and ImageView below it. You should not have to do anything with onDraw. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en