Icon

A suite of icons for representing concepts, features and actions.

Icon

Maven Central

All

Day Night
Icon component Icon component - dark mode

Small

Day Night
Sm Icon component Sm Icon component - dark mode

Installation

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

Usage

Icons are converted to image vectors and are available as drawables.

They can be used in code and XML.

Example usage in XML


                                                
                                                <ImageView
                                                  android:layout_width="16dp"
                                                  android:tint="@color/bpkSkyGray"
                                                  android:layout_margin="@dimen/bpkSpacingSm"
                                                  app:srcCompat="@drawable/bpk_flight"
                                                  android:layout_height="16dp" />

Example usage in Kotlin


                                                
                                                ImageView(context).apply {
                                                  setImageDrawable(AppCompatResources.getDrawable.getDrawable(context, R.drawable.bpk_flag))
                                                }