Skip to content

Commit b7885ed

Browse files
committed
去除进度弹窗中的文字。
1 parent a7e5318 commit b7885ed

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

android-support/src/main/java/co/bxvip/android/commonlib/loadingdialog/LoadingViewLayout.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)