ViewBuilder
ViewBuilder for Android is a library for easily building useful views like Tags, Spinner, AutoCompleteTextView, ...
Install / Use
/learn @DONIKAN/ViewBuilderREADME
ViewBuilder
ViewBuilder for Android is a library for easily building useful views like Tags, Spinner, AutoCompleteTextView, ...
Screenshots

Setup
Add it to your build.gradle with:
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
and:
dependencies {
compile 'com.github.DONIKAN:ViewBuilder:1.06'
}
How to use
- Initialize entries
List<Category> categories = DataFixture.getCategoies();
List<Entry> entries = new ArrayList<>();
for (Category category : categories) {
entries.add(new Entry<Category>(category.getId(), category.getTitle(), category));
}
// select default first item
entries.get(0).setSelected(true);
- Build view
new TagBuilder(MainActivity.this)
.setRecyclerView((RecyclerView) findViewById(R.id.rvTag))
.setLayoutManager(ViewBuidler.LayoutManager.STAGGERED)
.setOrientation(LinearLayout.HORIZONTAL)
.setSpanCount(3)
.setCustomSelectedStyle(R.style.CustomTagSelectedStyle, R.drawable.custom_bg_tag_selected)
.setCustomUnselectedStyle(R.style.CustomTagUnselectedStyle, R.drawable.custom_bg_tag_unselected)
.setEntries(entries)
.setOnItemClickListener(new OnItemClickListener() {
@Override
public void OnItemClick(Entry entry, int position) {
Toast.makeText(MainActivity.this, "Tag : " + entry.toString(), Toast.LENGTH_LONG).show();
}
})
.create();
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate 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
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
