Android加载数据过程中的菊花显示

 LinearLayout mProgressLayout=new LinearLayout(this);
  mProgressLayout.setMinimumHeight(30);
  mProgressLayout.setGravity(Gravity.CENTER);
  mProgressLayout.setOrientation(LinearLayout.HORIZONTAL);
  LayoutParams mLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT);
  ProgressBar mProgressBar=new ProgressBar(this);
  mProgressBar.setPadding(100, 250, 5, 80);
    mProgressLayout.addView(mProgressBar,mLayoutParams);
  TextView mContent=new TextView(this);
  mContent.setText("加载中...");
  mContent.setTextSize(19);
  mContent.setTextColor(Color.BLACK);
  mContent.setPadding(0, 250, 0, 80);  
  mProgressLayout.addView(mContent, mLayoutParams);
  mProgressLayout.setVisibility(View.VISIBLE);
  MsgConditionActivity.this.addContentView(mProgressLayout, mLayoutParams);

你可能感兴趣的:(Android加载数据过程中的菊花显示)