Material-Backdrop-Android

Material Backdrop

Github星跟踪图

Material-Backdrop-Android

This library is created based on Backdrop component from material design.Backdrop

alt text
alt text

Usage

  1. Include repository
allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
  1. Include project as local library
dependencies {
	        implementation 'com.github.kishan2612:Material-Backdrop-Android:v1.1.0'
	}
  1. Include the widget in your layout

 <com.evolve.backdroplibrary.BackdropContainer
       android:layout_width="match_parent"
       android:layout_height="match_parent"
       android:id="@+id/backdropcontainer"
       app:menuIcon="@drawable/ic_menu_24px"
       app:closeIcon="@drawable/ic_close_24px"
       app:duration="500">

       <include layout="@layout/backlayer"/>
       <include layout="@layout/frontlayer"/>


   </com.evolve.backdroplibrary.BackdropContainer>

The container must contain only two child or it may throw an Exception.

The developer can customize the backlayer and frontlayer of their choice. Use public methods to show and hide the backlayer.

  1. In onCreate method
 
 backdropContainer =(BackdropContainer)findViewById(R.id.backdropcontainer);

        backdropContainer.attachToolbar(toolbar)
                .dropInterpolator(new LinearInterpolator())
                .dropHeight(height)
                .build();

Customization

app:menuIcon="@drawable/ic_menu_24px" - You can use your own icon or app logo

app:closeIcon="@drawable/ic_close_24px" - You can use your own icon or app logo

app:duration="500" - default duration is 1000ms if duration is not specified

dropInterpolator(new LinearInterpolator()) - You can use own interpolator

dropHeight(height) - The height is sneek height of front layer.(Dp)
eg :

int height= this.getResources().getDimensionPixelSize(R.dimen.sneek_height);

Public Methods

backdropContainer.showBackview();
backdropContainer.closeBackview();

Compatabiliy

Api 16+

ChangeLog

V1.1 :

  crash fixed.

License

MIT License

Copyright (c) 2018 kishan V

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

主要指标

概览
名称与所有者kishan2612/Material-Backdrop-Android
主编程语言Java
编程语言Java (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2018-07-25 08:03:34
推送于2020-08-13 12:40:37
最后一次提交2020-08-13 18:10:36
发布数3
最新版本名称v1.1.0 (发布于 )
第一版名称v1.0 (发布于 )
用户参与
星数106
关注者数7
派生数13
提交数17
已启用问题?
问题数6
打开的问题数1
拉请求数1
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?