- 博客(19)
- 收藏
- 关注
翻译 banner轮播图
@Overrideprotected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main2); banner = findViewById(R.id.banner); imageA...
2019-05-05 10:38:49
87
翻译 自定义流式布局
public class MyView extends ViewGroup { private int mleftMargin=20; private int mtopMargin=20; public MyView(Context context) { super(context); } public MyView(Context con...
2019-05-05 10:07:17
145
翻译 搜索
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ButterKnife.bind(this); ...
2019-05-05 10:05:09
168
翻译 imag上传
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main2); ButterKnife.bind(this); ...
2019-05-05 10:04:01
101
翻译 购物车逻辑
逻辑逻辑逻辑逻辑逻辑 @Override public void getData(final List<DataBean> dataBeans) { this.dataBeans = dataBeans; shopRecyc.setLayoutManager(new LinearLayoutManager(this)); ...
2019-04-26 21:06:13
95
翻译 看点
searchActivityPresnetermpl = new Presnetermpl<>(this);GridLayoutManager gridLayoutManager = new GridLayoutManager(this,2);searchXrecy.setLayoutManager(gridLayoutManager);searchXrecy.setLoad...
2019-04-13 15:55:48
119
翻译 RxjavaRetrofit
public class Api { public static final String urlString = "http://172.17.8.100/"; public static final String waiString = "http://mobile.bwstudent.com/";}public interface ServiceApp { //...
2019-04-07 13:16:33
99
翻译 viewpager+fragment
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ButterKnife.bind(this); ...
2019-04-07 13:13:23
71
翻译 MVp
public abstract class BasePresenter { DataCall dataCall; public BasePresenter(DataCall dataCall) { this.dataCall = dataCall; } public void getData(Object...ag){ IReq...
2019-04-07 13:08:13
67
翻译 购物车
public class ShopFragment extends BaseFragment implements Constance.ShopView { @BindView(R.id.rcy) RecyclerView rcy; Unbinder unbinder; @BindView(R.id.cbAll) CheckBox cbAll; @B...
2019-04-07 13:07:32
108
翻译 viewPager加载的
public class MainActivity extends AppCompatActivity {图片的路径 private String urlBitmap = "http://image.baidu.com/search/down?tn=download&word=download&ie=utf8&fr=detail&url=http%3A...
2019-01-20 18:58:09
68
翻译 抽象类和 bottom的Activity
public abstract class BaseActivity extends AppCompatActivity { /** * 不要实现两个参数的onCreate; * 不要实现两个参数的onCreate; * 不要实现两个参数的onCreate; * @param savedInstanceState */// @...
2019-01-20 18:57:43
96
翻译 ViewPager的无线轮播
public class Frag_01 extends Fragment{ int arr[]={R.drawable.banner01,R.drawable.banner02,R.drawable.banner03}; private ViewPager pager; private RadioGroup radioGroup; private Arr...
2019-01-20 18:56:05
133
翻译 PullToRefreshListView
package lmm.bw.com.mythird;import android.os.AsyncTask;import android.os.Bundle;import android.support.annotation.NonNull;import android.support.annotation.Nullable;import android.support.v4.app...
2019-01-20 18:54:37
72
翻译 倒计时
利用getsharedprefreence 倒计时只出现一次 public class MainActivity extends AppCompatActivity { int cont =3; private TextView textView; private SharedPreferences.Editor edit; Handler handle...
2019-01-20 18:54:13
76
翻译 XListView
要导入xlistviewLibrary package lmm.bw.com.mythird;import android.os.AsyncTask;import android.os.Bundle;import android.support.annotation.NonNull;import android.support.annotation.Nullable;impor...
2019-01-20 18:51:51
73
翻译 多条目优化MyAdapter
package lmm.bw.com.mythird;import android.content.Context;import android.view.View;import android.view.ViewGroup;import android.widget.BaseAdapter;import android.widget.ImageView;import android...
2019-01-20 18:50:23
91
翻译 频道管理
package lmm.bw.com.seventh.frag;import android.content.Intent;import android.os.Bundle;import android.support.annotation.NonNull;import android.support.annotation.Nullable;import android.suppor...
2019-01-20 18:49:53
81
翻译 banner
public class Main2Activity extends AppCompatActivity { private Banner banner; List<String> list_path = new ArrayList<>(); List<String> list_title = new ArrayList<>...
2019-01-20 18:49:10
123
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人