摘要:
1.开启拍照权限 2.xml文件 阅读全文
摘要:
1.activity_main.xml 2.E:\studio space\MyApplication\app\src\main\res\drawable\bg_shape.xml 阅读全文
摘要:
1.xml布局 1.DrawableCenterTextView类 public class DrawableCenterTextView extends android.support.v7.widget.AppCompatTextView{ public DrawableCenterTextVi 阅读全文
摘要:
解决方法: file >Settings >Appearance&Behavior >HTTP Proxy >No proxy >apply ok. 阅读全文
摘要:
代码:CollapsingToolbarLayout的使用 1.activity_main.xml <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:androi 阅读全文
摘要:
原因是直接运行时用的是开发版的SHA1,而打包后的app需要发布版的SHA1,得到发布版的SHA1后再在百度地图上重新创建应用得到新的ak值,然后放在清单文件中的地图value值替换,然后重新打包。 开发版SHA1 得到方法:双击就可以 发布版SHA1 得到方法:keytool -list -v - 阅读全文
摘要:
Date dt=new Date(); SimpleDateFormat matter1=new SimpleDateFormat("yyyy-MM-dd"); System.out.println(matter1.format(dt)); String dateStr = "2017-11-27" 阅读全文
摘要:
Android实现每天8点页面跳转 public class MainActivity extends Activity { private Handler handler = new Handler(){ @Override public void handleMessage(Message ms 阅读全文
摘要:
在project.preperties页面添加 manifestmerger.enabled=truedex.force.jumbo=true 阅读全文