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);

原文地址:https://www.cnblogs.com/ggzjj/p/2856202.html