DraggableDot
A little dot that can be dragged with animation in full screen.
Install / Use
/learn @Sloaix/DraggableDotREADME
A little dot that can be dragged with animation in full screen.
the DotView will be draw above the content view of your activity.
Demo

##Dependence ###step-1
###gradle
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
###maven
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
###step-2
###gradle
dependencies {
compile 'com.github.lsxiao:DraggableDot:0.1.3'
}
###maven
<dependency>
<groupId>com.github.lsxiao</groupId>
<artifactId>DraggableDot</artifactId>
<version>0.1.3</version>
</dependency>
##How to use it
###step-1 first you must attach draggableLayout to your activity.
DraggableLayout.attachToActivity(yourActivity);
###step-2 then layout in xml.
<com.lsxiao.library.DotView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:xls_circle_color="@color/colorAccent"
app:xls_content_color="@android:color/white"
app:xls_radius="8dp"
app:xls_content="20"
app:xls_text_size="10sp"/>
###step-3 you can listen the state change by implement this listener.
DotView dotView = (DotView) findViewById(R.id.dot);
dotView.setOnDotStateChangedListener(new DotView.onDotStateChangedListener() {
@Override
public void onStretch(DotView dotView) {
Log.d("xls", "onStretch");
}
@Override
public void onDrag(DotView dotView) {
Log.d("xls", "onDrag");
}
@Override
public void onDismissed(DotView dotView) {
Log.d("xls", "onDismissed");
}
});
License
MIT
Related Skills
node-connect
335.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.7kCreate 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
335.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.7kCommit, push, and open a PR
