Make Text View Editable upon longclick

by Srinivas VG » Tue, 05 Apr 2011 03:46:42 GMT


Sponsored Links
 Hi

I am new to android development. I was implementing a feature in
android where in upon long click of the Textview,it *should be
editable.upon long click of the contents set by textView,  I tried
in the listener method , I used the following:

textView.onEditorAction(MODE_WORLD_WRITEABLE)

But I was unable to perform the function...plz let me know if there
are any other approaches...

Thanks,
Srinivas

-- 



Re: Make Text View Editable upon longclick

by TreKing » Wed, 06 Apr 2011 01:06:55 GMT


 On Sat, Apr 2, 2011 at 11:00 PM, Srinivas VG




Swap the TextView out with an EditText.

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

-- 


Sponsored Links


Other Threads

1. how can change controll to main thread from new other thread?

use a Handler object...

Handler uiHandler=new Handler();

then inside ur funcion:
uiHandler.post(new Runnable(){
void run(){
<here u can change components in the ui thread.>
}
});





--~--~---------~--~----~------------~-------~--~----~

2. Hero Rom

Barusan upgrade ROM magic tksel ke ROM Fatal1ty.
Review singkat :

- Tampilan keren banget. Aneka widget HTC bagus2
- yg paling berasa enaknya dibandingkan g1 Rom adalah data. contact kita
ngelink semuanya dgn social networking spt Facebook, Twitter dan Flickr.
Sampe temen update status fb aja bisa tau. Juga yg mau deket2 ulang tahun
juga  ketauan semuanya.
Saya rasa ini mirip dgn sinergy nya. palm pre.
- Di album foto semua foto temen di Facebook nongol. Hebat sekali ini.
- home screennya jadi nambah 7  halaman
- Twitter bawaannya pake peep  juga keren. Layak bersaing dgn twidroid dan
twit2go.

Hanya sayang ada kekurangan sbb:
- dulu di contact g1 ada pentol hijau yg menandakan temen kita lagi on
gtalknya. Jadi dr contact bisa kita click langsung utk komunikasi. Di Rom
hero ini ga ada simbol pentol ijo itu. Jadi yg nyebelin kalo kita buka
contact temen dan mau panggil dia di gtalk, kita mesti keluar dulu utk msk
ke gtalk.
- penambahan kata2 di setting text & locale menghilang. Blm ketemu masuk
dimana ini kata2 yang kita input. Sebab ini sekali diinput pasti bener terus
keyboard nya. Jadi meskipun ga ada keyboard beneran spt g1 sdh

--~--~---------~--~----~------------~-------~--~----~

3. pppd failed with "unrecognized option '/dev/pts/1'"

4. How to change /sdcard to be not a read-only file system

5. How to find information about BatteryManager and the way BroadcastReceiver works?

6. Get default email account and compose a message?

7. Scrollable area like in Robo Defense game(both horizontal and vertical)