android
文章平均质量分 54
iteye_19020
这个作者很懒,什么都没留下…
展开
-
android键盘弹出之后界面整体上移,顶出去了
关于android编写类似于微信QQ聊天界面,点击底部输入框之后内容被顶出的问题处理 AndroidManifest.xml文件中界面对应的activity里加入 android:windowSoftInputMode="stateVisible|adjustResize" 配置之后压缩listview 注意:此处可能设置android:windowSoftInputMo...原创 2016-03-01 16:22:30 · 2176 阅读 · 0 评论 -
控件记录
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 阅读 · 0 评论 -
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 阅读 · 0 评论 -
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 阅读 · 0 评论 -
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 阅读 · 0 评论 -
MPAndroidChart图表底部文字显示不完整
// 底部数据显示不完整 遮拦了 lineChart.setExtraBottomOffset(10); 如果问题解决扫码支持一下 谢谢原创 2016-09-07 10:37:29 · 2924 阅读 · 0 评论 -
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 阅读 · 0 评论 -
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 · 1468 阅读 · 0 评论 -
android混淆配置
编辑:proguard-project.txt文件 xtuils3 配置 -optimizationpasses 5 #混淆时不会产生形形色色的类名 -dontusemixedcaseclassnames #指定不去忽略非公共的类库 -dontskipnonpubliclibraryclasses #不预校验 -dontpreverify -ve...原创 2016-03-02 14:22:50 · 103 阅读 · 0 评论 -
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 阅读 · 0 评论