This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.chen.myapplication.ui | |
import android.os.Bundle | |
import androidx.appcompat.app.AppCompatActivity | |
import androidx.lifecycle.lifecycleScope | |
import com.chen.myapplication.utils.implicit.ImplicitLaunchBridgeHelper | |
import com.chen.myapplication.utils.startActivity | |
import kotlinx.coroutines.launch | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.chen.test.util; | |
import android.app.Activity; | |
import android.app.Application; | |
import android.os.Bundle; | |
import androidx.annotation.CallSuper; | |
import androidx.annotation.IntDef; | |
import org.jetbrains.annotations.NotNull; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.chen.test.ui.bankcard; | |
import android.text.Editable; | |
import android.text.TextWatcher; | |
import android.widget.EditText; | |
/** | |
* 银行卡号TextWatcher, 模仿微信添加银行卡 | |
* Feature: | |
* 1. 每四位之间加空格 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.chen.test.ui.digit; | |
import android.text.Editable; | |
import android.text.TextUtils; | |
import android.text.TextWatcher; | |
import android.widget.EditText; | |
/** | |
* Created by Fanlin on 2020/5/19. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.chen; | |
import java.lang.reflect.AnnotatedType; | |
import java.lang.reflect.GenericArrayType; | |
import java.lang.reflect.Method; | |
import java.lang.reflect.ParameterizedType; | |
import java.lang.reflect.Type; | |
import java.lang.reflect.TypeVariable; | |
import java.lang.reflect.WildcardType; | |
import java.util.Arrays; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RoundConstraintLayout extends ConstraintLayout { | |
private Paint mCornerPaint = new Paint(Paint.ANTI_ALIAS_FLAG); | |
private int mCornerRadius = 0; | |
private RectF mRectF = new RectF(); | |
private PorterDuffXfermode mPorterDuffXfermodeDstIn = new PorterDuffXfermode(PorterDuff.Mode.DST_IN); | |
private Path mPath = new Path(); | |
private boolean mClipCircle = false; | |
public RoundConstraintLayout(Context context) { | |
this(context, null); |