1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Kotlin】APIレベル 28 での変更点 - BottomNavigationView

Posted at

Android SDK のAPIレベル 28で「BottomNavigationView」の変更点があったので備忘録として記事にします。

BottomNavigationMenuViewの取得

これまで**「mMenuView」を指定していた所が「menuView」**に変わります。

val field = BottomNavigationView::class.java.getDeclaredField("mMenuView")
field.isAccessible = true
menuView = field.get(this)

↓↓↓

val field = BottomNavigationView::class.java.getDeclaredField("menuView")  // <- ここ
field.isAccessible = true
menuView = field.get(this)

シフトモードの無効

これまで**「setShiftingMode(false)」を指定していた所が「setShifting(false)」**に変わります。

item.setShiftingMode(false)

↓↓↓

item.setShifting(false)

以上です。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?