- 博客(10)
- 收藏
- 关注
原创 自定义view知识点
public class WaterView extends View { private Paint mBottomPaint; private Paint mTopPaint; private Path mPathBottom; private Path mPathTop; public WaterView(Context context) { ...
2018-10-08 08:11:10
198
原创 MVP框架
public interface iPresenter { //请求成功后 void success(List<MyBean.ResultBean.NearbyCinemaListBean> list); void error(String error); } mypresenter public class MyPresenter implements ...
2018-09-20 14:40:46
217
原创 自定义view画图,画笔设置
//矩形 canvas.drawRect("左边距离左边框的距离","上边距离上边框的距离","右边距离左边框的距离","下边距离上边框的距离","画笔"); //线 canvas.drawLine("线的起始x坐标","起始y坐标","终止x左边","终止y坐标","画笔"); //文字 canvas.dr
2018-09-02 19:52:21
269
原创 画图柱形图
public class MyScondView extends View { private Paint xyPaint; private Paint weekPaint; private Paint zPaint; private int width_num=50; private int height_num=0; private Paint...
2018-09-02 19:51:42
239
原创 多条目类型获取
adapter根据图片的路径字符串判断图片数量 @Override public int getItemViewType(int position) { String image0 = list.get(position).getImage0(); String image1 = list.get(position).getImage1(); String image...
2018-08-24 16:34:32
234
原创 多条目加载
private PullToRefreshListView pull_list; private NetUtils instance = NetUtils.getInstance(); private String URL = "http://www.xieast.com/api/news/news.php?page="; private int page = 1; private NewsB...
2018-08-24 15:57:14
174
原创 多条加载获取数据,设置适配器,上拉下拉加载
public class ShowActivity extends AppCompatActivity implements NetUtils.NetCallback, AdapterView.OnItemClickListener { private PullToRefreshListView pullList; private List<Result.ResultBe...
2018-08-23 09:01:20
424
原创 csnd-update
var ug=""; $scope.upShow=false; $scope.upGood=function(uname){ $scope.upShow=true;//回显 //循环找到名字相同的对象 for (var i = 0; i < $scope.goods.length; i++) { if ($sc...
2018-05-30 19:35:54
327
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人