- 博客(37)
- 收藏
- 关注
转载 2
MainActivitypublic class MainActivity extends AppCompatActivity { public RecyclerView rc; public RequestQueue requestQueue; public MyAdapter myAdapter; Beam sb; @Override prot...
2018-04-06 19:23:37 213
转载 1
<?xml version="1.0" encoding="UTF-8"?>-<android.support.constraint.ConstraintLayout tools:context="com.example.asus.my.MainActivity" android:layout_height="match_parent" android:layout_widt...
2018-04-06 19:22:00 152
转载 jiahu
//SecondActivitypackage com.bw.jiahuweek1.activity;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.os.Bundle;import android.support.v7.app.AppCompatActivity;
2018-01-01 20:51:16 378
转载 MN01
//Interface_1package com.example.dell_pc.day12_4zhoukao.interfacebao;import com.example.dell_pc.day12_4zhoukao.kind.Foods;import retrofit2.Call;import retrofit2.http.GET;/** * Created by dell-
2018-01-01 19:23:57 291
转载 倒计时5秒跳转
package net.bwie.splashactivitydemo.activity;import android.content.Context;import android.content.Intent;import android.content.SharedPreferences;import android.os.Bundle;import android.os.Hand
2017-12-27 09:35:03 2122
转载 TabLayout +ViewPager+Fragment + RecycleView + webView加载本地html
1, 使用TabLayout实现页面的导航切换2, 实现ViewPager + Fragment ,切换页面, 2个Fragment;3, 第一个Fragment中, 获取网络数据,展示到RecyclerView地址: http://m2.qiushibaike.com/article/list/suggest?page=1解析字段: id, content4, 控件
2017-12-21 10:43:33 348
转载 传感器01
package bw.com.bw_day09_sensor.demo01;import android.content.Context;import android.hardware.Sensor;import android.hardware.SensorEvent;import android.hardware.SensorEventListener;import android
2017-12-11 08:12:02 273
转载 类似微信
package bw.com.bw_day09_sensor.demo03;import android.content.Context;import android.hardware.Sensor;import android.hardware.SensorEvent;import android.hardware.SensorEventListener;import android
2017-12-07 08:35:34 316
转载 光传感器加速度传感器
package bw.com.bw_day09_sensor.demo02;import android.content.Context;import android.hardware.Sensor;import android.hardware.SensorEvent;import android.hardware.SensorEventListener;import android
2017-12-07 08:34:51 258
转载 传感器
package bw.com.bw_day09_sensor.demo01;import android.content.Context;import android.hardware.Sensor;import android.hardware.SensorEvent;import android.hardware.SensorEventListener;import android
2017-12-07 08:33:59 244
转载 网络获取+动画
package bw.com.test_all.demo05;import android.os.Bundle;import android.support.v4.app.Fragment;import android.support.v4.app.FragmentManager;import android.support.v4.app.FragmentPagerAdapter;im
2017-12-04 07:52:47 266
转载 补间动画 旋转 平移 缩放 透明
package com.example.rk_02;import android.os.Bundle;import android.support.v4.app.Fragment;import android.view.LayoutInflater;import android.view.View;import android.view.ViewGroup;import andro
2017-11-29 10:50:20 189
转载 帧动画
package com.example.rk_02;import android.graphics.drawable.AnimationDrawable;import android.os.Bundle;import android.support.v4.app.Fragment;import android.view.LayoutInflater;import android.vi
2017-11-29 10:49:22 189
转载 viewpapger+fragment
package com.example.rk_02;import android.support.v4.app.Fragment;import android.support.v4.app.FragmentManager;import android.support.v4.app.FragmentPagerAdapter;import android.support.v4.view.Vi
2017-11-29 10:48:18 366
转载 GPS布局
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_gps" android:layout_width="match_parent"
2017-11-23 10:42:34 216
转载 蓝牙布局
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_bluetooth" android:layout_width="match_p
2017-11-23 10:42:11 238
转载 MyAPP(resolverApp)
package alice.bw.com.resolverapp;import android.content.Context;import android.view.View;import android.view.ViewGroup;import android.widget.BaseAdapter;import android.widget.ImageView;import a
2017-11-23 10:41:10 248
转载 resolverApp(mainapp)
package alice.bw.com.resolverapp;import android.content.ContentResolver;import android.database.Cursor;import android.net.Uri;import android.support.v7.app.AppCompatActivity;import android.os.Bu
2017-11-23 10:40:45 565
转载 MainActivity(app)
package alice.bw.com.day04_yuekaodemo;import android.content.ContentValues;import android.content.Intent;import android.database.sqlite.SQLiteDatabase;import android.os.Bundle;import android.sup
2017-11-23 10:39:36 413
转载 Food
package alice.bw.com.day04_yuekaodemo.domain;import java.util.List;/** * Created by Me on 2017/11/22. */public class Food { /** * ret : 1 * data : [{"id":"8289","title":"油焖大虾","
2017-11-23 10:37:19 380
转载 MySQliteOpenHelper
package alice.bw.com.day04_yuekaodemo.db;import android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteOpenHelper;/** * Created by Me on 2017
2017-11-23 10:36:33 538
转载 MyApp
package alice.bw.com.day04_yuekaodemo.app;import android.app.Application;import org.xutils.x;/** * Created by Me on 2017/11/22. */public class MyApp extends Application { @Override
2017-11-23 10:36:04 254
转载 MyRecyclerAdapter
package alice.bw.com.day04_yuekaodemo.adapter;import android.content.Context;import android.support.v7.widget.RecyclerView;import android.view.LayoutInflater;import android.view.View;import andr
2017-11-23 10:35:22 242
转载 蓝牙
uses-permission android:name="android.permission.BLUETOOTH"/>uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>package alice.bw.com.day04_yuekaodemo;import androi
2017-11-23 10:24:07 186
转载 JX
package alice.bw.com.day10xmljiexi;import android.os.Bundle;import android.support.v7.app.AppCompatActivity;import android.util.Log;import android.view.View;import org.w3c.dom.Document;import
2017-11-20 08:21:59 495
转载 GEt获取图片
private void picture() { new Thread(){ @Override public void run() { super.run(); URL url=null; HttpURLConnection huc=null; InputSt
2017-11-20 08:08:08 1567
转载 Xutlis
package com.example.rikao_8;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.view.View;import android.widget.TextView;import org.xutils.common.Callback
2017-11-20 07:57:13 476
转载 post请求
private void pos() { new Thread(){ @Override public void run() { super.run(); URL url=null; try { url=ne
2017-11-17 10:34:44 250
转载 网络获取图片
private void picture() { new Thread(){ @Override public void run() { super.run(); URL url=null; HttpURLConnection huc=n
2017-11-17 08:57:38 179
转载 视频播放器(上一个下一个)
package alice.bw.com.day20videonext;import android.net.Uri;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.view.View;import android.widget.MediaContro
2017-11-13 08:18:13 1020
转载 GPS_定位
package alice.bw.com.day10_gps;import android.Manifest;import android.content.Context;import android.content.Intent;import android.content.pm.PackageManager;import android.location.Location;imp
2017-11-10 09:25:51 269
转载 音乐播放
package com.example.music;import android.app.Service;import android.content.Intent;import android.media.MediaPlayer;import android.os.IBinder;import android.support.annotation.Nullable;/** *
2017-11-09 09:26:15 334
转载 android 绘制各种图形
/** * 定义矩形为空心 */ // 定义画笔1 Paint paint = new Paint(); paint.setStyle(Paint.Style.STROKE); // 消除锯齿 paint.setAntiAlias(true); // 设置画笔的颜色 paint.setColor(Color.RED); // 设置pa
2017-11-07 11:30:13 986
翻译 会动的爆米花
package alice.bw.com.day03surfaceview.view;import android.content.Context;import android.content.res.AssetManager;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import andr
2017-11-07 11:27:47 200
翻译 会呼吸的圆
package alice.bw.com.day03surfaceview.view;import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import android.util.Attribute
2017-11-07 11:26:28 290
原创 SlidingMenu的各种使用方法
SlidingMenu 常用属性介绍:menu.setMode(SlidingMenu.LEFT);//设置左滑菜单menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);//设置滑动的屏幕范围,该设置为全屏区域都可以滑动menu.setShadowDrawable(R.drawable.shadow);//设置阴影图片me
2017-11-06 16:15:04 576
原创 SlidingMenu的使用
private SlidingMenu slidingMenu;//获取SlidingMenuslidingMenu=new SlidingMenu(this);slidingMenu.setBehindOffset(200);//设置主页面剩余宽度slidingMenu.setMenu(R.layout.item);//绑定SlidingMenu布局slidingMenu.setMo
2017-11-06 16:12:04 206
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人