Here is what is done for EditText: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/EditText.java;h=57aca240502b0e78a4e8bc6e1468ff25ed236312;hb=HEAD
As you can see, it also uses a couple of custom styles, that can be found here: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/res/res/values/styles.xml;h=d7b654e49809cb97a35682754b1394af5c8bc88b;hb=HEAD#l318 The background may be a private drawable (@android:drawable/ edit_text), so either you have to copy it into your project, or use the existing EditText class and swap it with the existing TextView class as I suggested above. Peli www.openintents.org On Jul 17, 3:38 pm, peeyush varshney <[email protected]> wrote: > I have G1 with keyboard.. > even Android have attribute editable but it is not setting.. > > > > On Fri, Jul 17, 2009 at 7:05 PM, Peli <[email protected]> wrote: > > > Are you sure this is a good idea? There are phones without a physical > > keyboard, and then users could not edit any text. > > > The simplest way is to define both, TextView and EditText and > > setVisibility(View.GONE) or View.VISIBLE to only show one of the two, > > if you still need to do this. > > > Peli > > > On Jul 17, 3:31 pm, peeyush varshney <[email protected]> > > wrote: > > > it depends on Context like when Qwerty is closed it should be TexView > > > otherwise editText...... > > > > On Fri, Jul 17, 2009 at 5:12 PM, Peli <[email protected]> wrote: > > > > > Why don't you simply use EditText? > > > > > Peli > > > >www.openintents.org > > > > > On Jul 17, 11:15 am, peeyush varshney <[email protected]> > > > > wrote: > > > > > Hi, > > > > > How to make a TextView Editable. > > > > > > -- > > > > > Thank & Regards > > > > > Peeyush Varshney > > > > -- > > > Thank & Regards > > > Peeyush Varshney > > -- > Thank & Regards > Peeyush Varshney --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

