自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

转载 实现跟随手指移动的小球—跟随移动颜色变化哦!

实现的功能:手指在屏幕上滑动,小球始终跟随手指移动。实现的思路:1)自定义View,在onDraw中画圆作为小球;2)重写自定义View的onTouchEvent方法,记录触屏坐标,用新的坐标重新绘制小球;3)在布局中引用自定义View布局,运行程序,实现跟随手指移动效果。关键技术点:自定义View应用、触摸事件处理、canvas绘图、Paint应用。     

2017-11-30 09:30:15 1474 1

转载 XUtils结合使用的登录和注册

这是登录页面的xml界面  LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_main" android:layout_widt

2017-11-28 18:45:05 681

原创 RecyclerView和购物车的简单结合使用

首先先导入依赖:       compile 'com.squareup.okhttp3:okhttp:3.9.0'compile 'com.squareup.okhttp3:logging-interceptor:3.9.0'compile 'com.google.code.gson:gson:2.8.2'compile 'com.android.support:recyclerv

2017-11-20 19:44:58 1172

转载 自定义View画圆、直线、矩形

这是我们的效果图。。。。下面是代码。。。。。。首先我们先从xml开始com.bwie.test.demo2_view.MyView android:id="@+id/my_view" android:layout_width="wrap_content" android:layout_height="wrap_content"/>这是 我们自定义

2017-10-31 14:34:51 631

转载 XRecyclerView 的简单使用

首先是导入依赖compile 'com.jcodecraeer:xrecyclerview:1.3.2'compile 'com.youth.banner:banner:1.4.9'compile 'com.github.bumptech.glide:glide:3.7.0'compile files('libs/universal-image-loader-1.9.3.jar')

2017-10-25 19:13:11 584

转载 属性动画 小球从左上角到右下角运动

activity.xml中写com.bwie.test.yuemoni.ViewClass android:id="@+id/Bull" android:layout_width="wrap_content" android:layout_height="wrap_content" />创建一个类ViewClass 继承Viewimport and

2017-10-25 15:22:57 1314

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除