
IT
流鑫星的光
这个作者很懒,什么都没留下…
展开
-
订单
订单布局LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical">LinearLayout android:layout_width="match_parent" android:l原创 2018-01-19 13:09:34 · 259 阅读 · 0 评论 -
OkHTTP二次封装加拦截器
/** * 懒汉 安全 加同步 * 私有的静态成员变量 只声明不创建 * 私有的构造方法 * 提供返回实例的静态方法 */private static OkHttpClient okHttpClient = null;private NetWorkOkHttp() {}public static OkHttpClient getInstance() { if (ok转载 2017-12-21 10:36:17 · 220 阅读 · 0 评论 -
动画
int x=300; //translationY平移Y轴 //translationX平移X轴 //rotation上下旋转 TranslateAnimation t = new TranslateAnimation(0, 200, 0, 0);//设置动画的偏移位移 TranslateAnimation t转载 2017-12-21 09:12:14 · 142 阅读 · 0 评论 -
angularjs查询删除 过滤敏感信息
thead tr{background:#424242;}tbody tr:nth-child(odd){background:#778899;}tbody tr:nth-child(even){background:#A4D3EE;}tbody tr:hover{background:#33FFFF ;}var app=angular.module("myapp",[原创 2017-11-23 11:12:44 · 260 阅读 · 0 评论 -
okhttp封装11111111
/** * 懒汉 安全 加同步 * 私有的静态成员变量 只声明不创建 * 私有的构造方法 * 提供返回实例的静态方法 */ private static OkHttpClient okHttpClient = null; public static OkHttpClient getInstance() { if (o翻译 2017-12-11 11:05:42 · 190 阅读 · 0 评论 -
angularjs购物车
tbody tr:nth-child(even){background: aqua;}tbody tr:nth-child(odd){background: aliceblue;}thead tr{background: #474747;}var app=angular.module("myapp",[]);app.fil原创 2017-11-22 15:36:04 · 250 阅读 · 0 评论 -
封装OkHttp
/** * 懒汉 安全 加同步 * 私有的静态成员变量 只声明不创建 * 私有的构造方法 * 提供返回实例的静态方法 */ private static OkHttpClient okHttpClient = null; private OkHttp3Util() { } p转载 2017-12-09 08:54:58 · 251 阅读 · 0 评论 -
拦截器OKhttp
/** * 懒汉 安全 加同步 * 私有的静态成员变量 只声明不创建 * 私有的构造方法 * 提供返回实例的静态方法 */ private static OkHttpClient okHttpClient = null; private OkHttp3Util() { } p转载 2017-12-16 08:42:15 · 169 阅读 · 0 评论 -
frecso加载进度
//所要加载图片的网址Uri uri = Uri.parse("http://assets.kgc.cn/upload/openteacher/20160831/1472636067718985.jpg");//创建Builder对象,一般创建出参数对象GenericDraweeHierarchyBuilder builder = new GenericDraweeHierarchyBuil转载 2017-12-26 10:22:45 · 211 阅读 · 0 评论 -
fresco
//加载进度条 Uri uri = Uri.parse("http://assets.kgc.cn/upload/openteacher/20160831/1472636067718985.jpg"); //创建Builder对象,一般创建出参数对象 GenericDraweeHierarchyBuilder builder = new Generi转载 2017-12-28 09:36:22 · 191 阅读 · 0 评论 -
视频播放器
依赖compile 'fm.jiecao:jiecaovideoplayer:5.5'在清单文件中配置,哪个Activity用,就加到哪里 android:configChanges="orientation|screenSize|keyboardHidden" android:screenOrientation="portrait">xml控件 android:id="@+id转载 2018-01-19 08:53:56 · 205 阅读 · 0 评论 -
依赖
compile 'com.facebook.fresco:fresco:0.14.0'//ButterKnife依赖 compile 'com.jakewharton:butterknife:8.4.0' apt 'com.jakewharton:butterknife-compiler:8.4.0'/*5.0新控件的依赖*/ compile 'com.android.原创 2018-01-17 20:52:10 · 218 阅读 · 0 评论 -
工具类
//bean包//购物车import java.util.List;/** * Created by dell on 2018/1/8. */public class MyDateGouWU { /** * msg : 请求成功 * code : 0 * data : [{"list":[{"bargainPrice":22.9,"createt原创 2018-01-17 20:33:27 · 526 阅读 · 0 评论 -
购物车
//登陆//布局 android:layout_width="match_parent" android:background="#ffffff" android:layout_height="match_parent"> LinearLayout android:layout_width="match_parent" android:lay原创 2018-01-17 20:16:36 · 298 阅读 · 0 评论 -
购物车工具类
工具类bean包import java.util.List;/** * Created by dell on 2018/1/8. */public class MyDateGouWU {/** * msg : 请求成功 * code : 0 * data : [{"list":[{"bargainPrice":22.9,"createtime":"2017-10-原创 2018-01-17 20:00:33 · 198 阅读 · 0 评论 -
封装retrofit+okhttp+rxjava
import android.os.Environment;import java.io.File;import java.io.IOException;import java.util.HashMap;import java.util.Map;import java.util.concurrent.TimeUnit;import okhttp3.Cache;import okh原创 2018-01-08 20:13:20 · 302 阅读 · 0 评论 -
rxjava
//使全局就一个Retrofit对象,设置基础Urlpublic static ApiService apiService = new Retrofit.Builder() .baseUrl("http://qbh.2dyt.com") //使我们能高度自定义转化器 .addConverterFactory(ScalarsConverterFact转载 2018-01-07 19:29:18 · 173 阅读 · 0 评论 -
封装网络请求框架
import android.os.Environment;import java.io.File;import java.io.IOException;import java.util.HashMap;import java.util.Map;import java.util.concurrent.TimeUnit;import okhttp3.Cache;import okh原创 2018-01-14 20:32:58 · 179 阅读 · 0 评论 -
Retrofit购物车
//工具类import java.util.List;/**购物车 * Created by dell on 2018/1/8. */public class MyDateGouWU { /** * msg : 请求成功 * code : 0 * data : [{"list":[{"bargainPrice":22.9,"cre原创 2018-01-14 20:20:26 · 702 阅读 · 0 评论 -
安卓6.0动态获取权限
//用于获取安卓6.0以上API23以上动态权限if(ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE)!= PackageManager.PERMISSION_GRANTED){ ActivityCompat.requestPermissions(转载 2017-11-29 18:20:28 · 183 阅读 · 0 评论 -
sqlite
//创建数据库public class sql extends SQLiteOpenHelper{public sql(Context context) {super(context, "shuju", null, 2);// TODO Auto-generated constructor stub}@Overridepublic v原创 2017-10-20 18:30:18 · 164 阅读 · 0 评论 -
网络判断
/** * 这个方法是判断网络状态是否可用的 * @param context * @return */public static boolean isConn(Context context){ boolean bisConnFlag=false; //1.获取网络连接的管理对象 ConnectivityManager conManager = (Connect转载 2017-10-16 18:53:50 · 158 阅读 · 0 评论 -
PullToRefreshListView
控件:ListViewcom.handmark.pulltorefresh.library.PullToRefreshListView android:id="@+id/plv" xmlns:ptr="http://schemas.android.com/apk/res-auto" android:layout_height="match_parent" and转载 2017-10-18 19:59:47 · 235 阅读 · 0 评论 -
适配器list
List newslist;Context cex;public Listbase(List newslist, Context cex) { this.newslist = newslist; this.cex = cex;}@Overridepublic int getCount() { return newslist.size();}@Overri原创 2017-10-09 19:12:24 · 191 阅读 · 0 评论 -
json原生解析以及Gson解析数组
private Handler handler = new Handler(){ @Override public void handleMessage(Message msg) { if (msg.what == 0){ String json = (String) msg.obj;转载 2017-10-09 19:22:38 · 350 阅读 · 0 评论 -
post解析
public void getDataFromNet(View view){ new Thread(){ @Override public void run() { //获取数据的地址 String path = "http://v.juhe.cn/tou转载 2017-10-09 19:31:23 · 1190 阅读 · 0 评论 -
轮播图
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"> android:id="@+id/view_pager" android:layo转载 2017-10-13 20:00:45 · 146 阅读 · 0 评论 -
全屏
android:theme="@style/Theme.AppCompat.NoActionBar"转载 2017-10-17 19:10:52 · 187 阅读 · 0 评论 -
网络[通信] network判断
//网络判断/** * @author Dash * @date 2017/9/27 * @description: * * 如果要使用网络状态的判断,需要权限....uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> */ /** * 这个方法是判断网络状态是否可用的转载 2017-10-18 14:39:08 · 289 阅读 · 0 评论 -
ImgHOLder
/** * 配置信息 * */public static void Stap(Context cex){ File file = new File(Environment.getExternalStorageDirectory(),"image");//缓存文件夹路径 if(!file.exists()){ file.mkdir(); }转载 2017-10-18 14:44:04 · 169 阅读 · 0 评论 -
网络工具类
//网络判断import android.app.AlertDialog;import android.content.Context;import android.content.DialogInterface;import android.content.Intent;import android.net.ConnectivityManager;import andro转载 2017-10-16 19:59:20 · 243 阅读 · 0 评论 -
PullToRefreshGridView
控件:GridViewcom.handmark.pulltorefresh.library.PullToRefreshGridView android:id="@+id/plv" xmlns:ptr="http://schemas.android.com/apk/res-auto" android:layout_height="match_parent"转载 2017-10-18 20:02:37 · 202 阅读 · 0 评论 -
PullToRefreshGridView
//控件:gridViewcom.handmark.pulltorefresh.library.PullToRefreshGridView android:id="@+id/plv" xmlns:ptr="http://schemas.android.com/apk/res-auto" android:layout_height="match_parent"转载 2017-10-18 20:19:27 · 144 阅读 · 0 评论 -
ImageLoader
/** * 配置信息 * */public static void Stap(Context cex){ File file = new File(Environment.getExternalStorageDirectory(),"image");//缓存文件夹路径 if(!file.exists()){ file.mkdir(); } Im转载 2017-10-10 18:28:49 · 270 阅读 · 0 评论 -
使用PullToRefreshScrollView
//PullToRefreshScrollView布局文件com.handmark.pulltorefresh.library.PullToRefreshScrollView xmlns:ptr="http://schemas.android.com/apk/res-auto" android:id="@+id/refresh_scroll_view" androi原创 2017-10-20 18:41:16 · 286 阅读 · 0 评论 -
蓝牙
package news1510a.bawei.com.a04_bluetooth_demo; import android.bluetooth.BluetoothAdapter;import android.bluetooth.BluetoothDevice;import android.content.BroadcastReceiver;import android.con转载 2017-10-08 18:40:49 · 317 阅读 · 0 评论 -
tablayout结合viewPager使用
package news1510a.bawei.com.a12_tablayout_viewpager;import android.support.design.widget.TabLayout;import android.support.v4.app.Fragment;import android.support.v4.app.FragmentPagerAdapter;转载 2017-10-12 19:38:35 · 492 阅读 · 0 评论 -
底部导航栏
//文字颜色selector xmlns:android="http://schemas.android.com/apk/res/android"> item android:state_checked="true" android:color="#3F51B5"/> item android:state_checked="false" android:color="#8f8f原创 2017-10-18 14:26:17 · 233 阅读 · 0 评论 -
TabLayout
LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="m原创 2017-10-18 16:28:08 · 167 阅读 · 0 评论 -
网络[计][通信] network Http url网络解析
public static void newUrl(Context context, final String path, final JieKou fie){ if(WangLuo.isConn(context)){ Toast.makeText(context,"网络已连接",Toast.LENGTH_SHORT).show(); AsyncTask原创 2017-10-18 14:41:10 · 291 阅读 · 0 评论