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


  • 相关阅读:
    Java多线程:线程与进程
    Java多线程:线程间通信之volatile与sychronized
    Java基础:内存模型
    Windows10 ubuntu子系统的启用即基础配置
    Java基础:Java虚拟机(JVM)
    前序,中序,后序问题
    Java枚举enum以及应用:枚举实现单例模式
    Java外部类可以访问内部类private变量
    Java单例模式(Singleton)以及实现
    Java构造器:级联调用,调用兄弟构造器
  • 原文地址:https://www.cnblogs.com/xpxpxp2046/p/2301746.html
Copyright © 2011-2022 走看看