[android-developers] Re: EditText with Cross
Yes that I know but I would like to do that the Button will be inside of EdiText. The Button will be a little bit like a cover of EditText. Is it possible to set the Button position to be above the EditText?? thanks for answering. On 12. Jan, 17:49 h., Kumar Bibek coomar@gmail.com wrote: It might just be a regular button beside the EditText. And I guess that's very simple to implement. Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Wed, Jan 12, 2011 at 10:15 PM, Richard Sámela feromak...@gmail.comwrote: Hi, I saw an app where was EditText and if you put some text into EditText there was a Cross Button (or something like that) on the left side. And if I click on this Button the text from EditText was deleted. Can you help me or explain me how to to this? I would like to use EditText with the same effect. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email toandroid-develop...@googlegroups.com To unsubscribe from this group, send email toandroid-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com 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 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] Re: EditText with Cross
Well, it's possible, but it will be more complex. You have to give some padding in the edit text so that the button doesn't overlap the text on the edit text. And then, there might be focus problems. Another workaround is: Change the background of the edittext and the parent layout to whatever you want it to look like. And then have this layout. Parent Layout --Button-- --EditText-- Code the listeners for the button, and it should work. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Jan 13, 2011 at 1:23 AM, Richard Sámela feromak...@gmail.comwrote: Yes that I know but I would like to do that the Button will be inside of EdiText. The Button will be a little bit like a cover of EditText. Is it possible to set the Button position to be above the EditText?? thanks for answering. On 12. Jan, 17:49 h., Kumar Bibek coomar@gmail.com wrote: It might just be a regular button beside the EditText. And I guess that's very simple to implement. Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Wed, Jan 12, 2011 at 10:15 PM, Richard Sámela feromak...@gmail.com wrote: Hi, I saw an app where was EditText and if you put some text into EditText there was a Cross Button (or something like that) on the left side. And if I click on this Button the text from EditText was deleted. Can you help me or explain me how to to this? I would like to use EditText with the same effect. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email toandroid-develop...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com 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 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] Re: EditText with Cross
Hi, check the below link surely it will help you http://androidsnips.blogspot.com/2010/10/create-edittext-with-cancel-button-as.html On Thu, Jan 13, 2011 at 1:30 AM, Kumar Bibek coomar@gmail.com wrote: Well, it's possible, but it will be more complex. You have to give some padding in the edit text so that the button doesn't overlap the text on the edit text. And then, there might be focus problems. Another workaround is: Change the background of the edittext and the parent layout to whatever you want it to look like. And then have this layout. Parent Layout --Button-- --EditText-- Code the listeners for the button, and it should work. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Jan 13, 2011 at 1:23 AM, Richard Sámela feromak...@gmail.comwrote: Yes that I know but I would like to do that the Button will be inside of EdiText. The Button will be a little bit like a cover of EditText. Is it possible to set the Button position to be above the EditText?? thanks for answering. On 12. Jan, 17:49 h., Kumar Bibek coomar@gmail.com wrote: It might just be a regular button beside the EditText. And I guess that's very simple to implement. Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Wed, Jan 12, 2011 at 10:15 PM, Richard Sámela feromak...@gmail.com wrote: Hi, I saw an app where was EditText and if you put some text into EditText there was a Cross Button (or something like that) on the left side. And if I click on this Button the text from EditText was deleted. Can you help me or explain me how to to this? I would like to use EditText with the same effect. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email toandroid-develop...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com 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 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