<kbd id="5sdj3"></kbd>
<th id="5sdj3"></th>

  • <dd id="5sdj3"><form id="5sdj3"></form></dd>
    <td id="5sdj3"><form id="5sdj3"><big id="5sdj3"></big></form></td><del id="5sdj3"></del>

  • <dd id="5sdj3"></dd>
    <dfn id="5sdj3"></dfn>
  • <th id="5sdj3"></th>
    <tfoot id="5sdj3"><menuitem id="5sdj3"></menuitem></tfoot>

  • <td id="5sdj3"><form id="5sdj3"><menu id="5sdj3"></menu></form></td>
  • <kbd id="5sdj3"><form id="5sdj3"></form></kbd>

    AhbottomnavigationAndroid 底部導(dǎo)航庫(kù)

    聯(lián)合創(chuàng)作 · 2023-09-24 08:57

    Ahbottomnavigation 是采用 Material Design 風(fēng)格設(shè)計(jì)的底部導(dǎo)航庫(kù),要求最小版本SDK為16,支持3~5個(gè)底部Item項(xiàng),可以自行設(shè)置底部每個(gè)Item項(xiàng)的風(fēng)格。

    效果圖:

    使用示例

    Gradle

    // Very soon on JCenter! ;)repositories {
        maven {
            url 'https://dl.bintray.com/aurelhubert/maven/'
        }
    }
    
    dependencies {
        compile 'com.aurelhubert:ahbottomnavigation:0.1.1'}

    XML

    <com.aurelhubert.ahbottomnavigation.AHBottomNavigation        
            android:id="@+id/bottom_navigation"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"/>

    Activity/Fragment

    AHBottomNavigation bottomNavigation = (AHBottomNavigation) findViewById(R.id.bottom_navigation);
    
    // Create items
    AHBottomNavigationItem item1 = new AHBottomNavigationItem("Label One", R.drawable.ic_maps_place, Color.parseColor("#455C65"));
    AHBottomNavigationItem item2 = new AHBottomNavigationItem("Label Two", R.drawable.ic_maps_local_bar, Color.parseColor("#00886A"));
    AHBottomNavigationItem item3 = new AHBottomNavigationItem("Label Three", R.drawable.ic_maps_local_restaurant, Color.parseColor("#8B6B62"));
    
    // Add items
    bottomNavigation.addItem(item1);
    bottomNavigation.addItem(item2);
    bottomNavigation.addItem(item3);
    
    // Set background color
    bottomNavigation.setDefaultBackgroundColor(Color.parseColor("#FEFEFE"));
    
    // Change colors
    bottomNavigation.setAccentColor(Color.parseColor("#F63D2B"));
    bottomNavigation.setInactiveColor(Color.parseColor("#747474"));
    
    // Use colored navigation with circle reveal effect
    bottomNavigation.setColored(true);
    
    // Set listener
    bottomNavigation.setAHBottomNavigationListener(new AHBottomNavigation.AHBottomNavigationListener() {
        @Override
        public void onTabSelected(int position) {
            // Do something cool here...
        }
    });
    瀏覽 22
    點(diǎn)贊
    評(píng)論
    收藏
    分享

    手機(jī)掃一掃分享

    編輯 分享
    舉報(bào)
    評(píng)論
    圖片
    表情
    推薦
    點(diǎn)贊
    評(píng)論
    收藏
    分享

    手機(jī)掃一掃分享

    編輯 分享
    舉報(bào)

    <kbd id="5sdj3"></kbd>
    <th id="5sdj3"></th>

  • <dd id="5sdj3"><form id="5sdj3"></form></dd>
    <td id="5sdj3"><form id="5sdj3"><big id="5sdj3"></big></form></td><del id="5sdj3"></del>

  • <dd id="5sdj3"></dd>
    <dfn id="5sdj3"></dfn>
  • <th id="5sdj3"></th>
    <tfoot id="5sdj3"><menuitem id="5sdj3"></menuitem></tfoot>

  • <td id="5sdj3"><form id="5sdj3"><menu id="5sdj3"></menu></form></td>
  • <kbd id="5sdj3"><form id="5sdj3"></form></kbd>
    a 免费看 | 久久久久麻豆 | 台湾久久| 西西444WWW无码视频 | 操操操综合 |