上一页 1 2 3 4 5 6 7 8 ··· 41 下一页
摘要: 在/src/main/下创建assets文件夹,在assets文件夹下创建fonts文件夹,并把ttf文件放入fonts文件夹中 阅读全文
posted @ 2016-06-01 11:36 zqxLonely 阅读(338) 评论(0) 推荐(0) 编辑
摘要: AlertDialog.Builder builder=new AlertDialog.Builder(MainActivity.this); builder.setIcon(R.mipmap.ic_launcher); builder.setTitle("选择一个"); data=new Stri... 阅读全文
posted @ 2016-06-01 11:18 zqxLonely 阅读(124) 评论(0) 推荐(0) 编辑
摘要: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layo... 阅读全文
posted @ 2016-06-01 11:03 zqxLonely 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-06-01 10:23 zqxLonely 阅读(328) 评论(0) 推荐(0) 编辑
摘要: DisplayMetrics displayMetrics=new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); Log.d("MainActivity",displayMetrics.widthPixels+" "+displayMetri... 阅读全文
posted @ 2016-06-01 10:14 zqxLonely 阅读(186) 评论(0) 推荐(0) 编辑
摘要: getResources().getColor(R.color.colorAccent) 阅读全文
posted @ 2016-06-01 10:09 zqxLonely 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 在使用json_encode之前把字符用函数urlencode()处理一下,然后再json_encode,输出结果的时候在用函数urldecode()转回来 阅读全文
posted @ 2016-05-27 11:00 zqxLonely 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 如果楼主用phpmyadmin的话,把库,表,字段的整理统一设置为utf8_unicode_ci。 然后取数据时务必SET NANES UTF8; 不是UTF-8!!切记!我以前就范过这个错误,也是显示问号。 显示数据的网页那里设置为 然后。。。就没有然后了。。亲身经历把问号变为正常中文。 作者:AnewG 链接:http://www.zhihu.com/question/2037605... 阅读全文
posted @ 2016-05-27 10:43 zqxLonely 阅读(124) 评论(0) 推荐(0) 编辑
摘要: http://www.2cto.com/kf/201604/499617.html 阅读全文
posted @ 2016-05-24 17:36 zqxLonely 阅读(111) 评论(0) 推荐(0) 编辑
摘要: package com.pingyijinren.test; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import java.util.Timer; import java.util.TimerTask; public class ... 阅读全文
posted @ 2016-05-21 14:15 zqxLonely 阅读(2051) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 41 下一页