Giter Club home page Giter Club logo

androidusercontrols's Introduction

AndroidUserControls

A few relatively simple looking and somewhat customizable Android user controls.

Just to show their functionality, all controls have been included in the "Gauge" screen of the PhoneTest project. The project itself is set with minimum requirement of Android 4.1 (API level 16) while targeting Android 11 (API level 30).

Functionality

  • AngleIndicator
    • a control to indicate rotational position/angle, measured counterclockwise from the zero/home position.
    • zero/home position could be selected as either of East (0), North (90), West (180) or South (270).
    • designed to show -360 to 360 values and will reduce all other values to this range (use the getCurrentValue() method to get the actual value).
    • could potentially be used as a weather vane since it can show the Direction suffix.
    • possibly use either Arc or Pie to sweep the angle for better visual appearance, see the screenshot.
    • it has publicly accessible methods: getCurrentValue() for reading and setCurrentValue(newFloatValue) for writing.
    • all custom properties start with "ai".
  • RoundGauge
    • a gauge control that could be used for miscelaneous measurements.
    • min/max values can be set individually.
    • it has publicly accessible methods: getGaugeCurrentValue() for reading and setGaugeCurrentValue(newFloatValue) for writing.
    • all custom properties start with "gauge".
  • LEDLight
    • a control that can be turned ON/OFF and Blink (which is of a higher order but will restore the last ON/OFF state once the blinking stops).
    • it has publicly accessible methods: isLED_ON() and isLED_Blink() for reading and setLED_ON(newBooleanValue) and setLED_Blink(newBooleanValue) for writing.
    • all custom properties start with "led".

Screenshot is included in each control's folder.

Install

All it should take is to:

  • Add the control's java file to your app's src/main/java/com.e.whatever folder (copy-paste).
  • Add the control's xml file to your app's src/main/res/values folder (copy-paste).
  • Save it all, Sync with Gradle, Build/Rebuild Project, open one of your activity layout files and look for the new control under "Project".

Licensing

These are all licensed under MIT License.

Trademarks

Any and all trademarks, either directly or indirectly mentioned in any control, belong to their respective owners.

androidusercontrols's People

Contributors

githubdragonfly avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.