object(mysqli_result)#15 (5) { ["current_field"]=> int(0) ["field_count"]=> int(25) ["lengths"]=> NULL ["num_rows"]=> int(1) ["type"]=> int(0) } 使用androidx的BottomNavigationView - 程序員論壇 - Powered by Discuz!

程序員論壇

標題: 使用androidx的BottomNavigationView [打印本頁]

作者: fire002    時間: 2020-10-14 11:03
標題: 使用androidx的BottomNavigationView
使用androidx的BottomNavigationView
BottomNavigationView using androidx

使用androidx,您必須切換到材料組件庫中的BottomNavigationView。在build.gradle中添加依賴項
Using androidx you have to switch to BottomNavigationView in the Material components library. Add the dependency in build.gradle
  1. dependencies {
  2.    //..
  3.    implementation 'com.google.android.material:material:1.2.1'
  4. }
複製代碼
使用材質主題並添加您的佈局:
use a material theme and add in your layout:
  1. <com.google.android.material.bottomnavigation.BottomNavigationView
  2. .../>
複製代碼





歡迎光臨 程序員論壇 (http://program.thesmartfire.com/) Powered by Discuz! X2.5