自定义控件
文章平均质量分 82
whq_sky
Android小菜鸟...叽叽叽....
展开
-
自定义属性
自定义属性 布局文件 com.example.administrator.myapplication.numberAddSubView android:id="@+id/numberAddView" whq:number_background="@drawable/add_sub_number_view_bg" whq:minValue="1"原创 2016-12-30 16:55:18 · 173 阅读 · 0 评论 -
水位下降
com.atsgg.customviewdemo09.WaveView android:layout_width="match_parent" android:layout_height="match_parent"/> public class WaveView extends View { private Paint mPaint;// 画原创 2017-01-01 16:59:37 · 342 阅读 · 0 评论 -
自定义listview下拉刷新
自定义listview下拉刷新 自定义progressBar android:fromDegrees=“0” android:pivotX=“50%” android:pivotY=“50%” android:toDegrees=“360”> 表示内部环的比例,环的宽度/2.5=内部环得宽度 android:t原创 2016-12-30 17:07:29 · 137 阅读 · 0 评论 -
自定义圆形进度条
自定义圆形进度条 */ public class RoundProgress extends View { // // 属性 // private int roundColor = Color.GRAY; // private int roundProgressColor = Color.RED; // pr原创 2016-12-30 17:03:47 · 277 阅读 · 0 评论 -
自定义ProgressBar
自定义ProgressBar 在drawable下写rotate动画xml文件 xml version="1.0" encoding="utf-8"?> rotate xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@drawable/backgroud_l原创 2016-12-30 16:57:44 · 134 阅读 · 0 评论 -
RecyclerView的定制
RecyclerView的定制 public class CustomRecyclerView extends RecyclerView { public CustomRecyclerView(Context context) { this(context, null); } public CustomRecyclerView(Context co原创 2016-12-30 17:09:30 · 205 阅读 · 0 评论 -
自定义可下拉上拉的scrollView
自定义可下拉上拉的scrollView public class MyScrollView extends ScrollView { public MyScrollView(Context context) { super(context); } public MyScrollView(Context context, Attrib原创 2016-12-30 17:04:53 · 272 阅读 · 0 评论 -
ScrollView简单定制
ScrollView简单定制 public class PersonalScrollView extends ScrollView{ public PersonalScrollView(Context context) { super(context); } public PersonalScrollView(Cont原创 2016-12-30 17:02:16 · 257 阅读 · 0 评论 -
Popupwindow的定制
Popupwindow的定制 public class MyPopupwindow extends PopupWindow{ private Context mContext; private View view; private Button btn_cancel,btn_sure; public MyPopu原创 2016-12-30 17:01:09 · 190 阅读 · 0 评论 -
流布局Flowlayout
流布局Flowlayout public class FlowLayout extends ViewGroup { public FlowLayout(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); //原创 2016-12-30 16:59:56 · 351 阅读 · 0 评论 -
WIN10圆形进度条
com.atsgg.customviewdemo09.WaveView android:layout_width="match_parent" android:layout_height="match_parent"/> public class WaveView extends View { private Paint mPaint;/原创 2017-01-01 17:11:56 · 1558 阅读 · 0 评论