CircularCoverView
It's just a cover view of other views.You can set radians and color by self.
Install / Use
/learn @sanchips/CircularCoverViewREADME
It's just a cover view of other views.You can set radians and color by self.
<img src="./screenshot/device-2016-07-19-170200.png" width="380" height="600"/>Useage
There are simply CircularCoverView.class and attrs.xml files in library directory in project.You can copy them in your project.
- In xml files:Use
RelativeLayoutorFrameLayoutaround your code.
<RelativeLayout
android:layout_width="300dp"
android:layout_height="250dp">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/test1" />
<com.zrp.library.CircularCoverView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cover_color="@android:color/white"
app:left_bottom_radius="9dp"
app:left_top_radius="9dp"
app:right_bottom_radius="9dp"
app:right_top_radius="9dp" />
</RelativeLayout>
- In code:Use
RelativeLayoutorFrameLayoutas it's parent view and add view at last.
RelativeLayout container = new RelativeLayout(this);
//create other child views...
CircularCoverView coverView = new CircularCoverView(this);
coverView.setLayoutParams(new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
coverView.setCoverColor(Color.WHITE);
coverView.setRadians(35, 35, 35, 35);
container.addView(coverView);
Related Skills
node-connect
352.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.5kCreate 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.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
