Android Custom View Accessibility

Overview

CustomFanController - Solution Code

Creates a circular fan control dial that offers multiple selections marked by numeric indicators: 0 for off, 1 for low, 2 for medium, and 3 for high.

Introduction

The app creates a circular UI element that resembles a physical fan control. It uses a custom view that extends View to draw a circular fan control dial with an indicator and text labels for the settings: 0 (off), 1 (low), 2 (medium), and 3 (high). When the user clicks the dial, it moves the dial indicator to the next selection, and changes the dial's color from gray to green for selections 1-3 (indicating that the fan power is on).

Pre-requisites

You need to know how to:

  • Open, build, and run apps with Android Studio.
  • Use the layout editor to create a user interface.
  • Edit a layout in XML.
  • Use touch, text, and click listeners in your code.

Getting Started

  1. Download the code.
  2. Open the code in Android Studio.
  3. Run the app.

License

Copyright 2019 Google, Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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.

You might also like...
A simple textview with custom background to provide additional information.
A simple textview with custom background to provide additional information.

🧱 Tebel A simple textview with custom background to provide additional information. Install Gradle Add JitPack repository below to your module's buil

Use Android Data Binding wih Live Data to glue View Model and Android

Gruop-C Spliff Summary Use Android Data Binding wih Live Data to glue View Model and Android. Asynchronous communications implemented with KotlinX Cor

Titanium Android module: Add a view to a BottomNavigation
Titanium Android module: Add a view to a BottomNavigation

ti.bottomNavView Titanium Android module that allows you to add a custom view to a BottomNavigation: Install moduleti.bottomNavView/module Method

An Android app where you can view and examine the details of fast food divided into categories.
An Android app where you can view and examine the details of fast food divided into categories.

🍔 FastFood An Android application where you can view and examine the details of fast food divided into categories. 🛠 Tech Stack & Open-Source Librar

A basic library that enables easy composition of gesture sequence recognition on a view

GestureSequence A basic library that enables easy composition of gesture sequence recognition on a view. Basic API looks like: // Perform action() whe

Clean MVVM with eliminating the usage of context from view models by introducing hilt for DI and sealed classes for displaying Errors in views using shared flows (one time event), and Stateflow for data

Clean ViewModel with Sealed Classes Following are the purposes of this repo Showing how you can remove the need of context in ViewModels. I. By using

Tweaks - A customizable debug screen to view and edit flags that can be used for development
Tweaks - A customizable debug screen to view and edit flags that can be used for development

A customizable debug screen to view and edit flags that can be used for developm

AppD-Task1 - A simple basic app with use of card view and toast
AppD-Task1 - A simple basic app with use of card view and toast

AppD-Task1 Made a simple basic app with use of card view and toast. Screenshots

Simple view which allow you to customise your pizza's toppings and size as per your choice.
Simple view which allow you to customise your pizza's toppings and size as per your choice.

TwistedPizzaToppingsView Overview Simple view which allows options to customize your pizza toppings and size as per your choice. Features Android 12 s

Owner
Atıl Samancıoğlu
Atıl Samancıoğlu
A custom view for rating which easy to make and use, but function is excellent

QRatingView A custom view for rating which easy to make and use, but function is excellent Effect Picture Properties <declare-styleable name="QRat

QCoder 1 Dec 3, 2021
A custom OTP view to enter a code usually used in authentication

A custom view to enter a code usually used in authentication. Different types of OTPViews. Easy to use and configure your own view and character of OTP using all the attributes.

Simform Solutions 48 Aug 30, 2022
Customtoast is a android library for show your toast message in a custom UI.

CUSTOM TOAST customtoast is a android library for show your toast message in a custom UI. To get a Git project into your build: Step 1. Add the JitPac

ebinumer 1 Apr 22, 2022
Execute asynchronous batch tasks with predefined or custom UI in Android.

AndroidBatchWorker Execute asynchronous batch tasks with predefined or custom UI in Android. Import Add JitPack repository to your project level build

Nowrose Muhammad Ragib 3 Nov 8, 2022
A simple time second selector seek bar custom made

A simple time second selector seek bar custom made How to To get a Git project into your build: Step 1. Add the JitPack repository to your build file

Mohammed Nadil 2 Nov 26, 2021
Ticker - A custom time picker library

Ticker A simple spinner time picker library Adding dependencies: if your gradle

Kshitij Kumar 11 Dec 4, 2022
Show Custom TOAST

Show Custom TOAST

Mohammed AbuAnzeh 2 Mar 30, 2022
Custom plugin for private minecraft server

Custom Plugin Custom plugin for private minecraft server. Requirements Java 1.17 PaperMC 1.18 (Minecraft 1.18) Features Cancels Creeper griefing Build

ghosti3 1 Apr 14, 2022
Simple addon for BlueMap that allows using a custom skin server.

BlueMap Custom Skin Server Description Simple addon for BlueMap that allows using a custom skin server. Config { "debug": false,

Syorito Hatsuki 3 Nov 13, 2022