feat : 房間背景定制功能
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
@@ -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)
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user