0
我想单击AlertDialog显示的部分文本并开始新的活动。 我只是不知道它是否可能。 这里我对我的代码从消息AlertDialog创建新活动
case R.id.about:
final AlertDialog d = new AlertDialog.Builder(this)
.setPositiveButton(android.R.string.ok, null)
.setMessage(Html.fromHtml(getResources().getString(R.string.infoAuthor)+" <br> <a href=\"https://www.youtube.com">click here for help</a>"))
.create();
d.show();
// Make the textview clickable. Must be called after show()
((TextView)d.findViewById(android.R.id.message)).setMovementMethod(LinkMovementMethod.getInstance());
将很高兴看到一些代码示例 –
我添加了代码。 – user697495