zoukankan      html  css  js  c++  java
  • APIDemo 学习记录[原创]

    1. ProgressBar

    在 Activity 中有如下关于 ProgressBar 的方法:

    1) setProgressBarVisibility

      作用: Sets the visibility of the progress bar in the title. 设置标题栏上的水平进度条是否可见.

    2) setProgressBarIndeterminateVisibility

      作用: Sets the visibility of the indeterminate progress bar in the title. 设置标题栏上的圆形(不确定)进度条是否可见.

    3) setProgressBarIndeterminate

      作用: Sets whether the horizontal progress bar in the title should be indeterminate (the circular is always indeterminate). 是否将标题栏上的水平进度条设置成不确定的.

    4) setProgress

      作用: Sets the progress for the progress bars in the title. 设置标题栏上的水平进度条的进度值.

    5) setSecondaryProgress

      作用: Sets the secondary progress for the progress bar in the title.

    ========== ========== ========== ========== ========== ========== ========== ========== ========== ==========

    2. view 的 enabled 状态

    view.setVisibility(View.VISIBILE);

    view.setVisibility(View.INVISIBLE);

    view.setVisibility(View.GONE);

    view.setVisibility() 方法: Set the enabled state of this view. 设置 view 的 enabled 状态(是否可见).

    View.VISIBILE: This view is visible. 设置 view 可见. 

    View.INVISIBLE: This view is invisible, but it still takes up space for layout purposes. 设置 view 不可见, 但是它仍然会占据原有的布局空间.

    View.GONE: This view is invisible, and it doesn't take any space for layout purposes. 设置 view 不可见, 并且不会占据任何布局空间.

    ========== ========== ========== ========== ========== ========== ========== ========== ========== ==========

    3. ListActivity


  • 相关阅读:
    在shell脚本中执行shell脚本
    通过shell脚本批处理es数据
    JOIN a table with a subquery
    学习率 测试
    步长为float
    解决pycharm问题:module 'pip' has no attribute 'main'
    段错误 “段错误(segment fault)”、“非法操作,该内存地址不能read/write” 非法指针解引用造成的错误。
    快速删除指定目录的指定条件的文件
    包依赖管理 项目的分布式迁移
    判断操作系统
  • 原文地址:https://www.cnblogs.com/xpxpxp2046/p/2301746.html
Copyright © 2011-2022 走看看