@@ -28,7 +28,7 @@ public class LoadingViewLayout extends RelativeLayout {
2828
2929 private LinearLayout rootLinearLayout ;
3030
31- private TextView textView ;
31+ // private TextView textView;
3232
3333 public BxToolIconView loadingBar ;
3434
@@ -52,20 +52,20 @@ public LoadingViewLayout(Context context, AttributeSet attrs, int defStyleAttr)
5252 .setDefaultBgColor (Color .BLACK )
5353 .setCornerRadius (10 )
5454 .create ());
55- textView = new TextView (context );
56- textView .setText ("加载中" );
57- textView .setTextColor (Color .LTGRAY );
55+ // textView = new TextView(context);
56+ // textView.setText("加载中");
57+ // textView.setTextColor(Color.LTGRAY);
5858 LinearLayout .LayoutParams loadingBarParams = new LinearLayout .LayoutParams (dip2px (context , 60 ), dip2px (context , 60 ));
5959 loadingBarParams .gravity = CENTER ;
6060 loadingBarParams .topMargin = dip2px (context , 15 );
6161 loadingBar = new BxToolIconView (context );
6262 loadingBar .setPadding (10 , 10 , 10 , 10 );
6363 loadingBar .createFlowerProgressBar ().setDrawColor (Color .LTGRAY ).draw ();
6464 rootLinearLayout .addView (loadingBar , loadingBarParams );
65- LinearLayout .LayoutParams textParams = new LinearLayout .LayoutParams (ViewGroup .LayoutParams .WRAP_CONTENT , ViewGroup .LayoutParams .WRAP_CONTENT );
66- textParams .gravity = CENTER ;
67- textParams .topMargin = dip2px (context , 15 );
68- rootLinearLayout .addView (textView , textParams );
65+ // LinearLayout.LayoutParams textParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
66+ // textParams.gravity = CENTER;
67+ // textParams.topMargin = dip2px(context, 15);
68+ // rootLinearLayout.addView(textView, textParams);
6969 LayoutParams rootParams = new LayoutParams (dip2px (context , 120 ), dip2px (context , 120 ));
7070 rootParams .addRule (CENTER_IN_PARENT );
7171 this .addView (rootLinearLayout , rootParams );
0 commit comments