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


  • 相关阅读:
    React项目安装过程及node版本太老引发问题
    利用git上传、拉取代码,密码和用户名字不正确时,如何操作
    Vue和react的优缺点
    同步异步差别
    深拷贝和浅拷贝区别
    vue项目引用Swiper.js在低版本浏览器出现错误
    uniApp h5分享实现
    input上传图片样子太丑了,实现美化的tips
    关于cli3.0跨域的处理
    webpack4.0
  • 原文地址:https://www.cnblogs.com/xpxpxp2046/p/2301746.html
Copyright © 2011-2022 走看看