![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小控件
Monkey_zzh
这个作者很懒,什么都没留下…
展开
-
ScrollView+渐变头布局
首先自定义ScrollView 代码如下:public class ListenerScrollView extends NestedScrollView { private ScrollViewListener scrollViewListener = null; public ListenerScrollView(Context context) { super(context); } public ListenerScrollView(C...原创 2020-11-09 11:35:23 · 110 阅读 · 0 评论 -
自定义View
//MyLinearLayoutpublic class MyLinearLayout extends LinearLayout { private TextView textView1, textView2; private ImageView imageView; public MyLinearLayout(Context context) {原创 2017-09-21 20:52:18 · 289 阅读 · 0 评论 -
photoView图片多点操控
添加依赖: compile 'com.github.chrisbanes.photoview:library:1.2.4'布局文件:<test.com.up_yuekao0726.HackViewPager android:id="@+id/hvp" android:layout_width="wrap_content" android原创 2017-07-26 17:04:37 · 402 阅读 · 0 评论 -
百度集成开发与发布版SHA1获取
开发版:keytool -v -list -keystore debug.keystore发布版命令相同 不过是在自己创建的包里面原创 2017-08-24 21:30:31 · 183 阅读 · 0 评论 -
Item加渐变动画
public static void rotateyAnimRun(View view){ ObjectAnimator// .ofFloat(view, "alpha", 0.0F, 1.0F)// .setDuration(5000)// .start();}然后在viewHoder中调用这个方法就可以原创 2017-08-24 21:08:11 · 210 阅读 · 0 评论 -
购物车加减按钮
attrs.xmlxml version="1.0" encoding="utf-8"?> name="AmountView"> name="btnWidth" format="dimension" /> name="tvWidth" format="dimension" /> -->原创 2017-08-06 20:28:53 · 650 阅读 · 0 评论 -
RadioButton+FrameLayout
首先是布局,主页面的布局:实现的是底部四个按钮,点击按钮切换framentxml version="1.0" encoding="utf-8"?>xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layou原创 2017-07-27 10:35:55 · 516 阅读 · 0 评论 -
城市三级列表
添加依赖:compile 'liji.library.dev:citypickerview:0.7.0'布局文件:<LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="50dp">原创 2017-07-26 17:26:19 · 1007 阅读 · 0 评论 -
RecyclerView点击事件
导入依赖;annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.0'compile 'com.jakewharton:butterknife:8.8.0'testCompile 'junit:junit:4.12'compile 'com.android.support:recyclerview-v7:25.3.原创 2017-08-10 21:16:46 · 344 阅读 · 0 评论 -
XRecyclerView上拉刷新下拉加载
到依赖:compile 'com.jcodecraeer:xrecyclerview:1.3.2'布局文件:(item布局根据自己需要的定义)<com.jcodecraeer.xrecyclerview.XRecyclerView android:id="@+id/recyclerview" android:layout_width="fill_parent原创 2017-08-10 21:08:00 · 450 阅读 · 0 评论 -
PopupWindow
布局:xml version="1.0" encoding="utf-8"?>xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:orientation="vertical" android:layout_hei原创 2017-07-23 20:23:30 · 221 阅读 · 0 评论