吐司框架分离初始化步骤
This commit is contained in:
		@@ -1,8 +1,8 @@
 | 
				
			|||||||
#Created by .winboll/winboll_app_build.gradle
 | 
					#Created by .winboll/winboll_app_build.gradle
 | 
				
			||||||
#Thu Jan 23 01:34:17 HKT 2025
 | 
					#Wed Jan 22 17:51:47 GMT 2025
 | 
				
			||||||
stageCount=6
 | 
					stageCount=6
 | 
				
			||||||
libraryProject=libapputils
 | 
					libraryProject=libapputils
 | 
				
			||||||
baseVersion=9.2
 | 
					baseVersion=9.2
 | 
				
			||||||
publishVersion=9.2.5
 | 
					publishVersion=9.2.5
 | 
				
			||||||
buildCount=0
 | 
					buildCount=1
 | 
				
			||||||
baseBetaVersion=9.2.6
 | 
					baseBetaVersion=9.2.6
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -23,7 +23,12 @@ public class App extends GlobalApplication {
 | 
				
			|||||||
        super.onCreate();
 | 
					        super.onCreate();
 | 
				
			||||||
        // 初始化 WinBoll 框架
 | 
					        // 初始化 WinBoll 框架
 | 
				
			||||||
        WinBollUtils.getInstance(this).init(this);
 | 
					        WinBollUtils.getInstance(this).init(this);
 | 
				
			||||||
        
 | 
					        // 初始化 Toast 框架
 | 
				
			||||||
 | 
					        ToastUtils.init(this);
 | 
				
			||||||
 | 
					        // 设置 Toast 布局样式
 | 
				
			||||||
 | 
					        //ToastUtils.setView(R.layout.view_toast);
 | 
				
			||||||
 | 
					        ToastUtils.setStyle(new WhiteToastStyle());
 | 
				
			||||||
 | 
					        ToastUtils.setGravity(Gravity.BOTTOM, 0, 200);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,8 +1,8 @@
 | 
				
			|||||||
#Created by .winboll/winboll_app_build.gradle
 | 
					#Created by .winboll/winboll_app_build.gradle
 | 
				
			||||||
#Thu Jan 23 01:34:03 HKT 2025
 | 
					#Wed Jan 22 17:51:47 GMT 2025
 | 
				
			||||||
stageCount=6
 | 
					stageCount=6
 | 
				
			||||||
libraryProject=libapputils
 | 
					libraryProject=libapputils
 | 
				
			||||||
baseVersion=9.2
 | 
					baseVersion=9.2
 | 
				
			||||||
publishVersion=9.2.5
 | 
					publishVersion=9.2.5
 | 
				
			||||||
buildCount=0
 | 
					buildCount=1
 | 
				
			||||||
baseBetaVersion=9.2.6
 | 
					baseBetaVersion=9.2.6
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -72,12 +72,6 @@ public class WinBollUtils {
 | 
				
			|||||||
        //
 | 
					        //
 | 
				
			||||||
        // 初始化日志模块
 | 
					        // 初始化日志模块
 | 
				
			||||||
        LogUtils.init(mContext);
 | 
					        LogUtils.init(mContext);
 | 
				
			||||||
        // 初始化 Toast 框架
 | 
					 | 
				
			||||||
        ToastUtils.init(application);
 | 
					 | 
				
			||||||
        // 设置 Toast 布局样式
 | 
					 | 
				
			||||||
        //ToastUtils.setView(R.layout.view_toast);
 | 
					 | 
				
			||||||
        ToastUtils.setStyle(new WhiteToastStyle());
 | 
					 | 
				
			||||||
        ToastUtils.setGravity(Gravity.BOTTOM, 0, 200);
 | 
					 | 
				
			||||||
        // 设置应用调试标志
 | 
					        // 设置应用调试标志
 | 
				
			||||||
        DebugBean debugBean = DebugBean.loadBean(mContext, DebugBean.class);
 | 
					        DebugBean debugBean = DebugBean.loadBean(mContext, DebugBean.class);
 | 
				
			||||||
        if (debugBean == null) {
 | 
					        if (debugBean == null) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user