TextView
android:gravity="center" //文字对其方式 top bottom left right center
android:textColor="#ffffff"//颜色
android:textSize="24sp" //字体
android:layout_width="wrap_content"//布局文字宽填充
android:layout_height="wrap_content" //高填充


Button
android:textAllCaps="false"//否 不对按钮英文默认转化

EditText
android:hint="go"//输入框提示语
android:maxLines="12"//最大行数 
 private EditText editext;//申明对象

    editext=(EditText) findViewById(R.id.editText);//获取页面对象

 String text= editext.getText().toString();//获取输入值

 

ImageView
   private ImageView imageView;
 imageView.setImageResource(R.drawable.ic_audiotrack_dark);//指定显示图片

 

ProgressBar
android:visibility="invisible"//加载。。 可见  in透明 gone 消失 get set 获取设置显示状态
style="?android:attr/progressBarStyle" 加载样式  

AlertDialog 提示
  AlertDialog.Builder dialog=new  AlertDialog.Builder(yzj.this);
                dialog.setTitle("this");//标题
                dialog.setMessage("thing");//信息
                dialog.setCancelable(false);//不能back返回
                dialog.setPositiveButton("ok", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {

                    }
                });
                dialog.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {

                    }
                });
        dialog.show();
 

 









相关文章:

  • 2022-02-05
  • 2021-04-21
  • 2021-08-03
  • 2022-12-23
  • 2021-04-23
  • 2021-08-07
猜你喜欢
  • 2022-12-23
  • 2021-11-13
  • 2021-11-27
  • 2021-10-08
  • 2021-10-01
相关资源
相似解决方案