【发布时间】:2012-10-01 07:23:32
【问题描述】:
我必须做 android 应用程序,其中包括带有 GridView 的 Gallery 和图像应该来自 XAMPP 服务器,而不是来自这样的文件夹(可绘制):
public class ImageAdapter extends BaseAdapter implements ListAdapter {
public static int[] images = {R.drawable.image1, R.drawable.image2,
R.drawable.image3, R.drawable.image4,
R.drawable.image5, R.drawable.image6,
R.drawable.image7, R.drawable.image8,
R.drawable.image9, R.drawable.image10,
R.drawable.image11, R.drawable.image12,
R.drawable.image13, R.drawable.image14};
private Context context;
public ImageAdapter (Context applicationContext)
{
context = applicationContext;
}
并且图像应该是可点击的(缩放)。谢谢:)!
【问题讨论】:
标签: android xml gridview xampp gallery