Hi,
How can I make a text clickable(hyperlinked) in the dialogue box.
Folowing is the code ----->
public class Custom_Dialog extends Dialog implements OnClickListener {
public Custom_Dialog(Context context) {
super(context);
setContentView(R.layout.my_dlgbox);
setTitle("About");
setCancelable(true);
//set up text
TextView text = (TextView) findViewById(R.id.myDlgTxtView);
text.setText(R.string.about_text);
//set up image view
ImageView img = (ImageView) findViewById(R.id.myDlgImgView);
img.setImageResource(R.drawable.logo_72px);
//set up button
Button okButton;
okButton = (Button) findViewById(R.id.DlgButton);
okButton.setOnClickListener(this);
}
public void onClick(View v) {
dismiss();
}
}
about_text --> contains the text to be displayed , there is
www.google.comas one of the texts, and I want it to be clickable.
I thnk I have to insert some *attributes* inside the my_dlgbox.xml.But dont
know what are they , goooling it will give it for the alertbox and not for
dialogue or message box.box.plz assit
Rgds,
Saurabh
--
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