自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 retrofit使用SimpleXmlConverterFactory

retrofit 使用 SimpleXmlConverterFactory 解析 xml 格式数据   支持格式: Gson com.squareup.retrofit2:converter-gson:2.0.2 Jackson com.squareup.retrofit2:converter-jackson:2.0.2 Moshi com.squareup.retrofit2:co...

2017-04-18 10:18:40 663

原创 控件记录

FlexBoxLayout <com.google.android.flexbox.FlexboxLayout android:id="@+id/flexbox_layout" android:layout_width="match_parent" android:layout_height="wrap_content" ...

2017-04-11 13:38:52 113

原创 android bitmap压缩

/** * bitmap转为base64 * * @param bitmap * @return */ public static String bitmapToBase64(Bitmap bitmap) { String result = null; ByteArrayOutputStream baos = null; try { ...

2017-03-27 17:59:21 212

原创 mac-android studio配置git(oschina)

1.下载git安装 3.进入到项目目录 3.克隆远程库到本地:git clone git地址(并且复制克隆回来的项目里面的所有文件到项目目录并覆盖.git readme.md) 4.git add . 5.git commit -m "First commit" 6.git push origin master     mac .开头文件 显示:defaults write ...

2017-01-18 12:52:42 133

原创 android自定义LogUtil

开发阶段设置为VERBOSE ,正式上线就设置为NOTHING 调用方式:LogUtil.d("TAG","debug log");   public class LogUtil { public static final int VERBOSE = 1; public static final int DEBUG = 2; public static ...

2017-01-04 16:56:16 162

原创 android获取全局context对象

public class MyApplication extends Application { private static Context context; @Override public void onCreate() { super.onCreate(); context = getApplicationCon...

2017-01-04 16:56:08 217

原创 MPAndroidChart图表底部文字显示不完整

// 底部数据显示不完整 遮拦了 lineChart.setExtraBottomOffset(10);     如果问题解决扫码支持一下 谢谢 

2016-09-07 10:37:29 2924

原创 GridView修改点击时候的背景颜色

<GridView android:id="@+id/g_table" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="@dimen/y60" andro...

2016-06-24 09:24:21 697

原创 免费svn项目管理

svn项目管理: http://code.taobao.org/

2016-05-03 13:58:07 66

原创 android改变alertdialog.builder样式

AlertDialog.Builder builder = new Builder(new ContextThemeWrapper(context, R.style.AlertDialogCustom));   <style name="AlertDialogCustom" parent="android:style/Theme.Dialog"> &lt...

2016-04-06 16:18:27 1468

原创 android混淆配置

编辑:proguard-project.txt文件 xtuils3 配置   -optimizationpasses 5 #混淆时不会产生形形色色的类名 -dontusemixedcaseclassnames #指定不去忽略非公共的类库 -dontskipnonpubliclibraryclasses #不预校验 -dontpreverify -ve...

2016-03-02 14:22:50 103

原创 android键盘弹出之后界面整体上移,顶出去了

 关于android编写类似于微信QQ聊天界面,点击底部输入框之后内容被顶出的问题处理   AndroidManifest.xml文件中界面对应的activity里加入 android:windowSoftInputMode="stateVisible|adjustResize"  配置之后压缩listview   注意:此处可能设置android:windowSoftInputMo...

2016-03-01 16:22:30 2176

空空如也

空空如也

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

TA关注的人

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