Visit GitHub Repo


Android Arsenal

A simple library that provides an anlog stick to use for on screen controls.

This library is an easy way to implement an analog stick for on screen controls in your app!.


This library is available on Maven so simply add the following line in your build.gradle file.
repositories {
  maven {url ""}

dependencies {
  compile 'com.github.DeveloperPaul123:AnalogStickLibrary:1.0.0'


Using the library is easy. Just add the analog stick to your layout via xml. You can set the inner and outer circle colors too! Then in your activity reference it the same way you would any other view:

private AnalogStick analogStick;


protected void OnCreate(Bundle bundle) {

  analogStick = (AnalogStick) findViewById(;

Be sure to also set a listener so that you can retrieve the returned values. If you want a "power" reading or some scaled value do the following as well.

        //set max x and y values. 
        //add the listner. 
        analogStick.setOnAnalogMoveListner(new OnAnalogMoveListener() {
            public void onAnalogMove(float x, float y) {
               //do something with the raw values. 

            public void onAnalogMovedScaledX(float scaledX) {
               //do something with the scaled x value. 

            public void onAnalogMovedScaledY(float scaledY) {
               //do something with the scaled y value. 

            public void onAnalogMovedGetAngle(float angle) {
              //do something with the angle 

            public void onAnalogMovedGetQuadrant(Quadrant quadrant) {
              //do something with the quadrant. 


Add ability for haptic feedback. Upload demo app to google play

Developed By

**Paul T**


Copyright 2014 Paul T

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

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.

Learners From Our Courses Work At