Android 窗帘(Curtain Menu)效果四之应使用场景和用方法
Awesome Drawer
Introduction
实现Android窗帘拉开折叠效果
Usage
xml布局文件用
<com.hx.curtain.drawer.CurtainContentLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/curtain_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" app:behind_menu="@layout/menu_left" app:content="@layout/layout_curtain_content" app:h_waveCount="5" app:maxRate="0.5" app:v_waveCount="1.1" />监听滑动的系数
CurtainContentLayout curtain_layout = findViewById(R.id.curtain_layout);curtain_layout.setCurtainLayoutListener(new CurtainContentLayout.OnCurtainLayoutListener() { @Override public void onSlide(View caurtainLayout, float slideOffset) { Log.e("CurtainActivity", "slideOffset: " + slideOffset); }});自己设置属性
behind_menumenu后面的布局contentmenu的内容,必需提供这个属性,不然会异常h_waveCount水平方向折叠的波浪个数v_waveCount竖直方向折叠的波浪个数maxRatemenu最大的收缩比
应使用在Menu中,和CurtainContentLayout的各种style预览如下:
loading img….
![
QQ图片20180827232700.gif
QQ图片20180827232654.gif
Bolg
- https://blog.csdn.net/u010949962
Location
- ShenZhen,China
Contacts
- QQ Group: 869593665
- E-mail: 93980584@qq.com
License
Copyright 2018 93980584@qq.comLicensed 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.0Unless required by applicable law or agreed to in writing, softwaredistributed 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 andlimitations under the License.Android1404/AwesomeDrawer
说明
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是摆设,本站源码仅提供给会员学习使用!
7. 如遇到加密压缩包,请使用360解压,如遇到无法解压的请联系管理员
开心源码网 » Android 窗帘(Curtain Menu)效果四之应使用场景和用方法
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是摆设,本站源码仅提供给会员学习使用!
7. 如遇到加密压缩包,请使用360解压,如遇到无法解压的请联系管理员
开心源码网 » Android 窗帘(Curtain Menu)效果四之应使用场景和用方法