You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
下面介绍下如何使用`Android Support Library`来检查和请求权限。`Android`框架在`6.0`开始也提供了相同的方法。然而使用`support`包会比较简单,因为这样你就不需要在请求方法时判断当前的系统版本。(后面说的这几个类都是`android.support.v4`中的)
78
78
@@ -102,7 +102,7 @@ int permissionCheck = ContextCompat.checkSelfPermission(thisActivity,
最近看到`DrawerLayout`,`support v4`中提供的类,想到对`google`提供的这些支持库,自己一点都不熟悉,想着看看`Google`提供的支持库都有什么内容。结果看着看着在最后忽然看到了`Percent Support Library`。寻思怎么还百分比呢?仔细一看介绍,我擦,真是太有用了。
7
-
> ###Percent Support Library
7
+
> Percent Support Library
8
8
> The Percent package provides APIs to support adding and managing percentage based dimensions in your app.
9
9
10
10
> The Percent Support library adds support for the PercentLayoutHelper.PercentLayoutParams interface and various classes, such as PercentFrameLayout and PercentRelativeLayout.
@@ -14,7 +14,7 @@
14
14
> The Gradle build script dependency identifier for this library is as follows:
> Subclass of FrameLayout that supports percentage based dimensions and margins. You can specify dimension or a margin of child by using attributes with "Percent" suffix.
0 commit comments