[2.8.0-f] 屏幕适配
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user