feat : 房間背景定制功能

This commit is contained in:
eggmanQQQ
2024-11-06 15:26:48 +08:00
parent 32359831b5
commit 6df69e6e57
43 changed files with 936 additions and 208 deletions

View File

@@ -11,4 +11,7 @@ public class ListUtils {
public static boolean isListEmpty(List list) {
return (list == null || list.size() == 0);
}
public static boolean isNotEmpty(List list) {
return (list != null && !list.isEmpty());
}
}

View File

@@ -9,7 +9,6 @@ import com.bumptech.glide.request.RequestListener
import com.bumptech.glide.request.target.Target
import com.chwl.library.common.glide.GlideUtils
import com.chwl.library.utils.LogUtil
import com.chwl.library.utils.PathHelper
import com.example.lib_utils.AppUtils
import com.example.lib_utils.log.ILog
import com.opensource.svgaplayer.SVGADrawable
@@ -85,7 +84,7 @@ class SVGAView : SVGAImageView, ILog {
return
}
if (url?.endsWith(".svga") == false || url?.endsWith(".SVGA") == false) {
if (!url.endsWith(".svga")) {
this.resourceUrl = null
this.setImageDrawable(null)
onViewStateChanged(0)

View File

@@ -587,10 +587,10 @@ public class DrawableTextView extends AppCompatTextView {
*/
public void setGradientDrawable(int startColor, int centerColor, int endColor,int angle, float radius) {
this.startColor = startColor;
this.centerColor = centerColor;
if (centerColor > -1) this.centerColor = centerColor;
this.endColor = endColor;
this.radius = radius;
this.angle = angle;
if (radius > -1) this.radius = radius;
if (angle > -1) this.angle = angle;
GradientDrawable gradient = null;
if (startColor != -1 && endColor != -1) {