第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

別找了啦,俺都藏在這里 Material Design控件軍火庫(kù)集合

標(biāo)簽:
Android

本篇适合哪些人?

  • 刚刚从基于android 4.4以下项目中切出来,还没有用过5.0+新特性

  • 新人入门学点牛逼特效控件

  • 撸一个爱屁屁

本篇包含

  • MaterialDrawer

  • material-menu

  • CoordinatorLayout

  • AppBarLayout

  • CollapsingToolbarLayout

  • DrawerLayout

  • MaterialDesignLibrary

  • material

  • MaterialDesignInXamlToolkit

我先抽一口,再和你讲. 啊~舒坦.

5ba4fcbf0001b7a201180119.jpg


MaterialDrawer

https://github.com/mikepenz/MaterialDrawer
提供比NavigationView 更好的交互效果的侧滑菜单项

5ba4fcc000011f8f06000355.jpg

MaterialDrawer.png


material-menu

提供带切换效果的Ioc
github:material-menu

5ba4fcc00001d36c00370023.jpg

material-menu.gif


CoordinatorLayout && AppBarLayout

  • 如果你想做出嵌套View滚动效果那么必须用它来实现

  • 他和CoordinatorLayout是一对的.CoordinatorLayout的直接子View必须是它.因为AppBarLayout.ScrollingViewBehavior对子View滑动响应事件直接做了处理.
    在另外一个嵌套的View中必须设置app:layout_behavior="@string/appbar_scrolling_view_behavior"这个特殊的值.也可以自定义Behavior.

  • 具体用法参考:泡在网上的日子

  • CoordinatorLayout的使用如此简单

  • CoordinatorLayout布局的使用方式

CollapsingToolbarLayout

实现视差滚动动画和Toolbar滚动

5ba4fcc20001cbf604960046.jpg

CollapsingToolbarLayout .gif


CoordinatorLayout与CollapsingToolbarLayout实现视差滚动动画和Toolbar滚动


DrawerLayout

提供类似 SlidingMenu的官方支持库(侧滑菜单)

5ba4fcc40001384401290039.jpg

1.gif

<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <android.support.v4.widget.DrawerLayout
        android:id="@+id/simple_navigation_drawer"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <!--内容视图-->
        <include
            android:id="@+id/tv_content"
            layout="@layout/drawer_content_layout"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />

        <!--左侧滑菜单栏-->
        <include
            layout="@layout/drawer_menu_layout"
            android:layout_width="250dp"
            android:layout_height="match_parent"
            android:layout_gravity="start" />

        <!--右侧滑菜单栏-->
        <include
            layout="@layout/drawer_menu_layout"
            android:layout_width="250dp"
            android:layout_height="match_parent"
            android:layout_gravity="end" />


    </android.support.v4.widget.DrawerLayout></RelativeLayout>

--

discreteSeekBar

https://github.com/AnderWeb/discreteSeekBar
百分比滑动条

5ba4fcc60001258706390213.jpg


MaterialDesignLibrary

https://github.com/navasmdc/MaterialDesignLibrary
一个支持兼容到android2.2 的依赖库.很强大. 详情见github.

5ba4fcc60001789504640099.jpg


material

https://github.com/rey5137/material
一大波封装完整的组件 直接调用就可以了


MaterialDesignInXamlToolkit

https://github.com/ButchersBoy/MaterialDesignInXamlToolkit
同上都是组件军火库

5ba4fcd60001914100300038.jpg

原文链接:http://www.apkbus.com/blog-719059-63065.html

點(diǎn)擊查看更多內(nèi)容
TA 點(diǎn)贊

若覺得本文不錯(cuò),就分享一下吧!

評(píng)論

作者其他優(yōu)質(zhì)文章

正在加載中
  • 推薦
  • 評(píng)論
  • 收藏
  • 共同學(xué)習(xí),寫下你的評(píng)論
感謝您的支持,我會(huì)繼續(xù)努力的~
掃碼打賞,你說(shuō)多少就多少
贊賞金額會(huì)直接到老師賬戶
支付方式
打開微信掃一掃,即可進(jìn)行掃碼打賞哦
今天注冊(cè)有機(jī)會(huì)得

100積分直接送

付費(fèi)專欄免費(fèi)學(xué)

大額優(yōu)惠券免費(fèi)領(lǐng)

立即參與 放棄機(jī)會(huì)
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)

舉報(bào)

0/150
提交
取消