Android-问题
喂请叫我斌哥
这个作者很懒,什么都没留下…
展开
-
Math.sin() 与 Math.cos() 用法
Math.sin() 与 Math.cos() 用法Math.sin(x) x 的正玄值。返回值在 -1.0 到 1.0 之间;Math.cos(x) x 的余弦值。返回的是 -1.0 到 1.0 之间的数;这两个函数中的X 都是指的“弧度”而非“角度”,弧度的计算公式为: 2*PI/360*角度;30° 角度 的弧度 = 2*PI/360*30如何得到圆上每个点的坐标?解决思路:原创 2016-12-28 16:43:41 · 17666 阅读 · 0 评论 -
View旋转中心点
改变View旋转中心点在对Android的View对象使用setRotation方法时,View默认的锚点是其中心位置属性动画怎么绕原点旋转? ObjectAnimator oa = ObjectAnimator.ofFloat(iv, “rotation”, new float[]{0,180}); 这个默认是绕中心点的在Animator中需要通过View.setPivotX和View.se原创 2016-12-28 17:19:38 · 2770 阅读 · 0 评论 -
认识 ViewPager position
首先要熟悉ViewPager .setOnPageChangeListener(new OnPageChangeListener()中的public void onPageScrolled( int position, float positionOffset, int positionOffsetPixels)position : (currentIndex == 0 && position原创 2016-12-28 17:23:40 · 263 阅读 · 0 评论 -
AlertDialog修改title,message,button样式
AlertDialog修改title,message,button样式原创 2017-03-29 10:14:24 · 252 阅读 · 0 评论