Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Material Components for Android 1.0.0 → 1.1.0

Nabe
May 15, 2019

Material Components for Android 1.0.0 → 1.1.0

Nabe

May 15, 2019
Tweet

More Decks by Nabe

Other Decks in Programming

Transcript

  1. .BUFSJBM#VUUPO5PHHMF(SPVQ <com.google.android.material.button.MaterialButtonToggleGroup android:id="@+id/singleSelectToggleGroup" android:layout_width="wrap_content" android:layout_height="wrap_content" app:singleSelection="true"> <com.google.android.material.button.MaterialButton style=“?attr/materialButtonOutlinedStyle" android:layout_width="wrap_content" android:layout_height="wrap_content"

    android:text="Select1" /> <com.google.android.material.button.MaterialButton style="?attr/materialButtonOutlinedStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Select2" /> </com.google.android.material.button.MaterialButtonToggleGroup>
  2. #PUUPN/BWJHBUJPO // show only badge bottomNavigation.showBadge(R.id.navigation_item_1) // show badge with

    number val badgeDrawable = bottomNavigation.showBadge(R.id.navigation_item_2) badgeDrawable.apply { number = 5000 maxCharacterCount = 5 // default is 4 } // dismiss badge bottomNavigation.removeBadge(R.id.navigation_item_1)
  3. 4OBDLCBS Snackbar.make(view, "Message", Snackbar.LENGTH_LONG) .setAction("Action") { // Some action }

    .setAnchorView(fab) .show() w TFU"ODIPS7JFX WJFX  w FH'MPBUJOH"DUJPO#VUUPO
  4. 0UIFS w 4VQQPSUT.BUFSJBM5IFNJOH $PMPS 4IBQF  5ZQPHSBQIZ %BSL5IFNF  w

    .BUFSJBM%JBMPH#VJMEFS w 4FMFDUJPO$POUSPM 4XJUDI 3BEJP#VUUPO  5PHHMF#VUUPO  w #PUUPN4IFFU w "OENPSFʜ