- 博客(33)
- 收藏
- 关注
原创 car 简单应用
public class MainActivity extends AppCompatActivity implements IView, DView { List groupBeen = new ArrayList<>(); List> childBeen = new ArrayList<>(); @BindView(R.id.edit) TextView edi
2017-12-21 11:38:29
287
原创 android GreenDAO3.2.2简单使用
首先添加相应依赖等配置:// In your root build.gradle file:buildscript { repositories { jcenter() mavenCentral() // add repository } dependencies { classpath 'com.android.t
2017-12-01 09:49:00
303
原创 22222222
image = (ImageView) findViewById(R.id.images);ObjectAnimator animator = ObjectAnimator.ofFloat(image, "translationX", 0f, 300f);animator.setDuration(3000);animator.start();animator.addListener
2017-11-23 11:35:45
373
原创 android fragment动态显示隐藏
public class MainActivity extends AppCompatActivity implements View.OnClickListener { private FrameLayout frameLayout; private Button btnLogin; private Button btnZhuCe; private LoginF
2017-11-22 10:21:21
2967
原创 android 二级列表实现购物车
我把购物车写在了fragment里面 INewView是一个接口,懂MVP的应该都知道public class CarFragment extends Fragment implements INewView{ private View view; private ExpandableListView exListView; public CheckBox allC
2017-11-22 09:38:04
557
原创 自己方便使用 mvp接口
public interface CallBack { void onSuccess(String tag, Object o); void onFailed(String tag, Exception e);}public interface INewView { void success(String tag, Object o); vo
2017-11-19 18:45:46
234
原创 MVP v层
public class MainActivity extends AppCompatActivity implements IView{ private XRecyclerView rv; private ArrayList lists; private RecyclerViewAdapter adapter; private NewsPresenter pre
2017-11-12 20:08:44
267
原创 MVP p层
public class NewsPresenter { private IView iView; public void attachView(IView iView){ this.iView=iView; } public void getNews(int num){ Map map = new HashMap<>();
2017-11-12 20:06:47
627
原创 Okhttp封装
public class OkHttpUtil { private static volatile OkHttpUtil instance; private static Handler handler=new Handler(); private OkHttpUtil(){ } public static OkHttpUtil getInstance(){
2017-11-12 20:05:45
170
原创 recyclerview适配器
public class RecyclerViewAdapter extends RecyclerView.Adapter{ private Context context; private List list; private OnItemClickListener listener; private OnItemLongClickListener llisten
2017-11-12 20:04:58
178
原创 二维码
//扫描二维码 Intent intent = new Intent(MainActivity.this, CaptureActivity.class); startActivityForResult(intent, REQUEST_CODE);
2017-11-06 08:08:42
190
原创 android 自定义View 流试布局简单例子
public class TextView extends ViewGroup { private int size; private int widthSize; public TextView(Context context) { super(context); } public TextView(Context context,
2017-11-05 19:20:08
210
原创 android 自定义View 梯形布局
public class TextView extends ViewGroup { private int size; public TextView(Context context) { super(context); } public TextView(Context context, AttributeSet attrs) {
2017-11-05 19:14:27
3801
原创 android 自定义View 稍微好看一点的圆形进度条
public class RoundProgressBar extends View { private Paint paint; /** * 圆环的颜色 */ private int roundColor; /** * 圆环进度的颜色 */ private int roundProgressColor;
2017-11-05 19:08:47
199
原创 android 自定义View简单的ProgressView圆形进度条
MainActivitypublic class MainActivity extends AppCompatActivity { private Button btnAdd; private ProgressView pv; private static final int FLAG = 0x123; private Handler handl
2017-11-05 19:04:29
376
原创 android 购物车加减器功能代码
//AddDeleteView public class AddDeleteView extends LinearLayout { private OnAddDelClickListener listener; private EditText etNumber; public AddDeleteView(Context context) {
2017-11-01 20:30:46
511
原创 angularjs订单管理增删改查全
html>html ng-app="OrderApp">head> meta charset="UTF-8"> title>订单管理title> script type="text/javascript" src="jquery.1.12.4.js">script> script type="text/javascript" src="angular-1.3.0
2017-10-25 18:57:35
431
原创 aj学生管理系统
var app=angular.module("myApp",["ngRoute"]); var user=[ { "id":1, "name":"小明", "pwd":111,
2017-10-25 11:04:02
315
原创 aj增删改查完整版1
实现表格的增删改查 .add{ position:relative; top:-40px; left:1000px; } 管理信息: 搜索: 添加 姓名 年龄 城市 操作 {{x.
2017-10-25 11:00:28
390
原创 aj商品增删改查
> html lang="en"> head> meta charset="UTF-8"> title>Titletitle> style> table { border-collapse: collapse; } td, th {
2017-10-25 08:45:55
347
原创 aj基本增删改查
> html> head> meta charset="UTF-8"> title>综合练习title> style> .addUser{ width: 100px;height: 40px;font-size: 18px;background-
2017-10-25 08:41:21
244
原创 aj球员查询和添加
var app=angular.module("myapp",[]); app.controller("myCtrl",function($scope){ $scope.h=false;//显示和隐藏添加列表 $scope.persons=[];//存放添加的内容 $scope.xz=function(){//新增球员的点击事件点击列表出现
2017-10-25 08:39:55
234
原创 网页框架
html>html ng-app="myApp">head> meta charset="UTF-8"> script type="text/javascript" src="jquery.1.12.4.js">script> script type="text/javascript" src="angular-1.3.0.js">script> script
2017-10-25 08:36:44
322
原创 js简单案例
/* 字体变大 变红*/ span.change:hover{ color: red; font-size: 50px; } /* 旋转*/ a.change:hover{ color: indigo; -webkit-transform:
2017-10-09 08:01:21
568
原创 PullToRefreshListView绘制头布局
xlv = (PullToRefreshListView) view.findViewById(R.id.xlv);//加载头布局ListView listView = xlv.getRefreshableView();listView.addHeaderView(inflate);
2017-09-21 19:53:41
200
原创 无限轮播加点
public class MFragment1 extends Fragment{ private View view; private ViewPager vvp; List list = new ArrayList<>(); private ListView xl; private Madapter adapter; private MM mm;
2017-09-21 19:40:57
212
原创 listview多条目加载简单应用
public class MainActivity extends AppCompatActivity implements XListView.IXListViewListener{ private XListView xlv; List list = new ArrayList private MAdapter adapter; private
2017-09-21 19:06:27
194
原创 HorizontalScrollView横向滑动静态方法
public class MainActivity extends FragmentActivity implements View.OnClickListener{ private ViewPager vp; private String[] title; private ArrayList textList; LinearLayout llHead;
2017-09-21 18:42:43
213
原创 PullToRefreshListView简单使用
public class MFragment2 extends Fragment{ private View view; private PullToRefreshListView plv; ArrayList list = new ArrayList<>(); private Handler handler; @Nullable @Overrid
2017-09-21 18:40:32
208
原创 111
public class ViewPagerIndacaterActivity extends AppCompatActivity implements View.OnClickListener{ @BindView(R.id.ll_head) LinearLayout llHead; @BindView(R.id.hsv) HorizontalScrollVie
2017-09-18 08:30:04
409
原创 无限轮播异步加载
public class MainActivity extends AppCompatActivity { List list = new ArrayList<>(); @butterknife.BindView(R.id.vp) ViewPager vp; private Madapter adapter; private ImageView iv;
2017-09-18 08:16:57
445
原创 Android之侧滑菜单DrawerLayout的使用
布局文件xml version="1.0" encoding="utf-8"?>android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/v4_drawerlayout" android:layout_wi
2017-09-07 14:27:00
237
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人