CombinationImageView
A simple component to organize multi picture showing on one view
Install / Use
/learn @fenjuly/CombinationImageViewREADME
##CombinationImageView
This's just a simple component that hold more than one image into a view.You are probably familiar with WeChat, yeah! just like the avatar of wechat group.
There is no limits how many images you can add in the view, but the maxium number can be shown is nine.
###ScreenShot

###Usage
-
XML
There are four images you can assign in xml.
<com.fenjuly.combinationimageview.CombinationImageView
android:layout_marginTop="8dp"
android:layout_gravity="center_horizontal"
android:background="#CCCCCC"
android:layout_width="50dp"
android:layout_height="50dp"
custom:first_image_src="@drawable/example1"
custom:second_image_src="@drawable/example2"
custom:third_image_src="@drawable/example3"
custom:fourth_image_src="@drawable/example4"
/>
- Add View in Code
In this lib, there are three methods provided for you.
public void addImageView(String path)public void addImageView(int resId)public void addImageView(Bitmap bitmap)
you can use these method like this:
number5 = (CombinationImageView) findViewById(R.id.number5);
number5.addImageView(R.drawable.example5);
- Delete View in Code
Also provide servial methods.
public int getViewsCount()public void removeView(int position)public void removeAllViews()
###LICENSE LICENSE UNDER MIT
Related Skills
node-connect
352.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
