自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 嵌套A

布局<?xml version="1.0" encoding="utf-8"?><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width=&quot

2019-01-20 10:00:48 155

原创 跳转详情

展示package com.example.mymoni.fragment;import android.content.Intent;import android.os.Bundle;import android.support.v4.app.Fragment;import android.support.v7.widget.LinearLayoutManager;import ...

2019-01-20 09:39:37 205

原创 Recycle嵌套

布局<?xml version="1.0" encoding="utf-8"?><android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk...

2019-01-20 09:11:19 203

原创 xBanner轮播

依赖allprojects { repositories { google() jcenter() maven { url 'https://jitpack.io' } }}implementation 'com.github.xiaohaibin:XBanner:1.6.1' implementation 'com....

2019-01-14 20:57:23 223

原创 购物提交

主布局<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.c

2019-01-13 20:42:21 273

原创 购物车

主布局<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools=&quot

2019-01-13 20:11:52 96

原创 eventBus

EventBuspackage soexample.umeng.com.eventbusandbutterknife;import android.content.Intent;import android.os.Bundle;import android.support.v7.app.AppCompatActivity;import android.view.View;import...

2019-01-06 19:39:24 124 1

原创 多网络接口解析

布局<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width=...

2019-01-06 19:11:09 265 1

原创 自定义布局引入

布局xml文件<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="mat

2019-01-06 19:06:04 138

原创 登录注册

登录布局<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="

2019-01-06 19:02:18 169

原创 Retrofit

RetrofitUtilspackage com.example.activity.myapplication.utils;import java.io.IOException;import java.util.HashMap;import java.util.concurrent.TimeUnit;import okhttp3.OkHttpClient;import okht...

2019-01-06 18:57:18 104

原创 封装post和get方法

package com.example.mydayokhttp;import android.os.Bundle;import android.support.v7.app.AppCompatActivity;import android.util.Log;import android.view.View;import android.widget.Button;import and...

2018-12-21 08:55:53 1087

原创 购物车RecycleView

MainActivity页面package com.example.myliushibuju;import android.os.Bundle;import android.support.v7.app.AppCompatActivity;import android.support.v7.widget.LinearLayoutManager;import android.suppor...

2018-12-20 19:11:02 194

原创 高德地图

导入依赖 sourceSets { main { jniLibs.srcDirs = ['libs'] } }一定要复制libs布局文件 <com.amap.api.maps.MapView android:layout_width="match_parent" android...

2018-12-20 17:04:44 106

原创 轮播

轮播和XrecyclerView<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" andro...

2018-12-19 15:08:24 102

原创 LinearLayoutManager

布局文件<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools=...

2018-12-19 14:01:43 3468

原创 购物车

布局文件Main 布局<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas

2018-12-19 13:49:10 104

原创 多布局

adapterpackage com.example.myduobuju.adapter;import android.support.annotation.NonNull;import android.support.v7.widget.RecyclerView;import android.view.View;import android.view.ViewGroup;impor...

2018-12-16 21:05:21 231

原创 表格

adapterpackage com.example.lineardemorecyclerview.adapter;import android.support.annotation.NonNull;import android.support.v7.widget.RecyclerView;import android.view.View;import android.view.Vie...

2018-12-16 21:02:58 93

原创 XRecyclerView

需要导入依赖configurations.all { resolutionStrategy.eachDependency { DependencyResolveDetails details -> def requested = details.requested if (requested.group == 'com.and...

2018-12-15 11:53:53 179 1

原创 二维码

权限 <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="andro...

2018-12-09 19:29:31 111

原创 MVP

Activtypackage com.example.daymodule1206;import android.os.Bundle;import android.support.v7.app.AppCompatActivity;import com.example.daymodule1206.adapter.MyAdapter;import com.example.daymodule...

2018-12-09 17:57:37 128

原创 第三方布局

<?xml version="1.0" encoding="utf-8"?><LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" >

2018-12-09 17:43:50 109

原创 第三方登录

package com.example.erzhoukaomoni;import android.content.Intent;import android.content.SharedPreferences;import android.os.Bundle;import android.support.v7.app.AppCompatActivity;import android.vi...

2018-12-09 17:35:21 137

原创 转盘

布局文件<?xml version="1.0" encoding="utf-8"?><com.example.activity.myapplication.weight.MyLuckView android:layout_width="match_parent" android:layout_height

2018-12-02 19:00:07 144

原创 流式布局

attrs布局<?xml version="1.0" encoding="utf-8"?> 样式styl<?xml version="1.0" encoding="utf-8&a

2018-12-02 18:59:23 105

原创 简单流式布局

引用代码package com.example.zhoukaoyi.weight;import android.content.Context;import android.util.AttributeSet;import android.view.LayoutInflater;import android.widget.EditText;import android.widget.L...

2018-12-02 18:57:36 91

原创 网络状态

package com.example.jiexijiazai;import android.content.Context;import android.net.ConnectivityManager;import android.net.NetworkInfo;public class NetworkUtils {public static boolean getNetwork(Co...

2018-11-22 19:10:56 109

原创 频道二

package com.example.pdmannager_day15;import android.content.Intent;import android.graphics.Color;import android.graphics.drawable.Drawable;import android.os.Bundle;import android.support.annotati...

2018-11-22 16:36:12 90

原创 轮播图

需要手动加入 compile ‘com.recker.flybanner:flybanner:1.3’布局<com.recker.flybanner.FlyBannerandroid:id="@+id/banner_1"android:layout_width=“match_parent”android:layout_height=“180dp” />代码privat...

2018-11-22 11:54:31 98

原创 tabl滑动

布局文件<?xml version="1.0" encoding="utf-8"?><android.support.design.widget.TabLayoutandroid:layout_width=“match_parent”android:layout_height=“wrap_content”android:id="@+id/Tab_Layout"&gt...

2018-11-22 11:46:04 120

原创 侧滑

布局文件<?xml version="1.0" encoding="utf-8"?><android.support.v4.widget.DrawerLayout xmlns:android=“http://schemas.android.com/apk/res/android”xmlns:app=“http://schemas.android.com/apk/res-au...

2018-11-22 11:43:26 77

原创 Pull刷新加载

<?xml version="1.0" encoding="utf-8"?>布局文件<com.example.pulltolibrary.PullToRefreshListViewandroid:layout_width=“match_parent”android:layout_height=“match_parent”android:id="@+id/Pull_Li...

2018-11-22 11:37:05 143

原创 数据库调用

package com.example.likai2018119zk3.fragment;import android.os.AsyncTask;import android.os.Bundle;import android.support.annotation.NonNull;import android.support.annotation.Nullable;import andro...

2018-11-22 11:32:15 397

原创 数据库Dao

package com.example.likai2018119zk3.sqlite;import android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteOpenHelper;public class MySqlite extend...

2018-11-22 11:29:44 141

原创 频道管理

.在项目的build.gradle中添加allprojects {repositories {jcenter()//下面这句才是加上的,上面的自带 的maven {url “https://jitpack.io”}}}注:我在这里就遇到一个小坑,一定先在项目里添加同步后在导依赖!!!需要导入的依赖:implementation ‘com.github.andyoom:dragg...

2018-11-22 11:19:04 77

原创 上拉下拉刷新

package com.example.week03lianxi.fragment;import android.os.AsyncTask;import android.os.Bundle;import android.support.v4.app.Fragment;import android.view.LayoutInflater;import android.view.View;...

2018-11-19 08:14:28 96

空空如也

空空如也

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

TA关注的人

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