会员等级进度条的做法:先上一张图片
效果图就是这样 ,VIP的圆柱是红色,SVP的效果是黄色
先看xml代码:
activity_member_center :
<LinearLayout android:background="@color/colorAccent" android:layout_width="match_parent" android:layout_height="240dp" android:orientation="vertical"> <FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <RelativeLayout android:id="@+id/rl_Upperleft" android:layout_marginLeft="40dp" android:layout_marginTop="19dp" android:layout_width="wrap_content" android:layout_height="wrap_content" > <TextView android:id="@+id/a" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="1.2" android:textSize="15dp" android:textColor="@color/home_vip_color" /> <TextView android:layout_marginLeft="6dp" android:id="@+id/b" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="倍" android:textSize="15dp" android:textColor="@color/home_title_color" android:layout_toRightOf="@+id/a" /> <ImageView android:layout_marginLeft="6dp" android:id="@+id/c" android:layout_width="wrap_content" android:layout_height="18dp" android:src="@drawable/icon_arrow" android:layout_toRightOf="@+id/b" /> <TextView android:id="@+id/d" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="5dp" android:text="成长速度" android:layout_below="@+id/c" android:textSize="8dp" android:textColor="@color/font_color_gray" /> <TextView android:id="@+id/e" android:layout_marginTop="8dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="总成长值" android:textSize="8dp" android:layout_below="@+id/d" /> <TextView android:layout_marginTop="5dp" android:layout_marginLeft="5dp" android:id="@+id/f" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="0" android:textSize="12dp" android:textColor="@color/home_vip_color" android:layout_toRightOf="@+id/e" android:layout_below="@+id/d" /> RelativeLayout> <LinearLayout android:layout_marginLeft="30dp" android:layout_marginRight="40dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" > <LinearLayout android:layout_marginTop="19dp" android:layout_width="match_parent" android:layout_height="160dp"> <LinearLayout android:id="@+id/ll_a" android:layout_weight="1" android:gravity="center" android:layout_gravity="bottom" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" > <ImageView android:id="@+id/iv_vip_Headportraita" android:layout_width="20dp" android:layout_height="20dp" android:src="@drawable/ic_group" android:scaleType="fitXY" /> <TextView android:layout_marginTop="5dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="1" android:textSize="8dp" android:textColor="@color/home_title_color"/> <TextView android:id="@+id/tv_Cylindera" android:layout_marginTop="3dp" android:layout_width="10dp" android:layout_height="15dp" android:background="@drawable/vip_cylindera_shape" /> LinearLayout> <LinearLayout android:id="@+id/ll_b" android:layout_weight="1" android:gravity="center" android:layout_marginRight="7dp" android:layout_gravity="bottom" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content"> <ImageView android:id="@+id/iv_vip_Headportraitb" android:layout_width="20dp" android:layout_height="20dp" android:src="@drawable/ic_group" android:scaleType="fitXY" /> <TextView android:layout_marginTop="5dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="300" android:textSize="8dp" android:textColor="@color/home_title_color"/> <TextView android:id="@+id/tv_Cylinderb" android:layout_marginTop="3dp" android:layout_width="10dp" android:layout_height="25dp" android:background="@drawable/vip_cylindera_shape" /> LinearLayout> <LinearLayout android:id="@+id/ll_c" android:layout_weight="1" android:gravity="center" android:layout_marginRight="8dp" android:layout_gravity="bottom" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content"> <ImageView android:id="@+id/iv_vip_Headportraitc" android:layout_width="20dp" android:layout_height="20dp" android:src="@drawable/ic_group" android:scaleType="fitXY" /> <TextView android:layout_marginTop="5dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="900" android:textSize="8dp" android:textColor="@color/home_title_color"/> <TextView android:id="@+id/tv_Cylinderc" android:layout_marginTop="3dp" android:layout_width="10dp" android:layout_height="35dp" android:background="@drawable/vip_cylindera_shape" /> LinearLayout> <LinearLayout android:id="@+id/ll_d" android:layout_weight="1" android:layout_gravity="bottom" android:layout_marginRight="6dp" android:gravity="center" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content"> <ImageView android:id="@+id/iv_vip_Headportraitd" android:layout_width="20dp" android:layout_height="20dp" android:src="@drawable/ic_group" android:scaleType="fitXY" /> <TextView android:layout_marginTop="5dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="1800" android:textSize="8dp" android:textColor="@color/home_title_color"/> <TextView android:id="@+id/tv_Cylinderd" android:layout_marginTop="3dp" android:layout_width="10dp" android:layout_height="50dp" android:background="@drawable/vip_cylindera_shape" /> LinearLayout> <LinearLayout android:id="@+id/ll_e" android:layout_weight="1" android:layout_gravity="bottom" android:layout_marginRight="5dp" android:gravity="center" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content"> <ImageView android:id="@+id/iv_vip_Headportraite" android:layout_width="20dp" android:layout_height="20dp" android:src="@drawable/ic_group" android:scaleType="fitXY" /> <TextView android:layout_marginTop="5dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="3600" android:textSize="8dp" android:textColor="@color/home_title_color"/> <TextView android:id="@+id/tv_Cylindere" android:layout_marginTop="3dp" android:layout_width="10dp" android:layout_height="65dp" android:background="@drawable/vip_cylindera_shape" /> LinearLayout> <LinearLayout android:id="@+id/ll_f" android:layout_weight="1" android:layout_gravity="bottom" android:layout_marginRight="5dp" android:gravity="center" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content"> <ImageView android:id="@+id/iv_vip_Headportraitf" android:layout_width="20dp" android:layout_height="20dp" android:src="@drawable/ic_group" android:scaleType="fitXY" /> <TextView android:layout_marginTop="5dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="7200" android:textSize="8dp" android:textColor="@color/home_title_color"/> <TextView android:id="@+id/tv_Cylinderf" android:layout_marginTop="3dp" android:layout_width="10dp" android:layout_height="80dp" android:background="@drawable/vip_cylindera_shape" /> LinearLayout> <LinearLayout android:id="@+id/ll_g" android:layout_weight="1" android:layout_gravity="bottom" android:layout_marginRight="5dp" android:gravity="center" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content"> <ImageView android:id="@+id/iv_vip_Headportraitg" android:layout_width="20dp" android:layout_height="20dp" android:src="@drawable/ic_group" android:scaleType="fitXY" /> <TextView android:layout_marginTop="5dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="14400" android:textSize="8dp" android:textColor="@color/home_title_color"/> <TextView android:id="@+id/tv_Cylinderg" android:layout_marginTop="3dp" android:layout_width="10dp" android:layout_height="100dp" android:background="@drawable/vip_cylindera_shape" /> LinearLayout> <LinearLayout android:id="@+id/ll_h" android:layout_weight="1" android:layout_marginRight="3dp" android:layout_gravity="bottom" android:gravity="center" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content"> <ImageView android:id="@+id/iv_vip_Headportraith" android:layout_width="20dp" android:layout_height="20dp" android:src="@drawable/ic_group" android:scaleType="fitXY" /> <TextView android:layout_marginTop="5dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="28800" android:textSize="8dp" android:textColor="@color/home_title_color"/> <TextView android:id="@+id/tv_Cylinderh" android:layout_marginTop="3dp" android:layout_width="10dp" android:layout_height="120dp" android:background="@drawable/vip_cylindera_shape" /> LinearLayout> LinearLayout> <com.yapin.shanduo.widget.GrowthValueProgress android:id="@+id/progress" android:layout_marginTop="18dp" android:layout_marginRight="18dp" android:layout_marginLeft="15dp" android:layout_width="match_parent" android:layout_height="15dp" /> LinearLayout> FrameLayout> <TextView android:layout_marginTop="15dp" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="查看详细特权>" android:textColor="@color/font_color_gray" android:textSize="8dp" /> LinearLayout>
还有就是shape的xml(红色):
vip_cylindera_shape
xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <corners android:radius="10dp" /> <solid android:color="@color/home_vip_color" /> shape>
还有就是shape的xml(黄色):
svip_cylindera_shape
xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <corners android:radius="10dp" /> <solid android:color="@color/home_svip_color" /> shape>
好 ,现在界面上的代码差不多上完了,接下来就是那个自定义的进度条了
GrowthValueProgress
import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.util.AttributeSet; import android.view.View; import com.yapin.shanduo.R; import java.util.ArrayList; import java.util.List; /** * 成长值进度条 */ public class GrowthValueProgress extends View { private MyCallback callback; private Context context; private int currentValues = 0;//当前成长值 private int v0Values = 1;//v0会员成长值 private int v1Values = 300;//v1会员成长值 private int v2Values = 900;//v2会员成长值 private int v3Values = 1800;//v3会员成长值 private int v4Values = 3600;//v4会员成长值 private int v5Values = 7200;//v5会员成长值 private int v6Values = 14400;//v6会员成长值 private int v7Values = 28799;//v7会员成长值 private Paint paint;//会员画笔 private Paint grayPaint; private Paint pointPaint0; private Paint pointPaint1; private Paint pointPaint2; private Paint pointPaint3; private Paint pointPaint4; private Paint pointPaint5; private Paint pointPaint6; private Paint pointPaint7; private int lineHeight = 6;//线的高度 private int pointSize = 6;//圆心的半径 private int offsetX = 0;//x的坐标; private int width = 0; private int hight = 8; private ListpaintList; public GrowthValueProgress(Context context) { super(context); this.context = context; initPaint(); } public GrowthValueProgress(Context context, AttributeSet attrs) { super(context, attrs); this.context = context; initPaint(); } public GrowthValueProgress(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); this.context = context; initPaint(); } public int getCurrentValues() { return currentValues; } public void setCurrentValues(int currentValues) { this.currentValues = currentValues; } private void initPaint() { lineHeight=hight;//线的高度设置为布局的一半高度 pointSize=hight;//圆点的半径设置为布局的一半高度 grayPaint = new Paint(); grayPaint.setColor(0x7060090); grayPaint.setStrokeWidth(lineHeight); grayPaint.setAntiAlias(true); grayPaint.setTextAlign(Paint.Align.CENTER); grayPaint.setStyle(Paint.Style.STROKE); paint = new Paint(); paint.setColor(Color.RED); paint.setStrokeWidth(lineHeight); paint.setAntiAlias(true); paint.setTextAlign(Paint.Align.CENTER); paint.setStyle(Paint.Style.STROKE); pointPaint0 = new Paint(); pointPaint1 = new Paint(); pointPaint2 = new Paint(); pointPaint3 = new Paint(); pointPaint4 = new Paint(); pointPaint5 = new Paint(); pointPaint6 = new Paint(); pointPaint7 = new Paint(); paintList=new ArrayList<>(); paintList.add(pointPaint0); paintList.add(pointPaint1); paintList.add(pointPaint2); paintList.add(pointPaint3); paintList.add(pointPaint4); paintList.add(pointPaint5); paintList.add(pointPaint6); paintList.add(pointPaint7); for (int i = 0; i < paintList.size(); i++) { Paint mPaint = paintList.get(i); mPaint.setStrokeWidth(10); mPaint.setAntiAlias(true); mPaint.setStyle(Paint.Style.FILL); mPaint.setTextAlign(Paint.Align.CENTER); } } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); int lineLength = width / 7; //绘制底部长灰线 canvas.drawLine(0, lineHeight, width, lineHeight, grayPaint); drawProgress(canvas, lineLength); } /** * 画进度 * * @param canvas * @param lineLength 每个区间的平均长度 */ private void drawProgress(Canvas canvas, int lineLength) { //在V0~V1区间内 if (currentValues >= v0Values && currentValues < v1Values) { int stopX = (currentValues - v0Values) * lineLength / (v1Values - v0Values); //x起始位置,y起始位置,x停止位置,y停止位置 offsetX = lineLength * 0 + stopX; pointPaint0.setColor(Color.RED); pointPaint1.setColor(0x7060090); pointPaint2.setColor(0x7060090); pointPaint3.setColor(0x7060090); pointPaint4.setColor(0x7060090); pointPaint5.setColor(0x7060090); pointPaint6.setColor(0x7060090); pointPaint7.setColor(0x7060090); } else if (currentValues >= v1Values && currentValues < v2Values) { //在V1~V2区间内 int stopX = (currentValues - v1Values) * lineLength / (v2Values - v1Values); offsetX = lineLength * 1 + stopX; pointPaint0.setColor(Color.RED); pointPaint1.setColor(Color.RED); pointPaint2.setColor(0x7060090); pointPaint3.setColor(0x7060090); pointPaint4.setColor(0x7060090); pointPaint5.setColor(0x7060090); pointPaint6.setColor(0x7060090); pointPaint7.setColor(0x7060090); } else if (currentValues >= v2Values && currentValues < v3Values) { //在V2~V3区间内 int stopX = (currentValues - v2Values) * lineLength / (v3Values - v2Values); offsetX = lineLength * 2 + stopX; pointPaint0.setColor(Color.RED); pointPaint1.setColor(Color.RED); pointPaint2.setColor(Color.RED); pointPaint3.setColor(0x7060090); pointPaint4.setColor(0x7060090); pointPaint5.setColor(0x7060090); pointPaint6.setColor(0x7060090); pointPaint7.setColor(0x7060090); } else if (currentValues >= v3Values && currentValues <= v4Values) { //在V3~V4区间内 int stopX = (currentValues - v3Values) * lineLength / (v4Values - v3Values); offsetX = lineLength * 3 + stopX; pointPaint0.setColor(Color.RED); pointPaint1.setColor(Color.RED); pointPaint2.setColor(Color.RED); pointPaint3.setColor(Color.RED); pointPaint4.setColor(0x7060090); pointPaint5.setColor(0x7060090); pointPaint6.setColor(0x7060090); pointPaint7.setColor(0x7060090); } else if (currentValues >= v4Values && currentValues <= v5Values) { //在V4~V5区间内 int stopX = (currentValues - v4Values) * lineLength / (v5Values - v4Values); offsetX = lineLength * 4 + stopX; pointPaint0.setColor(Color.RED); pointPaint1.setColor(Color.RED); pointPaint2.setColor(Color.RED); pointPaint3.setColor(Color.RED); pointPaint4.setColor(Color.RED); pointPaint5.setColor(0x7060090); pointPaint6.setColor(0x7060090); pointPaint7.setColor(0x7060090); }else if (currentValues >= v5Values && currentValues <= v6Values) { //在V5~V6区间内 int stopX = (currentValues - v5Values) * lineLength / (v6Values - v5Values); offsetX = lineLength * 5 + stopX; pointPaint0.setColor(Color.RED); pointPaint1.setColor(Color.RED); pointPaint2.setColor(Color.RED); pointPaint3.setColor(Color.RED); pointPaint4.setColor(Color.RED); pointPaint5.setColor(Color.RED); pointPaint6.setColor(0x7060090); pointPaint7.setColor(0x7060090); } else if (currentValues >= v6Values && currentValues <= v7Values) { //在V6~V7区间内 int stopX = (currentValues - v6Values) * lineLength / (v7Values - v6Values); offsetX = lineLength * 6 + stopX; pointPaint0.setColor(Color.RED); pointPaint1.setColor(Color.RED); pointPaint2.setColor(Color.RED); pointPaint3.setColor(Color.RED); pointPaint4.setColor(Color.RED); pointPaint5.setColor(Color.RED); pointPaint6.setColor(Color.RED); pointPaint7.setColor(0x7060090); }else if (currentValues > v7Values) { int stopX = 0;//超过8使用固定值 offsetX = lineLength * 7 + stopX; pointPaint0.setColor(Color.RED); pointPaint1.setColor(Color.RED); pointPaint2.setColor(Color.RED); pointPaint3.setColor(Color.RED); pointPaint4.setColor(Color.RED); pointPaint5.setColor(Color.RED); pointPaint6.setColor(Color.RED); pointPaint7.setColor(Color.RED); } canvas.drawLine(0, lineHeight, offsetX, lineHeight, paint); //圆心的XY坐标,圆心半径 canvas.drawCircle((0 * lineLength)+7 , pointSize, pointSize, pointPaint0); canvas.drawCircle(1 * lineLength - pointSize, pointSize, pointSize, pointPaint1); canvas.drawCircle(2 * lineLength - pointSize, pointSize, pointSize, pointPaint2); canvas.drawCircle(3 * lineLength - pointSize, pointSize, pointSize, pointPaint3); canvas.drawCircle(4 * lineLength - pointSize, pointSize, pointSize, pointPaint4); canvas.drawCircle(5 * lineLength - pointSize, pointSize, pointSize, pointPaint5); canvas.drawCircle(6 * lineLength - pointSize, pointSize, pointSize, pointPaint6); canvas.drawCircle((7 * lineLength)+3 - pointSize, pointSize, pointSize, pointPaint7); if (callback != null) { callback.callBack(offsetX,currentValues); } } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); width = this.getMeasuredWidth(); hight = this.getMeasuredHeight(); } @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); } public void getOffsetX(MyCallback callback){ this.callback=callback; } public interface MyCallback { void callBack(int offsetX, int currentValues); } }
到了这里,大家的activity会写了吗?其实activity里面的代码非常简单无非就是判断拿到的VIP等级显示圆柱的个数和颜色,
VIP的积分进行设置进度条的长度,是不是很简单,开始做的时候我也想了很久,不知道该怎么下手,好了,直接看activity的代码吧
MembercenterActivity
import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.res.Resources; import android.graphics.Color; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.FragmentTransaction; import android.support.v4.view.ViewPager; import android.text.TextUtils; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.WindowManager; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.PopupWindow; import android.widget.RelativeLayout; import android.widget.TextView; import com.yapin.shanduo.R; import com.yapin.shanduo.app.ShanDuoPartyApplication; import com.yapin.shanduo.model.entity.GetVipLevelInfo; import com.yapin.shanduo.presenter.GetVipLevelPresenter; import com.yapin.shanduo.ui.adapter.ChargeTabAdapter; import com.yapin.shanduo.ui.contract.GetVipLevelContract; import com.yapin.shanduo.ui.fragment.ChargeVipDialogFragment; import com.yapin.shanduo.utils.ApiUtil; import com.yapin.shanduo.utils.GlideUtil; import com.yapin.shanduo.utils.PrefJsonUtil; import com.yapin.shanduo.utils.PrefUtil; import com.yapin.shanduo.utils.ToastUtil; import com.yapin.shanduo.utils.Utils; import com.yapin.shanduo.widget.GrowthValueProgress; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; public class MembercenterActivity extends BaseActivity { @BindView(R.id.rl_Upperleft) RelativeLayout rl_Upperleft; @BindView(R.id.a) TextView Speedmultiplier; @BindView(R.id.f) TextView Thesum; @BindView(R.id.ll_a) LinearLayout ll_a; @BindView(R.id.iv_vip_Headportraita) ImageView iv_vip_Headportraita; @BindView(R.id.tv_Cylindera) TextView tv_Cylindera; @BindView(R.id.ll_b) LinearLayout ll_b; @BindView(R.id.iv_vip_Headportraitb) ImageView iv_vip_Headportraitb; @BindView(R.id.tv_Cylinderb) TextView tv_Cylinderb; @BindView(R.id.ll_c) LinearLayout ll_c; @BindView(R.id.iv_vip_Headportraitc) ImageView iv_vip_Headportraitc; @BindView(R.id.tv_Cylinderc) TextView tv_Cylinderc; @BindView(R.id.ll_d) LinearLayout ll_d; @BindView(R.id.iv_vip_Headportraitd) ImageView iv_vip_Headportraitd; @BindView(R.id.tv_Cylinderd) TextView tv_Cylinderd; @BindView(R.id.ll_e) LinearLayout ll_e; @BindView(R.id.iv_vip_Headportraite) ImageView iv_vip_Headportraite; @BindView(R.id.tv_Cylindere) TextView tv_Cylindere; @BindView(R.id.ll_f) LinearLayout ll_f; @BindView(R.id.iv_vip_Headportraitf) ImageView iv_vip_Headportraitf; @BindView(R.id.tv_Cylinderf) TextView tv_Cylinderf; @BindView(R.id.ll_g) LinearLayout ll_g; @BindView(R.id.iv_vip_Headportraitg) ImageView iv_vip_Headportraitg; @BindView(R.id.tv_Cylinderg) TextView tv_Cylinderg; @BindView(R.id.ll_h) LinearLayout ll_h; @BindView(R.id.iv_vip_Headportraith) ImageView iv_vip_Headportraith; @BindView(R.id.tv_Cylinderh) TextView tv_Cylinderh; @BindView(R.id.progress) GrowthValueProgress progress; //这是从后台获取到的VIP等级和VIP积分 private GetVipLevelInfo getVipLevelInfo = new GetVipLevelInfo(); @Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_member_center); activity = this; ButterKnife.bind(this); } //根据拿到的数据进行判断 public void getvipleve(){ int values=0; progress.setCurrentValues(values); if (getVipLevelInfo.getExperience() == 0){ rl_Upperleft.setVisibility(View.GONE); }else { Thesum.setText(getVipLevelInfo.getExperience() + ""); progress.setCurrentValues(Integer.parseInt(getVipLevelInfo.getExperience()+"")); //获取拿到的数据 progress.invalidate(); } if (getVipLevelInfo.getLevel() == 0){ iv_vip_Headportraita.setVisibility(View.INVISIBLE); iv_vip_Headportraitb.setVisibility(View.INVISIBLE); iv_vip_Headportraitc.setVisibility(View.INVISIBLE); iv_vip_Headportraitd.setVisibility(View.INVISIBLE); iv_vip_Headportraite.setVisibility(View.INVISIBLE); iv_vip_Headportraitf.setVisibility(View.INVISIBLE); iv_vip_Headportraitg.setVisibility(View.INVISIBLE); iv_vip_Headportraith.setVisibility(View.INVISIBLE); tv_Cylindera.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderb.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderc.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderd.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylindere.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderf.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderg.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderh.setBackgroundResource(R.drawable.vip_cylinderb_shape); }else if (getVipLevelInfo.getLevel() == 1){ Speedmultiplier.setText("1.1"); GlideUtil.load(context ,activity , ApiUtil.IMG_URL + PrefJsonUtil.getProfile(context).getPicture() , iv_vip_Headportraita); iv_vip_Headportraita.setVisibility(View.VISIBLE); iv_vip_Headportraitb.setVisibility(View.INVISIBLE); iv_vip_Headportraitc.setVisibility(View.INVISIBLE); iv_vip_Headportraitd.setVisibility(View.INVISIBLE); iv_vip_Headportraite.setVisibility(View.INVISIBLE); iv_vip_Headportraitf.setVisibility(View.INVISIBLE); iv_vip_Headportraitg.setVisibility(View.INVISIBLE); iv_vip_Headportraith.setVisibility(View.INVISIBLE); tv_Cylindera.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderb.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderc.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderd.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylindere.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderf.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderg.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderh.setBackgroundResource(R.drawable.vip_cylinderb_shape); }else if (getVipLevelInfo.getLevel() == 2){ Speedmultiplier.setText("1.2"); GlideUtil.load(context ,activity , ApiUtil.IMG_URL + PrefJsonUtil.getProfile(context).getPicture() , iv_vip_Headportraitb); iv_vip_Headportraita.setVisibility(View.INVISIBLE); iv_vip_Headportraitb.setVisibility(View.VISIBLE); iv_vip_Headportraitc.setVisibility(View.INVISIBLE); iv_vip_Headportraitd.setVisibility(View.INVISIBLE); iv_vip_Headportraite.setVisibility(View.INVISIBLE); iv_vip_Headportraitf.setVisibility(View.INVISIBLE); iv_vip_Headportraitg.setVisibility(View.INVISIBLE); iv_vip_Headportraith.setVisibility(View.INVISIBLE); tv_Cylindera.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderb.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderc.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderd.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylindere.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderf.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderg.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderh.setBackgroundResource(R.drawable.vip_cylinderb_shape); }else if (getVipLevelInfo.getLevel() == 3){ Speedmultiplier.setText("1.3"); GlideUtil.load(context ,activity , ApiUtil.IMG_URL + PrefJsonUtil.getProfile(context).getPicture() , iv_vip_Headportraitc); iv_vip_Headportraita.setVisibility(View.INVISIBLE); iv_vip_Headportraitb.setVisibility(View.INVISIBLE); iv_vip_Headportraitc.setVisibility(View.VISIBLE); iv_vip_Headportraitd.setVisibility(View.INVISIBLE); iv_vip_Headportraite.setVisibility(View.INVISIBLE); iv_vip_Headportraitf.setVisibility(View.INVISIBLE); iv_vip_Headportraitg.setVisibility(View.INVISIBLE); iv_vip_Headportraith.setVisibility(View.INVISIBLE); tv_Cylindera.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderb.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderc.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderd.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylindere.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderf.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderg.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderh.setBackgroundResource(R.drawable.vip_cylinderb_shape); }else if (getVipLevelInfo.getLevel() == 4){ Speedmultiplier.setText("1.4"); GlideUtil.load(context ,activity , ApiUtil.IMG_URL + PrefJsonUtil.getProfile(context).getPicture() , iv_vip_Headportraitd); iv_vip_Headportraita.setVisibility(View.INVISIBLE); iv_vip_Headportraitb.setVisibility(View.INVISIBLE); iv_vip_Headportraitc.setVisibility(View.INVISIBLE); iv_vip_Headportraitd.setVisibility(View.VISIBLE); iv_vip_Headportraite.setVisibility(View.INVISIBLE); iv_vip_Headportraitf.setVisibility(View.INVISIBLE); iv_vip_Headportraitg.setVisibility(View.INVISIBLE); iv_vip_Headportraith.setVisibility(View.INVISIBLE); tv_Cylindera.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderb.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderc.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderd.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylindere.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderf.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderg.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderh.setBackgroundResource(R.drawable.vip_cylinderb_shape); }else if (getVipLevelInfo.getLevel() == 5){ Speedmultiplier.setText("1.5"); GlideUtil.load(context ,activity , ApiUtil.IMG_URL + PrefJsonUtil.getProfile(context).getPicture() , iv_vip_Headportraite); iv_vip_Headportraita.setVisibility(View.INVISIBLE); iv_vip_Headportraitb.setVisibility(View.INVISIBLE); iv_vip_Headportraitc.setVisibility(View.INVISIBLE); iv_vip_Headportraitd.setVisibility(View.INVISIBLE); iv_vip_Headportraite.setVisibility(View.VISIBLE); iv_vip_Headportraitf.setVisibility(View.INVISIBLE); iv_vip_Headportraitg.setVisibility(View.INVISIBLE); iv_vip_Headportraith.setVisibility(View.INVISIBLE); tv_Cylindera.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderb.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderc.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderd.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylindere.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderf.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderg.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderh.setBackgroundResource(R.drawable.vip_cylinderb_shape); }else if (getVipLevelInfo.getLevel() == 6){ Speedmultiplier.setText("1.6"); GlideUtil.load(context ,activity , ApiUtil.IMG_URL + PrefJsonUtil.getProfile(context).getPicture() , iv_vip_Headportraitf); iv_vip_Headportraita.setVisibility(View.INVISIBLE); iv_vip_Headportraitb.setVisibility(View.INVISIBLE); iv_vip_Headportraitc.setVisibility(View.INVISIBLE); iv_vip_Headportraitd.setVisibility(View.INVISIBLE); iv_vip_Headportraite.setVisibility(View.INVISIBLE); iv_vip_Headportraitf.setVisibility(View.VISIBLE); iv_vip_Headportraitg.setVisibility(View.INVISIBLE); iv_vip_Headportraith.setVisibility(View.INVISIBLE); tv_Cylindera.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderb.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderc.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderd.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylindere.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderf.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderg.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderh.setBackgroundResource(R.drawable.vip_cylinderb_shape); }else if (getVipLevelInfo.getLevel() == 7){ Speedmultiplier.setText("1.7"); GlideUtil.load(context ,activity , ApiUtil.IMG_URL + PrefJsonUtil.getProfile(context).getPicture() , iv_vip_Headportraitg); iv_vip_Headportraita.setVisibility(View.INVISIBLE); iv_vip_Headportraitb.setVisibility(View.INVISIBLE); iv_vip_Headportraitc.setVisibility(View.INVISIBLE); iv_vip_Headportraitd.setVisibility(View.INVISIBLE); iv_vip_Headportraite.setVisibility(View.INVISIBLE); iv_vip_Headportraitf.setVisibility(View.INVISIBLE); iv_vip_Headportraitg.setVisibility(View.VISIBLE); iv_vip_Headportraith.setVisibility(View.INVISIBLE); tv_Cylindera.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderb.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderc.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderd.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylindere.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderf.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderg.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderh.setBackgroundResource(R.drawable.vip_cylinderb_shape); }else if (getVipLevelInfo.getLevel() == 8){ Speedmultiplier.setText("1.8"); GlideUtil.load(context ,activity , ApiUtil.IMG_URL + PrefJsonUtil.getProfile(context).getPicture() , iv_vip_Headportraith); iv_vip_Headportraita.setVisibility(View.INVISIBLE); iv_vip_Headportraitb.setVisibility(View.INVISIBLE); iv_vip_Headportraitc.setVisibility(View.INVISIBLE); iv_vip_Headportraitd.setVisibility(View.INVISIBLE); iv_vip_Headportraite.setVisibility(View.INVISIBLE); iv_vip_Headportraitf.setVisibility(View.INVISIBLE); iv_vip_Headportraitg.setVisibility(View.INVISIBLE); iv_vip_Headportraith.setVisibility(View.VISIBLE); tv_Cylindera.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderb.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderc.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderd.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylindere.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderf.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderg.setBackgroundResource(R.drawable.vip_cylindera_shape); tv_Cylinderh.setBackgroundResource(R.drawable.vip_cylindera_shape); }else if (getVipLevelInfo.getLevel() == 11){ Speedmultiplier.setText("1.2"); GlideUtil.load(context ,activity , ApiUtil.IMG_URL + PrefJsonUtil.getProfile(context).getPicture() , iv_vip_Headportraita); iv_vip_Headportraita.setVisibility(View.VISIBLE); iv_vip_Headportraitb.setVisibility(View.INVISIBLE); iv_vip_Headportraitc.setVisibility(View.INVISIBLE); iv_vip_Headportraitd.setVisibility(View.INVISIBLE); iv_vip_Headportraite.setVisibility(View.INVISIBLE); iv_vip_Headportraitf.setVisibility(View.INVISIBLE); iv_vip_Headportraitg.setVisibility(View.INVISIBLE); iv_vip_Headportraith.setVisibility(View.INVISIBLE); tv_Cylindera.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderb.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderc.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderd.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylindere.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderf.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderg.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderh.setBackgroundResource(R.drawable.vip_cylinderb_shape); }else if (getVipLevelInfo.getLevel() == 12){ Speedmultiplier.setText("1.3"); GlideUtil.load(context ,activity , ApiUtil.IMG_URL + PrefJsonUtil.getProfile(context).getPicture() , iv_vip_Headportraitb); iv_vip_Headportraita.setVisibility(View.INVISIBLE); iv_vip_Headportraitb.setVisibility(View.VISIBLE); iv_vip_Headportraitc.setVisibility(View.INVISIBLE); iv_vip_Headportraitd.setVisibility(View.INVISIBLE); iv_vip_Headportraite.setVisibility(View.INVISIBLE); iv_vip_Headportraitf.setVisibility(View.INVISIBLE); iv_vip_Headportraitg.setVisibility(View.INVISIBLE); iv_vip_Headportraith.setVisibility(View.INVISIBLE); tv_Cylindera.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderb.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderc.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderd.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylindere.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderf.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderg.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderh.setBackgroundResource(R.drawable.vip_cylinderb_shape); }else if (getVipLevelInfo.getLevel() == 13){ Speedmultiplier.setText("1.4"); GlideUtil.load(context ,activity , ApiUtil.IMG_URL + PrefJsonUtil.getProfile(context).getPicture() , iv_vip_Headportraitc); iv_vip_Headportraita.setVisibility(View.INVISIBLE); iv_vip_Headportraitb.setVisibility(View.INVISIBLE); iv_vip_Headportraitc.setVisibility(View.VISIBLE); iv_vip_Headportraitd.setVisibility(View.INVISIBLE); iv_vip_Headportraite.setVisibility(View.INVISIBLE); iv_vip_Headportraitf.setVisibility(View.INVISIBLE); iv_vip_Headportraitg.setVisibility(View.INVISIBLE); iv_vip_Headportraith.setVisibility(View.INVISIBLE); tv_Cylindera.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderb.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderc.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderd.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylindere.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderf.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderg.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderh.setBackgroundResource(R.drawable.vip_cylinderb_shape); }else if (getVipLevelInfo.getLevel() == 14){ Speedmultiplier.setText("1.5"); GlideUtil.load(context ,activity , ApiUtil.IMG_URL + PrefJsonUtil.getProfile(context).getPicture() , iv_vip_Headportraitd); iv_vip_Headportraita.setVisibility(View.INVISIBLE); iv_vip_Headportraitb.setVisibility(View.INVISIBLE); iv_vip_Headportraitc.setVisibility(View.INVISIBLE); iv_vip_Headportraitd.setVisibility(View.VISIBLE); iv_vip_Headportraite.setVisibility(View.INVISIBLE); iv_vip_Headportraitf.setVisibility(View.INVISIBLE); iv_vip_Headportraitg.setVisibility(View.INVISIBLE); iv_vip_Headportraith.setVisibility(View.INVISIBLE); tv_Cylindera.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderb.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderc.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderd.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylindere.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderf.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderg.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderh.setBackgroundResource(R.drawable.vip_cylinderb_shape); }else if (getVipLevelInfo.getLevel() == 15){ Speedmultiplier.setText("1.6"); GlideUtil.load(context ,activity , ApiUtil.IMG_URL + PrefJsonUtil.getProfile(context).getPicture() , iv_vip_Headportraite); iv_vip_Headportraita.setVisibility(View.INVISIBLE); iv_vip_Headportraitb.setVisibility(View.INVISIBLE); iv_vip_Headportraitc.setVisibility(View.INVISIBLE); iv_vip_Headportraitd.setVisibility(View.INVISIBLE); iv_vip_Headportraite.setVisibility(View.VISIBLE); iv_vip_Headportraitf.setVisibility(View.INVISIBLE); iv_vip_Headportraitg.setVisibility(View.INVISIBLE); iv_vip_Headportraith.setVisibility(View.INVISIBLE); tv_Cylindera.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderb.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderc.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderd.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylindere.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderf.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderg.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderh.setBackgroundResource(R.drawable.vip_cylinderb_shape); }else if (getVipLevelInfo.getLevel() == 16){ Speedmultiplier.setText("1.7"); GlideUtil.load(context ,activity , ApiUtil.IMG_URL + PrefJsonUtil.getProfile(context).getPicture() , iv_vip_Headportraitf); iv_vip_Headportraita.setVisibility(View.INVISIBLE); iv_vip_Headportraitb.setVisibility(View.INVISIBLE); iv_vip_Headportraitc.setVisibility(View.INVISIBLE); iv_vip_Headportraitd.setVisibility(View.INVISIBLE); iv_vip_Headportraite.setVisibility(View.INVISIBLE); iv_vip_Headportraitf.setVisibility(View.VISIBLE); iv_vip_Headportraitg.setVisibility(View.INVISIBLE); iv_vip_Headportraith.setVisibility(View.INVISIBLE); tv_Cylindera.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderb.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderc.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderd.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylindere.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderf.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderg.setBackgroundResource(R.drawable.vip_cylinderb_shape); tv_Cylinderh.setBackgroundResource(R.drawable.vip_cylinderb_shape); }else if (getVipLevelInfo.getLevel() == 17){ Speedmultiplier.setText("1.8"); GlideUtil.load(context ,activity , ApiUtil.IMG_URL + PrefJsonUtil.getProfile(context).getPicture() , iv_vip_Headportraitg); iv_vip_Headportraita.setVisibility(View.INVISIBLE); iv_vip_Headportraitb.setVisibility(View.INVISIBLE); iv_vip_Headportraitc.setVisibility(View.INVISIBLE); iv_vip_Headportraitd.setVisibility(View.INVISIBLE); iv_vip_Headportraite.setVisibility(View.INVISIBLE); iv_vip_Headportraitf.setVisibility(View.INVISIBLE); iv_vip_Headportraitg.setVisibility(View.VISIBLE); iv_vip_Headportraith.setVisibility(View.INVISIBLE); tv_Cylindera.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderb.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderc.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderd.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylindere.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderf.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderg.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderh.setBackgroundResource(R.drawable.vip_cylinderb_shape); }else if (getVipLevelInfo.getLevel() == 18){ Speedmultiplier.setText("1.9"); GlideUtil.load(context ,activity , ApiUtil.IMG_URL + PrefJsonUtil.getProfile(context).getPicture() , iv_vip_Headportraith); iv_vip_Headportraita.setVisibility(View.INVISIBLE); iv_vip_Headportraitb.setVisibility(View.INVISIBLE); iv_vip_Headportraitc.setVisibility(View.INVISIBLE); iv_vip_Headportraitd.setVisibility(View.INVISIBLE); iv_vip_Headportraite.setVisibility(View.INVISIBLE); iv_vip_Headportraitf.setVisibility(View.INVISIBLE); iv_vip_Headportraitg.setVisibility(View.INVISIBLE); iv_vip_Headportraith.setVisibility(View.VISIBLE); tv_Cylindera.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderb.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderc.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderd.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylindere.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderf.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderg.setBackgroundResource(R.drawable.svip_cylinder_shape); tv_Cylinderh.setBackgroundResource(R.drawable.svip_cylinder_shape); } } }
到这里就全部写完了,是不是感觉很简单了