0

我有滑块拼图的源代码。它为拼图提供了一个随机图像,您可以更改很多设置,例如图块和数字等等。添加图片真的很容易,您只需让它们以 image_ 开头并将它们放在可绘制文件夹中。唯一的问题是它没有 layout.xml 我猜一切都是通过活动编写的。

当单击菜单中的按钮时,我希望所有图片都像画廊视图一样。我已经看到所有画廊代码都需要布局中的代码,而这个源代码基本上没有,所以我想

而不是这个

public void showAbout()
{
    AlertDialog.Builder builder = new AlertDialog.Builder(this);
    builder.setTitle(R.string.title_about);
    builder.setMessage(R.string.content_about);
    builder.setPositiveButton(R.string.label_ok, null);
    builder.setIcon(R.drawable.ic_launcher);
    AlertDialog dlg = builder.create();
    dlg.show();
  ((TextView)         dlg.findViewById(android.R.id.message)).setMovementMethod(LinkMovementMethod.getInstance());
}

我只是希望它显示为照片库

4

0 回答 0