|
|
@@ -0,0 +1,51 @@
|
|
|
+package kr.co.zumo.app.lifeplus.view.screen.common;
|
|
|
+
|
|
|
+import android.content.Context;
|
|
|
+import android.support.annotation.Nullable;
|
|
|
+import android.support.constraint.ConstraintLayout;
|
|
|
+import android.util.AttributeSet;
|
|
|
+import android.view.LayoutInflater;
|
|
|
+import android.view.View;
|
|
|
+
|
|
|
+import kr.co.zumo.app.R;
|
|
|
+
|
|
|
+/**
|
|
|
+ * ButtonLoadingView
|
|
|
+ * <pre>
|
|
|
+ * </pre>
|
|
|
+ *
|
|
|
+ * @author 하세미
|
|
|
+ * @version 1.0
|
|
|
+ * @history 하세미 [2019-01-11] [최초 작성]
|
|
|
+ * @since 2019-01-11
|
|
|
+ */
|
|
|
+public class ButtonLoadingView extends ConstraintLayout {
|
|
|
+
|
|
|
+ private Context context;
|
|
|
+
|
|
|
+ public ButtonLoadingView(Context context) {
|
|
|
+ super(context);
|
|
|
+ this.context = context;
|
|
|
+ }
|
|
|
+
|
|
|
+ public ButtonLoadingView(Context context, @Nullable AttributeSet attrs) {
|
|
|
+ super(context, attrs);
|
|
|
+ this.context = context;
|
|
|
+ }
|
|
|
+
|
|
|
+ public ButtonLoadingView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
|
|
|
+ super(context, attrs, defStyleAttr);
|
|
|
+ this.context = context;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void init(){
|
|
|
+ LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
|
|
+ View view = inflater.inflate(R.layout.circle_animation, this, false);
|
|
|
+ View circle = view.findViewById(R.id.loading_circle);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setStartAlpha(float startAlpha){
|
|
|
+
|
|
|
+ }
|
|
|
+}
|