自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

翻译 MvpRtrofit

网络权限android:name="android.permission.INTERNET"/>导入依赖compile 'com.squareup.retrofit2:retrofit:2.1.0'compile 'com.squareup.retrofit2:converter-gson:2.1.0'compile 'com.squareup.retrofit2:co

2017-11-22 13:30:04 204

翻译 讯飞文字转语音

在点击事件Button进行调用 导入依赖:compile 'com.alibaba:fastjson:1.2.8' public void initSpeechCompound(){ SpeechSynthesizer mTts = SpeechSynthesizer.createSynthesizer(this, null); mTts

2017-10-31 20:07:27 606

翻译 讯飞语音转文字

Button点击事件:public void but(View view) { //1.创建RecognizerDialog对象,第二参数就是一个初始化的监听,我们用不上就设置为null RecognizerDialog mDialog = new RecognizerDialog(this, null); //2.设置accent、language等参数

2017-10-31 19:03:22 1990

翻译 Recyclerview+okhttp+拦截器+ImageLoader

导入依赖:compile 'com.squareup.okhttp3:okhttp:3.9.0'compile 'com.google.code.gson:gson:2.8.1'compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'compile 'com.android.support:recycle

2017-10-27 08:46:36 208

翻译 购物车

xml version="1.0" encoding="utf-8"?> name="colorPrimary">#3F51B5 name="colorPrimaryDark">#303F9F name="colorAccent">#FF4081 name="list_divider">#999999 name="list_item_p

2017-10-25 19:42:28 1078

翻译 注册登录显示个人中心

布局loginxml version="1.0" encoding="utf-8"?>xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <Relativ

2017-10-14 10:55:07 2509

翻译 实现简单登录注册

登录页面布局 mainxmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_par

2017-10-14 08:12:43 388

翻译 RecyclerView-点击切换多种布局

布局mainxml version="1.0" encoding="utf-8"?>xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:o

2017-10-13 10:09:28 897

转载 点击缩略图放大

import android.animation.Animator;import android.animation.AnimatorListenerAdapter;import android.animation.AnimatorSet;import android.animation.ObjectAnimator;import android.graphics.Point;impor

2017-09-21 10:46:39 314

转载 OkHttp+Xrecyclerview

1、这篇文章主要应用的是Okhttp请求网络数据解析Gson,判断网络,没有网络跳转到设置界面,然后通过XRecyclerView展示到页面中。并且可以实现全局捕获异常,加载图片实现属性动画渐变的效果。2、导入依赖compile 'com.squareup.okhttp:okhttp:2.4.0'compile 'io.github.openfeign:feign-gson:

2017-09-21 09:46:38 238

翻译 秦心,Recyclerview+okhttp

//依赖compile 'com.android.support:recyclerview-v7:26.0.0-alpha1'compile 'com.squareup.okhttp3:okhttp:3.8.1'compile 'com.solidfire.code.gson:gson:2.6.2'compile 'com.github.bumptech.glide:glide:3.

2017-09-17 20:25:57 221

翻译 自定义复合控件

public class MainActivity extends AppCompatActivity { private MyViewGroup mygroup; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState)

2017-09-04 08:08:12 190

原创 二维码

import android.content.Intent;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.os.Bundle;import android.support.v7.app.AppCompatActivity;import android.view.Vie

2017-07-13 19:36:34 237

转载 自定义View-放大加载-移动

public class MyView extends View { /* */ /* button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v)

2017-07-09 21:43:02 211

转载 自定义圆形渐变加载百分比-开始-暂停

public class MainActivity extends AppCompatActivity { private Button button; private Button zanting; private MyView myView; private Handler handler=new Handler(){ @Override

2017-07-09 20:11:32 166

转载 xml布局侧拉菜单

xml version="1.0" encoding="utf-8"?><android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drawerlayout" android:layout_width=

2017-06-14 11:24:37 302

转载 夜间切换模式

1.在 colors.xml 中定义两组颜色,分别表示日间和夜间的主题色:"1.0"encoding="utf-8"?> "colorPrimary">#3F51B5 "colorPrimaryDark">#303F9F "colorAccent">#FF4081  "nightColorPrimary">#3b3b3b "nightColorPrima

2017-06-14 11:10:27 333

空空如也

空空如也

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

TA关注的人

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