From ff195ef6bc9bb6408e33b19c85959381909af8de Mon Sep 17 00:00:00 2001 From: xC3FFF0E <78732474+xC3FFF0E@users.noreply.github.com> Date: Tue, 9 Feb 2021 01:54:16 +0800 Subject: Delete java directory --- java/AJCode.java | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 java/AJCode.java (limited to 'java/AJCode.java') diff --git a/java/AJCode.java b/java/AJCode.java deleted file mode 100644 index 6860b0b..0000000 --- a/java/AJCode.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.xc3fff0e.xmanager; - -import android.graphics.drawable.*; -import android.view.*; -import android.widget.*; -import android.content.res.*; -import android.graphics.*; -import android.view.Gravity; - -public class AJCode{ - -public static void setBackgroundGradient(View view, int color1, int color2){ -GradientDrawable gd = new GradientDrawable(GradientDrawable.Orientation.BL_TR, new int[] {color1,color2}); -view.setBackgroundDrawable(gd); -} - -public static void setRoundedRipple(View v,int LT,int RT,int RB,int LB,int color1,int size,int color2,int color3){ -GradientDrawable shape = new GradientDrawable(); -shape.setColor(color1); -shape.setCornerRadii(new float[]{(float)LT,(float)LT,(float)RT,(float)RT,(float)RB,(float)RB,(float)LB,(float)LB}); -shape.setStroke(size, color2); -RippleDrawable ripdr = new RippleDrawable(new ColorStateList(new int[][]{new int[]{}}, new int[]{color3}), shape, null); -v.setBackgroundDrawable(ripdr); -} -} \ No newline at end of file -- cgit v1.2.3