摘要:
PackageManager manager = getContext().getPackageManager(); if (manager.queryIntentActivities(intent, 0).size() > 0) { startActivity(intent); } // Verify that the intent will resolve to an activit... 阅读全文
摘要:
ConstraintLayout是Android Studio 2.2中主要的新增功能之一,也是Google在去年的I/O大会上重点宣传的一个功能,可以把ConstraintLayout看成是一个更高级的RelativeLayout,它可以通过控件之间的相互约束,在一层view中实现非常复杂的布局。 阅读全文