This commit is contained in:
lixiaopeng
2020-09-16 20:19:52 +08:00
parent c9aa94342e
commit 49b9ffddb0
24 changed files with 71 additions and 52 deletions

View File

@@ -8,6 +8,8 @@ import android.graphics.RectF;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
import androidx.annotation.DrawableRes;
import com.mogo.module.tanlu.R;
import com.mogo.skin.support.IMogoSkinCompatSupportable;
import com.mogo.skin.support.helper.MogoSkinCompatBackgroundHelperDelegate;
@@ -65,6 +67,15 @@ public class RoundLayout extends RelativeLayout implements IMogoSkinCompatSuppor
postInvalidate();
}
@Override
public void setBackgroundResource(@DrawableRes int resId) {
super.setBackgroundResource(resId);
if (mBackgroundTintHelper != null) {
mBackgroundTintHelper.onSetBackgroundResource(resId);
}
}
@Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
super.onLayout(changed, l, t, r, b);