- 博客(12)
- 收藏
- 关注
原创 retrofit使用SimpleXmlConverterFactory
retrofit 使用 SimpleXmlConverterFactory 解析 xml 格式数据 支持格式:Gson com.squareup.retrofit2:converter-gson:2.0.2Jackson com.squareup.retrofit2:converter-jackson:2.0.2Moshi com.squareup.retrofit2:co...
2017-04-18 10:18:40
725
原创 控件记录
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
160
原创 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
265
原创 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
157
原创 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
183
原创 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
240
原创 MPAndroidChart图表底部文字显示不完整
// 底部数据显示不完整 遮拦了lineChart.setExtraBottomOffset(10); 如果问题解决扫码支持一下 谢谢
2016-09-07 10:37:29
2982
原创 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
744
原创 android改变alertdialog.builder样式
AlertDialog.Builder builder = new Builder(new ContextThemeWrapper(context, R.style.AlertDialogCustom)); <style name="AlertDialogCustom" parent="android:style/Theme.Dialog"> <...
2016-04-06 16:18:27
1518
原创 android混淆配置
编辑:proguard-project.txt文件xtuils3 配置 -optimizationpasses 5 #混淆时不会产生形形色色的类名-dontusemixedcaseclassnames #指定不去忽略非公共的类库-dontskipnonpubliclibraryclasses#不预校验 -dontpreverify -ve...
2016-03-02 14:22:50
136
原创 android键盘弹出之后界面整体上移,顶出去了
关于android编写类似于微信QQ聊天界面,点击底部输入框之后内容被顶出的问题处理 AndroidManifest.xml文件中界面对应的activity里加入android:windowSoftInputMode="stateVisible|adjustResize" 配置之后压缩listview 注意:此处可能设置android:windowSoftInputMo...
2016-03-01 16:22:30
2212
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人