Skip to content

hongbeomi/TouchMouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

TouchMouse

๐Ÿ•น It's a cursor that follows the life cycle of an application.

license api

logo


๐Ÿš€ Quick Start

Gradle

Add it in your root build.gradle at the end of repositories:

allprojects {
  repositories {
    ...
      maven { url 'https://jitpack.io' }
  }
}

And add a this code to your module`s build.gradle file

dependencies {
  implementation 'com.github.hongbeomi:TouchMouse:1.0.1'
}

๐Ÿ‘€ Preview

preview


โšก๏ธ Options

If you want to change the color of the cursor or want to change the cursor to a custom drawble, you can set options.

TouchMouseManager.setOptions(
  TouchMouseOption(
    // set custom color, default value is null
    cursorColor = R.color.my_color,
    // or set custom drawable, default value is null
    cursorDrawable = R.drawable.my_custom_drawable
  )
)

It can be initialized anywhere.

TouchMouseManager.clear()

๐ŸŒŸ Find this project useful?

Support it by joining stargazers for this repository


๐Ÿ“ License

Copyright 2020 Hongbeom Ahn

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

			http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.