[2.8.0-f] 屏幕适配

This commit is contained in:
yangyakun
2022-10-28 20:44:07 +08:00
parent 27f40d2d2c
commit 20509fce0c
449 changed files with 5435 additions and 6549 deletions

View File

@@ -22,7 +22,7 @@ import me.jessyan.autosize.internal.CancelAdapt;
* <p>
* mvp 的 activity
*/
public abstract class MvpActivity<V extends IView, P extends Presenter<V>> extends AppCompatActivity implements IView, CancelAdapt {
public abstract class MvpActivity<V extends IView, P extends Presenter<V>> extends AppCompatActivity implements IView {
protected static final String TAG = "MvpActivity";

View File

@@ -11,7 +11,7 @@ public class ScreenHelper {
*/
public static void setScreenConfig(Context context) {
AutoSizeConfig.getInstance()
.setBaseOnWidth(false)
.setBaseOnWidth(true)
.setCustomFragment(true)
.setDesignWidthInDp(2560)
.setDesignHeightInDp(1600);

View File

@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="module_commons_toast_marginLeft">63px</dimen>
<dimen name="module_commons_toast_with_left_drawable_marginLeft">30px</dimen>
<dimen name="module_commons_toast_marginRight">63px</dimen>
<dimen name="module_commons_toast_marginTop">32px</dimen>
<dimen name="module_commons_toast_marginBottom">32px</dimen>
<dimen name="module_commons_toast_with_left_drawable_marginTop">19px</dimen>
<dimen name="module_commons_toast_with_left_drawable_marginBottom">19px</dimen>
<dimen name="module_commons_toast_textSize">40px</dimen>
<dimen name="module_commons_toast_minWidth">698px</dimen>
<dimen name="module_commons_toast_maxWidth">900px</dimen>
<dimen name="module_commons_toast_y_offset">130px</dimen>
<dimen name="module_commons_toast_icon_width">94px</dimen>
<dimen name="module_commons_toast_space_between_icon_and_msg">21px</dimen>
<dimen name="module_commons_toast_marginLeft">63dp</dimen>
<dimen name="module_commons_toast_with_left_drawable_marginLeft">30dp</dimen>
<dimen name="module_commons_toast_marginRight">63dp</dimen>
<dimen name="module_commons_toast_marginTop">32dp</dimen>
<dimen name="module_commons_toast_marginBottom">32dp</dimen>
<dimen name="module_commons_toast_with_left_drawable_marginTop">19dp</dimen>
<dimen name="module_commons_toast_with_left_drawable_marginBottom">19dp</dimen>
<dimen name="module_commons_toast_textSize">40dp</dimen>
<dimen name="module_commons_toast_minWidth">698dp</dimen>
<dimen name="module_commons_toast_maxWidth">900dp</dimen>
<dimen name="module_commons_toast_y_offset">130dp</dimen>
<dimen name="module_commons_toast_icon_width">94dp</dimen>
<dimen name="module_commons_toast_space_between_icon_and_msg">21dp</dimen>
</resources>

View File

@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="module_commons_toast_marginLeft">33px</dimen>
<dimen name="module_commons_toast_with_left_drawable_marginLeft">17px</dimen>
<dimen name="module_commons_toast_marginRight">33px</dimen>
<dimen name="module_commons_toast_marginTop">16px</dimen>
<dimen name="module_commons_toast_marginBottom">16px</dimen>
<dimen name="module_commons_toast_with_left_drawable_marginTop">10px</dimen>
<dimen name="module_commons_toast_with_left_drawable_marginBottom">10px</dimen>
<dimen name="module_commons_toast_textSize">22px</dimen>
<dimen name="module_commons_toast_minWidth">371px</dimen>
<dimen name="module_commons_toast_maxWidth">500px</dimen>
<dimen name="module_commons_toast_y_offset">72px</dimen>
<dimen name="module_commons_toast_icon_width">50px</dimen>
<dimen name="module_commons_toast_space_between_icon_and_msg">10px</dimen>
<dimen name="module_commons_toast_marginLeft">33dp</dimen>
<dimen name="module_commons_toast_with_left_drawable_marginLeft">17dp</dimen>
<dimen name="module_commons_toast_marginRight">33dp</dimen>
<dimen name="module_commons_toast_marginTop">16dp</dimen>
<dimen name="module_commons_toast_marginBottom">16dp</dimen>
<dimen name="module_commons_toast_with_left_drawable_marginTop">10dp</dimen>
<dimen name="module_commons_toast_with_left_drawable_marginBottom">10dp</dimen>
<dimen name="module_commons_toast_textSize">22dp</dimen>
<dimen name="module_commons_toast_minWidth">371dp</dimen>
<dimen name="module_commons_toast_maxWidth">500dp</dimen>
<dimen name="module_commons_toast_y_offset">72dp</dimen>
<dimen name="module_commons_toast_icon_width">50dp</dimen>
<dimen name="module_commons_toast_space_between_icon_and_msg">10dp</dimen>
</resources>