File tree Expand file tree Collapse file tree
java/com/hjq/demo/ui/activity Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333public final class SplashActivity extends AppActivity {
3434
3535 private LottieAnimationView mLottieView ;
36- private SlantedTextView mDebugView ;
36+ private SlantedTextView mBuildTypeView ;
3737
3838 @ Override
3939 protected int getLayoutId () {
@@ -43,7 +43,7 @@ protected int getLayoutId() {
4343 @ Override
4444 protected void initView () {
4545 mLottieView = findViewById (R .id .lav_splash_lottie );
46- mDebugView = findViewById (R .id .iv_splash_debug );
46+ mBuildTypeView = findViewById (R .id .iv_splash_build_type );
4747 // 设置动画监听
4848 mLottieView .addAnimatorListener (new AnimatorListenerAdapter () {
4949
@@ -78,11 +78,11 @@ public void onCancel(@NonNull BaseDialog dialog) {
7878
7979 @ Override
8080 protected void initData () {
81- mDebugView .setText (AppConfig .getBuildType ().toUpperCase ());
8281 if (AppConfig .isDebug ()) {
83- mDebugView .setVisibility (View .VISIBLE );
82+ mBuildTypeView .setVisibility (View .VISIBLE );
83+ mBuildTypeView .setText (AppConfig .getBuildType ().toUpperCase ());
8484 } else {
85- mDebugView .setVisibility (View .INVISIBLE );
85+ mBuildTypeView .setVisibility (View .INVISIBLE );
8686 }
8787
8888 if (true ) {
Original file line number Diff line number Diff line change 1919 app : lottie_rawRes =" @raw/welcome" />
2020
2121 <com .hjq.custom.widget.view.SlantedTextView
22- android : id =" @+id/iv_splash_debug "
22+ android : id =" @+id/iv_splash_build_type "
2323 android : layout_width =" wrap_content"
2424 android : layout_height =" wrap_content"
2525 android : layout_gravity =" end"
You can’t perform that action at this time.
0 commit comments