zoukankan      html  css  js  c++  java
  • android layout

     1 <?xml version="1.0" encoding="utf-8"?>
     2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     3     android:layout_width="fill_parent"
     4     android:layout_height="fill_parent"
     5     android:orientation="vertical" >
     6 
     7     <ProgressBar
     8         android:id="@+id/asynctask_progressBar"
     9         style="?android:attr/progressBarStyleHorizontal"
    10         android:layout_width="fill_parent"
    11         android:layout_height="wrap_content" >
    12     </ProgressBar>
    13 
    14     <Button
    15         android:id="@+id/asynctask_download_btn"
    16         android:layout_width="wrap_content"
    17         android:layout_height="wrap_content"
    18         android:text="下载图片" >
    19     </Button>
    20 
    21     <ImageView
    22         android:id="@+id/asynctask_imageView"
    23         android:layout_width="wrap_content"
    24         android:layout_height="wrap_content" />
    25 
    26 </LinearLayout>

    这种情况下有_符号 在没有用android:id="@+id/wv" 的情况下

    mImageView= (ImageView) findViewById(R.id.asynctask_imageView);

    否则tv=(TextView)findViewById(R.id.tv);

  • 相关阅读:
    函数名的使用-闭包-迭代器
    函数
    文件操作
    基础数据补充
    python基础-数据类型(2)
    python基础-数据类型(1)
    PHP 缓存技术(一)
    linux学习笔记整理(九)
    linux学习笔记整理(八)
    linux学习笔记整理(七)
  • 原文地址:https://www.cnblogs.com/ggzjj/p/2856202.html
Copyright © 2011-2022 走看看