Skip to content

alidili/DesignSupportDemo

Repository files navigation

DesignSupportDemo

材料设计支持库Design Support Library的使用

1.简介

Design Support Library是Google在2015年的IO大会上发布的全新Material Design支持库,在这个support库里面主要包含了 8 个新的 Material Design组件,最低支持 Android 2.1。

Widget Name Description
TextInputLayout EditText辅助控件
FloatingActionButton MD风格的圆形按钮
Snackbar 提示框
TabLayout 选项卡
NavigationView DrawerLayout的侧滑界面
CoordinatorLayout 超级FrameLayout
AppBarLayout MD风格的滑动Layout
CollapsingToolbarLayout 可折叠的MD风格ToolbarLayout
以下为 V28 新增组件
MaterialButton Material风格的Button
Chip & ChipGroup 关键字标签组件
MaterialCardView Material风格的CardView
BottomAppBar 底部标题栏

2.使用方法

在app根目录的buil.gradle文件中加入依赖:

implementation 'com.android.support:recyclerview-v7:28.0.0-alpha3'

官方博客

Snackbar提示框

TabLayout选项卡

EditText辅助控件——TextInputLayout

FrameLayout布局的增强版—CoordinatorLayout

可折叠的Toolbar——CollapsingToolbarLayout

Android Design Support Library v28 新增组件详解

License

Copyright (C) 2017 YangLe

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

材料设计支持库Design Support Library的使用

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages