基于Maven远程仓库的第一个控件(控件阴影效果)
来源:互联网 发布:drcom校园网客户端mac 编辑:程序博客网 时间:2024/05/16 14:05
请注明出处http://blog.csdn.net/qq_23179075/article/details/71244693
描述: 一个控件阴影效果,支持阴影大小和颜色设置,可以设置控件上下的阴影;
使用方式:在build.gradle中加入以下代码
compile 'com.zhengliang:shadow-view:1.0.1'
顶部阴影效果
底部阴影效果
使用方式xml:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:id="@+id/tv_test" android:layout_width="match_parent" android:layout_height="100dp" android:background="#FF4567" android:gravity="center" android:text="Hello World!" android:layout_centerInParent="true" /> <com.example.shadowviewlibrary.CustomShadowView android:id="@+id/shadow_view" android:layout_width="wrap_content" android:layout_height="wrap_content" app:shadow_color="@color/colorPrimary" app:shadow_fuzzy_radius="25" app:shadow_height="10dp" app:shadow_position="down" app:view_id="@id/tv_test" /></RelativeLayout>
如果要给某个控件加这个阴影效果,必须将要加的控件和该控件放在在RelativeLayout
中
源码地址:https://github.com/azhengyongqin/shadow-view
0 0
- 基于Maven远程仓库的第一个控件(控件阴影效果)
- 控件的阴影效果
- android 控件阴影效果
- 控件阴影效果
- android控件阴影效果
- QT-控件阴影效果
- Qt 控件添加阴影效果
- [android] 通过xml文件设置控件的阴影效果
- 修改nav的控件阴影等效果 传递字典
- Android之炒鸡简单实现控件的阴影效果
- Qt quick中,控件阴影效果
- Android给布局、控件加阴影效果
- iOS开发之UI控件阴影效果
- Siow写的第一个控件
- 我自己写的第一个控件
- 创建的第一个Listbox 控件
- 第一个Activety控件的响应
- 远程maven仓库的搭建
- LaTex数学公式
- GCD的使用小结
- 一些不是特别常用的linux命令
- 僵尸进程和孤儿进程
- 欢迎使用CSDN-markdown编辑器
- 基于Maven远程仓库的第一个控件(控件阴影效果)
- PAT1001. A+B Format (20)
- c++ typeid对多种类型名称的输出
- Mybatis获取插入记录的自增长ID
- Win10+64位+python2.7+Xgboost安装
- Opencv Error:Assertion failed(size.with>0&&size.height>0) in imshow
- javax.xml.validation.SchemaFactoryConfigurationError: Provider for class javax.xml.validation.Schema
- 南阳理工acm 456 邮票分你一半(常规动态规划)
- 工厂方法模式(Factory Method)