diff --git a/gallery/build.properties b/gallery/build.properties index 966972b..167b855 100644 --- a/gallery/build.properties +++ b/gallery/build.properties @@ -1,8 +1,8 @@ #Created by .winboll/winboll_app_build.gradle -#Fri May 01 21:09:33 HKT 2026 +#Sat May 02 10:32:03 CST 2026 stageCount=16 libraryProject= baseVersion=15.0 publishVersion=15.0.15 -buildCount=0 +buildCount=19 baseBetaVersion=15.0.16 diff --git a/gallery/src/main/java/cc/winboll/studio/gallery/views/BackgroundRadioButton.java b/gallery/src/main/java/cc/winboll/studio/gallery/views/BackgroundRadioButton.java new file mode 100644 index 0000000..8809e00 --- /dev/null +++ b/gallery/src/main/java/cc/winboll/studio/gallery/views/BackgroundRadioButton.java @@ -0,0 +1,34 @@ +package cc.winboll.studio.gallery.views; + +import android.content.Context; +import android.util.AttributeSet; +import android.widget.RadioButton; + +public class BackgroundRadioButton extends RadioButton { + + CustomApplicationBackground mCustomApplicationBackground; + + public BackgroundRadioButton(Context context) { + super(context); + } + + public BackgroundRadioButton(Context context, AttributeSet attrs) { + super(context, attrs); + } + + public BackgroundRadioButton(Context context, AttributeSet attrs, int defStyleAttr) { + super(context, attrs, defStyleAttr); + } + + public void setupCustomApplicationBackground(Context context, int resId) { + mCustomApplicationBackground = new CustomApplicationBackground(context, resId); + } + + public void setCustomApplicationBackground(CustomApplicationBackground customApplicationBackground) { + mCustomApplicationBackground = customApplicationBackground; + } + + public CustomApplicationBackground getCustomApplicationBackground() { + return mCustomApplicationBackground; + } +} diff --git a/gallery/src/main/java/cc/winboll/studio/gallery/views/CustomApplicationBackground.java b/gallery/src/main/java/cc/winboll/studio/gallery/views/CustomApplicationBackground.java new file mode 100644 index 0000000..729521f --- /dev/null +++ b/gallery/src/main/java/cc/winboll/studio/gallery/views/CustomApplicationBackground.java @@ -0,0 +1,29 @@ +package cc.winboll.studio.gallery.views; + +import android.content.Context; +import android.graphics.drawable.ColorDrawable; +import android.graphics.drawable.Drawable; + +public class CustomApplicationBackground { + Drawable mDrawable; + + public CustomApplicationBackground(Drawable drawable) { + mDrawable = drawable; + } + + public CustomApplicationBackground(int color) { + mDrawable = new ColorDrawable(color); + } + + public CustomApplicationBackground(Context context, int resId) { + mDrawable = context.getDrawable(resId); + } + + public Drawable getDrawable() { + return mDrawable; + } + + public void setDrawable(Drawable drawable) { + mDrawable = drawable; + } +}