自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 B_类服务

ApiService public interface ApiService {    /**     * Get基本请求,这里从Call改为Observable被观察者     * @param url     * @return     */    @GET    public Observable get(@Url String url); 

2018-01-19 12:59:12 180

原创 B_类文件

model包下MyModelNews public class MyModelNews implements MyModelNewsKiss{    private MyPresenterNews myPresenterNews;    public MyModelNews(MyPresenterNews myPresenterNews) {        this

2018-01-19 11:48:09 272

原创 B_类操作1

MainActivitypublic class MainActivity extends AppCompatActivity {    private ImageView my_touxiang;    private TextView my_title1;    private TextView my_title2;    @Override    prot

2018-01-19 11:42:45 232

原创 B_注意事项及配置权限

添加权限                        android:name=".app.MyApplication"        android:allowBackup="true"        android:icon="@mipmap/ic_launcher"        android:label="@string/app_name"        android:roundIc

2018-01-19 11:31:24 169

原创 B_Layout

activity_main    xmlns:app="http://schemas.android.com/apk/res-auto"    xmlns:tools="http://schemas.android.com/tools"    android:orientation="vertical"    android:layout_width="match_parent

2018-01-19 11:08:05 122

原创 G_分包具体详情及处理

adapter包下MyExpanableAdapterpublic class MyExpanableAdapter extends BaseExpandableListAdapter {    Context context;    private ShowCartPresenter showCartPresenter;    private final List d

2018-01-19 10:56:40 619

原创 G_具体解决思路及操作

MainActivitypublic class MainActivity extends AppCompatActivity implements IMainView{    private EditText main_tel;    private EditText main_pwd;    private String tel;    private String

2018-01-19 10:05:40 140

原创 G_注意事项 及 易错点

drawable文件夹下bg_btn_style_white                                                                                                                                 

2018-01-19 09:56:39 163

原创 G_Layout复杂布局解说

activity_main    xmlns:app="http://schemas.android.com/apk/res-auto"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"    android:layout_height="match_

2018-01-19 09:44:42 305

原创 界面布局 zoux~

购物车界面  孩子布局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:fresco="ht

2018-01-07 20:56:33 187

原创 Bean

Bean类  MessageBeanpublic class MessageBeanT> { /** * msg : 请求成功 * code : 0 * data : [] */ private String msg; private String code; private T data; public

2018-01-07 20:47:35 192

原创 接口数据完整解析不导入

public class DatasBean { /** * list : [{"bargainPrice":6666,"createtime":"2017-10-10T16:01:31","detailUrl":"https://item.m.jd.com/product/5089273.html?utm#_source=androidapp&utm#_medium=apps

2018-01-07 20:43:59 343

原创 MVP购物车界面代码

主界面public class MainActivity extends AppCompatActivity implements Iview { private String uid = "110"; private NewsPresenter presenter; private CheckBox mCheckbox2; private Expandab

2018-01-07 20:33:21 184

原创 购物车界面布局详情

xml version="1.0" encoding="utf-8"?>xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tool

2018-01-07 20:28:13 467

原创 适用适配器及布局 选择器

接口中缺少public interface GetDataInterface { @GET("/umIPmfS6c83237d9c70c7c9510c9b0f97171a308d13b611?uri=homepage") Call getInto();}标题布局及适配xmlns:android="http://schemas.andro

2018-01-02 11:48:23 134

原创 View层下以及具体权限

接口类操作1public interface MyView { public void onSuccess(DataDataBean dataDataBean); public void onFailure(Exception e);}操作2    图片操作public class GlideImageLoader extends ImageLoader

2018-01-02 11:43:53 308

原创 Model层下接口以及工具类

工具类public class MyApplication extends Application { public static GetDataInterface getDataInterface; @Override public void onCreate() { super.onCreate(); //1. 用于全局配置

2018-01-02 11:40:35 1445

原创 MVP界面操作

public class ShouYe_Fragment extends Fragment implements MyView { private Banner banner; private MyPresenter myPresenter; private RecyclerView recyclerView; private MyAdapter adapter;

2018-01-02 11:35:44 163

原创 仿购物界面布局

package xieshuaikang.com.www.zhoukao1_moni_20171230.View.Activity;import android.graphics.Color;import android.os.Build;import android.os.Bundle;import android.support.v7.app.ActionBar;import an

2018-01-02 11:33:32 216

原创 自定义viewgroup无限轮播

package one.bw.com.zidingyibannd;import android.content.Intent;import android.os.Bundle;import android.support.v7.app.AppCompatActivity;import android.util.Log;import android.view.View;

2017-12-04 08:25:09 845

原创 添加数据

#t tr:nth-child(2n){background-color:moccasin ;}angular.module("Dxm",[]).controller("deom",function($scope,$filter){$scope.datas=[];$scope.ruku = false;for(var i=1;ivar a={

2017-11-23 09:36:31 168

原创 购物车添加删除

body{margin: 0 auto;width: 800px;   }angular.module("myapp",[]).controller("democ",function($scope){//添加用户的点击事件  $scope.adduser=function(){  //下边表格显示  var tab = document.ge

2017-11-20 08:19:28 308

原创 混合开发JS/Ionic 侧滑菜单

angular.module("myapp",['ionic']).controller("democ",function($scope, $ionicSideMenuDelegate){$scope.toggleLeftSideMenu = function() { $ionicSideMenuDelegate.toggleLeft();};$scope.items=[];for

2017-11-17 09:15:37 198

原创 省级联动以及全选反选

$(function(){var qu_bj = ["西二旗", "西三旗", "回龙观"];var qu_sy = ["沈北新区", "和平区", "皇姑区"];for(var i = 0; i var $opt = $("");$opt.html(qu_bj[i]);$opt.attr("value", qu_bj[i]);if(qu_bj[i] == "西

2017-11-13 13:32:11 100

原创 HTML5_添加用户信息的操作以及省份城市二级联动

span{font-family: 楷体;font-size: 14px;color: red;}select{width: 150px;height: 20px;}a{text-decoration: none;}//angularjs处理省级联动angular.module("app",[]).controller("my

2017-11-11 11:13:31 805

原创 CSS_界面

.bg {position: relative; float: left;}  .fd_gif {position: absolute;z-index:99;top:0;left:0;margin-left: 120px; margin-top: 60px;}  input{  width: 60px;  height: 30px;  }function bofan

2017-11-05 20:34:41 138

原创 CSS_视频播放

.bg {position: relative; float: left;}  .fd_gif {position: absolute;z-index:99;top:0;left:0;margin-left: 120px; margin-top: 60px;}  input{  width: 60px;  height: 30px;  }function bofan

2017-11-05 20:33:19 1229

原创 轮播图和ListView一起刷新用pull刷新时的布局显示

xml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ptr="http://schemas.android.com/apk/res-auto" android:layout_width="match

2017-10-26 09:40:51 186

原创 tabLayout和ViewPager的滑动关联 以及tabLayout和ViewPager的布局

package duanxinmeng.bwie.com.sanzhoukao;import android.os.Bundle;import android.support.annotation.Nullable;import android.support.design.widget.TabLayout;import android.support.v4.app.Fragment;

2017-10-26 09:32:11 578 1

原创 PullToRefreshScrollView刷新轮播图和ListView以及上拉下拉、网络获取图片并提示

package duanxinmeng.bwie.com.sanzhoukao;import android.os.AsyncTask;import android.os.Bundle;import android.os.Handler;import android.os.Message;import android.support.annotation.Nullable;impor

2017-10-25 14:16:11 204

原创 Fragment和ViewPager的替换关联

public class MainActivity extends AppCompatActivity { private FrameLayout frameLayout; private RadioGroup group; @Override protected void onCreate(Bundle savedInstanceState) {

2017-10-25 14:12:14 135

原创 设置图片的工具类 在BaseApplication类中继承Application并调用方法

public class ImageLoderUtil { public static void init(Context context) { File cacheDir = StorageUtils.getCacheDirectory(context); //缓存文件夹路径 ImageLoaderConfiguration config = new

2017-10-25 13:32:28 260

原创 ListView的适配器使用方法以及优化类

class MyAdapter extends BaseAdapter{ Context context; List list; public MyAdapter(Context context, List list) { this.context = context; this.list = list; } @Over

2017-10-25 13:27:03 201

原创 网络连接的判断与封装以及网络获取数据的封装

public class NetWorkUtil { /** * 这个方法是判断网络状态是否可用的 * @param context * @return */ public static boolean isConn(Context context){ boolean bisConnFlag=false; //

2017-10-25 13:18:12 157

原创 使用pull刷新的时候只显示一条数据的解决

创建一个类进程ListView,将控件名改为类名public MyListview(Context context) { super(context);}public MyListview(Context context, AttributeSet attrs) { super(context, attrs);}public MyListview(Conte

2017-10-25 09:25:30 170

空空如也

空空如也

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

TA关注的人

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