Android酷炫实用的开源框架(UI框架)

Android酷炫实用的开源框架(UI框架)

前言

忙碌的工作终于可以停息一段时间了,最近突然有一个想法,就是自己写一个app,所以找了一些合适开源控件,这样更加省时,再此分享给大家,希望能对大家有帮助,此博文介绍的都是UI上面的框架,接下来会有其他的开源框架(如:HTTP框架、DB框架)。

1.Side-Menu.Android
分类侧滑菜单,Yalantis 出品。
项目地址:https://github.com/Yalantis/Side-Menu.Android
image
2.Context-Menu.Android
可以方便快速集成漂亮带有动画效果的上下文菜单,Yalantis出品。
项目地址:https://github.com/Yalantis/Context-Menu.Android
image
3.Pull-to-Refresh.Rentals-Android
提供一个简单可以自定义的下拉刷新实现,Yalantis 出品。
项目地址:https://github.com/Yalantis/Pull-to-Refresh.Rentals-Android
image
4.Titanic
可以显示水位上升下降的TextView
项目地址:https://github.com/RomainPiel/Titanic
image
5.AndroidSwipeLayout
滑动Layout,支持单个View,ListView,GridView
项目地址:https://github.com/daimajia/AndroidSwipeLayout
Demo地址:Download Demo
image
6.Android Typeface Helper
可以帮你轻松实现自定义字体的库
项目地址:https://github.com/norbsoft/android-typeface-helper
image
7.android-lockpattern
Android的图案密码解锁

项目地址:https://code.google.com/p/android-lockpattern/

Demo地址:https://play.google.com/store/apps/details?id=group.pals.android.lib.ui.lockpattern.demo

文档介绍:https://code.google.com/p/android-lockpattern/wiki/QuickUse

APP示例:Android开机的图案密码解锁,支付宝的密码解锁
image
8.ToggleButton
状态切换的 Button,类似 iOS,用 View 实现
项目地址:https://github.com/zcweng/ToggleButton
image
9.WilliamChart
绘制图表的库,支持LineChartView、BarChartView和StackBarChartView三中图表类型,并且支持 Android 2.2及以上的系统。
项目地址:https://github.com/diogobernardino/WilliamChart
Demo地址:https://play.google.com/store/apps/details?id=com.db.williamchartdemo
Demo项目:https://github.com/diogobernardino/WilliamChart/tree/master/sample
image
10.实现滑动ViewPager渐变背景色
项目地址:https://github.com/TaurusXi/GuideBackgroundColorAnimation
image
11.Euclid
用户简历界面,Yalantis 出品。
项目地址:https://github.com/Yalantis/Euclid
image
12.InstaMaterial
Instagram的一组Material 风格的概念设计

项目地址:https://github.com/frogermcs/InstaMaterial
image
13.SpringIndicator

使用bezier实现粘连效果的页面指示

项目地址:https://github.com/chenupt/SpringIndicator
image
14.BezierDemo

仿qq消息气泡拖拽消失的效果。

项目地址:https://github.com/chenupt/BezierDemo
image
15.FoldableLayout

折叠的信纸被打开一样的动画效果

项目地址:https://github.com/alexvasilkov/FoldableLayout
image
16.Taurus
下拉刷新,Yalantis 出品。(是不是有点似曾相识呢?)
项目地址:https://github.com/Yalantis/Taurus
image
17.PersistentSearch

在点击搜索的时候控件在原有位置显示输入框。

项目地址:https://github.com/Quinny898/PersistentSearch
image
18.circular-progress-button

带进度显示的Button

项目地址: https://github.com/dmytrodanylyk/circular-progress-button
image
19.discrollview

当上下滚动的时候子元素会呈现不同动画效果的scrollView,网页上称之为:视差滚动

项目地址: https://github.com/flavienlaurent/discrollview
image
20.sweet-alert-dialog

一个带动画效果的自定义对话框样式

项目地址:https://github.com/pedant/sweet-alert-dialog
image
21.android-floating-action-button

Material Desig风格的浮动操作按钮

项目地址:https://github.com/futuresimple/android-floating-action-button
image
22.android-collapse-calendar-view

可以在月视图与周视图之间切换的calendar控件

项目地址:https://github.com/blazsolar/android-collapse-calendar-view
image
23.NumberProgressBar

个简约性感的数字进度条

项目地址:https://github.com/daimajia/NumberProgressBar
image
24.CircularProgressView

CircularProgressView 是通过自定义view的方式实现的Material风格的加载提示控件,兼容任何版本。

项目地址:https://github.com/rahatarmanahmed/CircularProgressView
image
25.OriSim3D-Android

opengl 实现了各种折纸效果,模拟了从一张纸折叠成一条船的整个过程

项目地址: https://github.com/RemiKoutcherawy/OriSim3D-Android
image
转载请注明:Android开发中文站 » Android酷炫实用的开源框架(UI框架)

  • 292
    点赞
  • 1605
    收藏
    觉得还不错? 一键收藏
  • 16
    评论
要在 Android 项目中使用 QMUI Android,可以按照以下步骤进行: 1. 将 QMUI Android 引入项目中,可以使用 Gradle,将以下代码添加到 `build.gradle` 文件中: ```groovy dependencies { implementation 'com.qmuiteam:qmui:2.1.0' } ``` 2. 在 Application 类中初始化 QMUI,可以在 `onCreate()` 方法中添加以下代码: ```java public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); QMUI.init(this); } } ``` 3. 在布局文件中使用 QMUI 的控件,例如: ```xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:qmui="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <com.qmuiteam.qmui.widget.QMUITopBarLayout android:id="@+id/topbar" qmui:layout_constraintTop_toTopOf="parent" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize"/> <com.qmuiteam.qmui.widget.QMUIRoundButton android:id="@+id/button" android:text="Button" android:layout_width="wrap_content" android:layout_height="wrap_content"/> </LinearLayout> ``` 在这个例子中,我们使用了 `QMUITopBarLayout` 和 `QMUIRoundButton`,它们都是 QMUI 的控件,可以通过 `xmlns:qmui="http://schemas.android.com/apk/res-auto"` 引入 QMUI 的命名空间。 在 Activity 类中,可以通过以下方式来获取控件的实例: ```java public class MyActivity extends AppCompatActivity { private QMUITopBarLayout mTopBarLayout; private QMUIRoundButton mButton; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_my); mTopBarLayout = findViewById(R.id.topbar); mButton = findViewById(R.id.button); // 设置 TopBar 的标题 mTopBarLayout.setTitle("My Activity"); } } ``` 以上就是使用 QMUI Android 的基本步骤,更多的 QMUI 控件和用法可以参考官方文档。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 16
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值