弹出的Android超链接

标签 android popup android-alertdialog

我希望出现一个弹出框,我希望框中的文本超链接框中的任何有效链接。在我的示例中,它是一个电子邮件地址。我目前正在使用 AlertDialog,是否有办法使链接可点击,或者我应该尝试其他方法吗?

最佳答案

我没看到你写代码。是自定义对话框吗??你可以在 AlerDialog 中放置按钮

AlertDialog alertDialog = new AlertDialog.Builder(a).create();
    alertDialog.setTitle(title);
    alertDialog.setMessage(message);
    alertDialog.setButton2("OK", new DialogInterface.OnClickListener() {
    public void onClick(DialogInterface dialog, int which) {
          //place what you want to do here 
              return ;
    } });
alertDialog.show();

关于弹出的Android超链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6112933/

相关文章:

android - 在android 4.3中使用Robolectric测试BluetoothAdapter

android - ScrollView 中的第一个嵌入式 ImageView 未显示

javascript - 弹出窗口不在屏幕中心 - CSS 问题

.net - 当我在 WPF 中使用弹出窗口时出现 COMException

android - 自定义 AlertDialog 尺寸太小

android - AlertDialog 不显示两个按钮

android - 以 getApplication() 作为上下文的对话框抛出 "Unable to add window — token null is not for an application”

android - 将位图动态添加到android中的gridview

android - 应用程序从后台返回时出现 MvvmCross ViewModel 异常

reactjs - 如何在弹出 map 框中使用 D3 图形?