Name Description Size
CheckableImageButton.kt ImageButton that implements Checkable. NB: We need a checkable button with a centered drawable for the overlay. CheckBox uses a non-centered drawable, and we can't use ToggleButton because it uses android:background to set the image, which we need for button state, so we make a custom button. We need to override onCreateDrawableState (see CompoundButton source) to add the checked state to the attrs. 2956
IgnoreFocusMovementMethod.kt An ArrowKeyMovementMethod that eliminates end cursor selection onFocus 577
InlineAutocompleteEditText.java Called when the user inputs some value. This is distinguished from commit (user completed input) and filter (text changed in the view, even by `setText` methods). 25739
LocaleListPreference.java With thanks to <http://stackoverflow.com/a/22679283/22003> for the initial solution. This class encapsulates an approach to checking whether a script is usable on a device. We attempt to draw a character from the script (e.g., ব). If the fonts on the device don't have the correct glyph, Android typically renders whitespace (rather than .notdef). Pass in part of the name of the locale in its local representation, and a whitespace character; this class performs the graphical comparison. See Bug 1023451 Comment 24 for extensive explanation. 13097
ResizableKeyboardCoordinatorLayout.java A CoordinatorLayout implementation that resizes dynamically based on whether a keyboard is visible or not. 1434
ResizableKeyboardViewDelegate.java A helper class to implement a ViewGroup that resizes dynamically (by adding padding to the bottom) based on whether a keyboard is visible or not. Implementation based on: https://github.com/mikepenz/MaterialDrawer/blob/master/library/src/main/java/com/mikepenz/materialdrawer/util/KeyboardUtil.java An optional viewToHideWhenActivated can be set: this is a View that will be hidden when the keyboard is showing. That can be useful for things like FABs that you don't need when someone is typing. A View using this delegate needs to forward the calls to onAttachedToWindow() and onDetachedFromWindow() to this class. 5287