How to make linkable TextView with Linkify

by Marco Rocco » Thu, 14 Oct 2010 01:32:18 GMT


Sponsored Links
 I would make a textview linkable, and i have tried with this code:

[...]
TextView textview;
for (int i = 0; i < 5; i++) {
        textview = new TextView(this);
        htmlString = "<a href=' http://www.google.com '>Try Me</a>";
        textview.setText(Html.fromHtml(htmlString));
        Linkify.addLinks(textview, Linkify.WEB_URLS);
        lx.addView(textview, layoutParams);
}
[...]

but when i click on a textview nothing happens!

Anyone can help me?

--



How to make linkable TextView with Linkify

by Dimitris » Thu, 14 Oct 2010 01:39:46 GMT


 I think you might have to call setMovementMethod() on your textview.

See:

 http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/text/Link.html 




--


Sponsored Links


Other Threads

1. IA32 gui debugger

Hi all
   Take a look my project  http://www.***.com/ , it is
an IA32 GUI de{*filter*}
thanks
from Peter (cmk...@hotmail.com)

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website:  http://www.***.com/ 
-~----------~----~----~----~------~----~------~--~---

2. Kernel make error

Hi,

I am trying to build the kernel from the Andorid source. For that I
just clone the kernel from the Andorid repo. I created a dir outside
myAndroid.

Then I did the following from tat dir,

$ git clone git://android.git.kernel.org/kernel/common.git
$ git checkout -t origin/android-goldfish-2.6.27 -b goldfish
$ cd common # the kernel source is now in here
$ make goldfish_defconfig


When I say make goldfish_deconfig

  CHK     include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/utsrelease.h
  CC      kernel/bounds.s
cc1: error: unrecognized command line option "-mlittle-endian"
cc1: error: unrecognized command line option "-mapcs"
cc1: error: unrecognized command line option "-mno-sched-prolog"
cc1: error: unrecognized command line option "-mabi=aapcs-linux"
cc1: error: unrecognized command line option "-mno-thumb-interwork"
kernel/bounds.c:1: error: bad value (armv4t) for -march= switch
kernel/bounds.c:1: error: bad value (arm9tdmi) for -mtune= switch
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2


My env Variables are : ARCH=arm
CROSS_COMPILE=CROSS_COMPILE=/home/android/android_new_cupcake/prebuilt/
linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi-

Can anyone tell me where I am doing wrong and what all the things I
need to do to build a kernel for the emulator.

Thanks
Rk

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

3. How to compile a kernel module to Andr oid Linux Kernel 锛

4. Kernels fail to boot on Rogers HTC Dream, but works on other Dream platforms (ADP1, T-Mo G1)

5. Android USB gadget driver

6. The RIL, the baseband and voice calls

7. booting up the emulator with custom kernel build