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


  • 相关阅读:
    javascript:void(0) 和 href="#"的区别
    Subverion仓库迁移知识点整理
    EasyUI出现多条边框重合的问题
    EasyUI相关知识点整理
    EasyUI添加进度条
    yum配置文件中baseurl和mirrorlist的区别
    xshell中出现的绿色背景的文件夹
    Docker相关知识整理
    mysql 实验论证 innodb表级锁与行级锁
    MySQL索引优化实例说明
  • 原文地址:https://www.cnblogs.com/xpxpxp2046/p/2301746.html
Copyright © 2011-2022 走看看