Skip to content

Instantly share code, notes, and snippets.

View ninalofrese's full-sized avatar
:accessibility:
A11y + Android

Nina Lofrese ninalofrese

:accessibility:
A11y + Android
View GitHub Profile
@ninalofrese
ninalofrese / change-accessibility-settings-with-adb.md
Created September 6, 2022 12:04 — forked from mrk-han/change-accessibility-settings-with-adb.md
Enable and Disable Android Accessibility Settings from the Command Line using ADB (Font scale, talkback, color blind)

Using ADB to control Accessbility settings for easier testing with Android Emulators + Real Devices

It's a lot easier to test accessibility on the fly using ADB. This gist attempts to make the days of navigating through the Android device settings UI to change Accessibility settings obsolete.

These ADB commands will hopefully encourage Android developers to test and use their apps with common Accessiblility settings enabled.

Credit to James Nitsch for inspiring this, and for figuring out the put commands to enable these settings.

Font Scale (Font Size -- Testing Dynamic Text)

@ninalofrese
ninalofrese / gatsby-node.js
Created September 8, 2020 13:41
Solve issues on Netlify deploy indicating error on graphQL query: "Field "image" of type "File" must have a selection of subfields. Did you mean "image { ... }"?"
const path = require('path')
const { createFilePath } = require(`gatsby-source-filesystem`)
exports.sourceNodes = ({ actions, schema }) => {
const { createTypes } = actions
createTypes(`
type MarkdownRemarkFrontmatter {
image: String
@ninalofrese
ninalofrese / ExpandableTextViewExample.kt
Last active May 16, 2020 14:10
Utility code to make a TextView expands on click, with "view more" suffix and a label text prefix.
fun setupView {
textViewA.setAsExpandable(text, viewOrGroupToHide, 3, context.getString(R.string.label_text))
}