Side-Menu.Android的应用

本文介绍了如何在Android应用中使用Side-Menu.Android框架,这是一个由Yalantis开发的侧滑菜单。文章提供了官方使用教程,包括依赖添加、菜单创建和自定义图标的方法,并分享了作者在实际开发中的体验和感受。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Side-Menu.Android的应用

最近学习了一波android的自带组件,发现原始的ui真是巨丑无比,而自己水平有限,那些超炫酷的交互又不知如何下手,然后就着手寻找一些开源的ui框架,映入眼帘的是交互炫酷的Side-Menu.Android。


简介

Side-Menu.Android是Yalantis 出品的分类侧滑菜单,同时也发现了一款同样是Yalantis出品的Phoenix Pull-to-Refresh-Android,这里不细说,附上github,实现比较简单,,有兴趣的同学可以自行使用。
顺便提醒一下,Yalantis官网放有很多很好看的开源项目哦。

展示

github地址 —— [ Side-Menu.Android ]

github地址 —— [ Phoenix Pull-to-Refresh-Android ]

Yalantis官网 —— [ Yalantis ]

官方使用介绍

First of all you have to upload animation submodule with git submodule update –init command

Or you can add gradle dependency with command :

dependencies {
    compile 'com.github.yalantis:Side-Menu.Android:1.0.1'
}

and command:

repositories {
    maven {
        url "https://jitpack.io"
    }
}
dependencies {
    compile 'com.github.ozodrukh:CircularReveal:(latest-release)@aar'
}

To add gradle dependency you need to open build.gradle (in your app folder,not in a project folder) then copy and add the dependencies there in the dependencies block;

for CircularReveal module

After you have to create special overlay layout to show in behind current Circular Reveal animated view. And to add all items to menu you have to add all of them into LinearLayout

    <android.support.v4.widget.DrawerLayout
        xmlns:android="htt
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值