自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 接口回调珂csdn

//第一个适配器写这两个方法public interface SetOnItem{void setonitem(View view,int postion);}private SetOnItem setOnItem;public void setSetOnItem(SetOnItem setOnItem){ this.setOnItem=setOnItem;}//在主...

2019-10-29 10:50:30 102

原创 sp存储

首先导入依赖implementation ‘com.blankj:utilcode:1.25.3’存 比如要存一个 movieldIntent intent = getIntent();moviesId = intent.getIntExtra(“movieId”, 0);主要传的就一行SPUtils.getInstance().put(“moviesId”,moviesId);...

2019-09-11 21:11:21 575

原创 二维码zbar

权限布局<cn.bingoogolapple.qrcode.zbar.ZBarView android:id="@+id/zxingview" android:layout_width="match_parent" android:layout_height="match_parent" app:qrcv_animTime="1000" app...

2019-05-10 08:01:07 335

原创 流失布局

//先写一个自定义view//布局<?xml version="1.0" encoding="utf-8"?><LinearLayout android:layout_width="match_parent" android:layout_height="50dp" android:orientation="horizontal"> ...

2019-05-06 13:49:50 180

原创 js和web交互

布局============html Carson_Ho // JS代码 ====----===要写的东西@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layo...

2019-05-06 13:19:11 156

原创 xrecyclerview展示加适配器和动画

//mainactivypublic class MainActivity extends AppCompatActivity implements MainView {private XRecyclerView xrecyclerview;private NewAdapter newAdapter;@Overrideprotected void onCreate(Bundle sav...

2019-05-06 13:16:06 182

原创 Xbanner集合版

《依赖》implementation ‘com.xhb:xbanner:1.5.1’《展示的xml中布局》<com.stx.xhb.xbanner.XBannerandroid:id="@+id/xbander"android:layout_width=“match_parent”android:layout_height=“200dp”app:isAutoPlay=“true...

2019-05-06 13:07:17 450

原创 viewpager首页和我的页面

布局<android.support.v4.view.ViewPagerandroid:id="@+id/frage"android:layout_width=“match_parent”android:layout_height=“0dp”android:layout_weight=“9”/>Activity页面集合是Fragment类型 group =...

2019-04-07 09:47:30 164

原创 项目实战第一周

mainactivitypublic class MainActivity extends AppCompatActivity implements MainView {private MainPresenterIml mMainPresenterIml;private XRecyclerView mRecyclerView;private NewsAdapter mNewsAdapter...

2019-03-18 08:22:33 151

原创 多条目加集合banner

2019-03-08 08:26:56 201

原创 base

baseActivitypublic abstract class BaseActivity extends FragmentActivity {@Overrideprotected void onCreate(@Nullable Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(b...

2019-03-07 21:41:26 188

原创 所有布局

mainactivity界面布局frag1布局界面 &lt;android.support.design.widget.TabLayout android:id="@+id/tab" android:layout_width="match_parent" android:layout_height="wrap_content"...

2019-03-07 21:39:19 185

原创 mainActivity

public int bindLayout() {return R.layout.activity_main;}@Overrideprotected void initView() { radiogroup = findViewById(R.id.radioGroup);}@Overrideprotected void initData() { frag1 = n...

2019-03-07 21:34:59 680

原创 tab解析json

public class Tab1 extends BaseFragment {private PullToRefreshListView pull;private String url = "http://v.juhe.cn/toutiao/index?type=top&amp;key=dbedecbcd1899c9785b95cc2d17131c5";ArrayList&lt;One&g...

2019-03-07 21:33:45 594

原创 yk tab的适配器

public class MyTbadapter extends FragmentPagerAdapter {private ArrayList list;private String str[];public MyTbadapter(FragmentManager fm, ArrayList&lt;Fragment&gt; list, String[] str) { super(f...

2019-03-07 21:32:23 207

原创 月考adapter适配器写解析的

public class Adapter extends BaseAdapter {private ArrayList data;private Context context;public Adapter(ArrayList&lt;One&gt; data, Context context) { this.data = data; this.context = contex...

2019-03-07 21:30:36 172

原创 资讯代码第三周轮播加list

先写base层BaseActivity名public abstract class BaseActivity extends AppCompatActivity {@Overrideprotected void onCreate(@Nullable Bundle savedInstanceState) {super.onCreate(savedInstanceState);setCon...

2019-03-04 08:22:18 160

原创 资讯侧滑加轮播list第三周的布局

要获取的权限第一个页面加侧滑布局android:orientation=“vertical”tools:context=".MainActivity"&gt;&lt;android.support.v4.widget.DrawerLayout android:id="@+id/draw" android:layout_width="match_parent" ...

2019-03-04 08:10:56 97

原创 第二周text2

第一个界面第二个xml写XListview第一个适配器第二个适配器

2019-02-25 21:19:10 96

原创 duxiaoke

购物车

2018-09-24 20:46:14 130

空空如也

空空如也

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

TA关注的人

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