仿微信个人朋友圈多图组合(4宫格)
<com.seed.puzzle.NineGroupImageView
android:layout_below="@id/item_content"
android:layout_toRightOf="@id/item_image"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:id="@+id/item_group">
</com.seed.puzzle.NineGroupImageView>
nineGroupImageView.setAdapter(new NineGridImageViewAdapter<String>() {
@Override
protected void onDisplayImage(Context context, ImageView imageView, String url) {
Glide.with(mContext).load(url).placeholder(new ColorDrawable(Color.parseColor("#f5f5f5")))
.error(R.mipmap.ic_launcher).into(imageView);
}
@Override
public void onItemImageClick(Context context, ImageView itemView, int position, List mImgDataList) {
}
});
nineGroupImageView.setImagesData(mDataLists.get(position).getUrls());
laobie 的 NineGridView
myloften 的 GroupIconSample