We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8b679f commit f25036dCopy full SHA for f25036d
autosize/src/main/java/me/jessyan/autosize/AutoAdaptStrategy.java
@@ -17,6 +17,8 @@
17
18
import android.app.Activity;
19
import android.app.Application;
20
+import android.support.v4.app.Fragment;
21
+import android.util.DisplayMetrics;
22
23
/**
24
* ================================================
@@ -34,7 +36,8 @@ public interface AutoAdaptStrategy {
34
36
35
37
* 开始执行屏幕适配逻辑
38
*
- * @param activity 需要屏幕适配的 {@link Activity}
39
+ * @param target 需要屏幕适配的对象 (可能是 {@link Activity} 或者 {@link Fragment})
40
+ * @param activity 需要拿到当前的 {@link Activity} 才能修改 {@link DisplayMetrics#density}
41
*/
- void applyAdapt(Activity activity);
42
+ void applyAdapt(Object target, Activity activity);
43
}
0 commit comments