Nudger

Nudgers allow users to quickly specify a value within a given range.

Nudger

Maven Central Class reference Source code

All

Day Night
Nudger component Nudger component - dark mode

Installation

Backpack Android is available through Maven Central. Check the main Readme for a complete installation guide.

Usage

The Nudger component can be used in both XML and Kotlin

Example of a nudger in XML


                                                
                                                <net.skyscanner.backpack.nudger.BpkNudger
                                                  android:layout_width="wrap_content"
                                                  android:layout_height="wrap_content"
                                                  app:nudgerMaxValue="10"
                                                  app:nudgerMinValue="0"
                                                  app:nudgerValue="5" />

Example of a nudger in Kotlin


                                                
                                                import net.skyscanner.backpack.nudger.BpkNudger
                                                
                                                BpkNudger(context).apply {
                                                   maxValue = 10
                                                   minValue = 0
                                                   value = 5
                                                }