布局问题, listview 为什么不自动向下拉伸,谢谢!


<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/frm_Layout_relativelayout"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/orderdetails_backgroundimage"
    android:orientation="vertical" >
    
  <LinearLayout 
         android:id="@+id/frm_Layout_titel"
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:orientation="horizontal"
         android:gravity="center"
       
      >
      <TextView 
            android:text="订单"
             android:textSize="20dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
          />
  </LinearLayout>  
<ScrollView
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_below="@+id/frm_Layout_titel"
    >
<FrameLayout 
    android:id="@+id/frm_Layout_fl"
    android:layout_width="match_parent"
    android:layout_height="fill_parent"
    >
<LinearLayout
     android:layout_width="match_parent"
     android:layout_height="fill_parent"
     android:orientation="vertical">
    <!--  <View
android:layout_width="match_parent"
android:layout_height="1dip"
android:background="#696969" />-->
     
      <!--  订单信息view -->
        <LinearLayout 
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
         >
     <LinearLayout 
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:orientation="vertical"
         >
      
     <LinearLayout 
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
         >
          <TextView 
                android:text="订单号:"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="26dp"
              />
          <TextView 
                android:id="@+id/frm_textview_orderno"
                android:text="9201560168871235201"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
              />
     </LinearLayout>
     <LinearLayout 
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
         
         >
          <TextView
                android:id="@+id/frm_textview_ordertime" 
                android:text="2015-06-16 23:55:56"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="26dp"
              />
           
         
     </LinearLayout>
     
     <!--  订购数view -->
     <LinearLayout 
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
         >
          <TextView 
                android:id="@+id/frm_textview_orderqty"
                android:text="金额:"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                 android:textColor="#ea1c1c"  
                android:layout_marginLeft="@26dp"  
              />
           
          <TextView 
                android:id="@+id/frm_textview_orderamount"
                android:text="金额:9500.00"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                  android:textColor="#ea1c1c"  
              />
     </LinearLayout>
     
     </LinearLayout>

     <TextView
         android:id="@+id/frm_textview_orderstate"
         android:layout_width="wrap_content"
         android:layout_height="match_parent"
         android:layout_marginLeft="50dp"
         android:gravity="center"
         android:text="已完成"
         android:textColor="#ea1c1c"
         android:textSize="20" />

     </LinearLayout>
     
       <!-- 实线-->
       <ImageView 
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
               android:layout_marginTop="5dp"
              android:src="@drawable/orderdetails_fullline"
           />
      <!--  <View
android:layout_width="match_parent"
android:layout_height="1dip"
android:background="#696969" />-->
     
      <!--  供应商view -->
      <TextView 
            
            android:text="供应商信息"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:textSize="20dp" 
            android:layout_marginLeft="26dp" 
          />
           
   
     <!--  供应商信息1view -->
     <LinearLayout 
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="horizontal"
         >
          <TextView 
                android:text="XXXXXXXXXXX"
                android:layout_width="200dp"
                android:layout_height="match_parent"
                android:layout_marginLeft="26dp"
              />
           <TextView 
                android:layout_width="match_parent"
                android:layout_height="match_parent"
              />
     </LinearLayout>
      <TextView 
            android:id="@+id/frm_textview_supaddress"
            android:text="BBBBBXXXXXXXXXXXXX"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginLeft="26dp"
          />
       <ImageView 
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
               android:layout_marginTop="5dp"
              android:src="@drawable/orderdetails_fullline"
           />
      <!--  <View
android:layout_width="match_parent"
android:layout_height="1dip"
android:background="#696969" />-->
       <!--  备注view -->
       <TextView 
             android:text="备注"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:textSize="20dp"
             android:layout_marginLeft="26dp"  
           />
       <TextView 
             android:text="XXXXXXXXXXXXXXXXX!"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:layout_marginLeft="26dp"  
           />
       <ImageView 
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
               android:layout_marginTop="5dp"
              android:src="@drawable/orderdetails_fullline"
           />
    <!--  <View
android:layout_width="match_parent"
android:layout_height="1dip"
android:background="#696969" />-->
     <LinearLayout 
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="horizontal"
         >
          <TextView 
                android:text="订单明细"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="20dp"
                android:layout_marginLeft="26dp"
              />
          <RelativeLayout
            android:layout_width="fill_parent"
            android:layout_height="match_parent"
            android:gravity="right"
         >
          <ImageView
              android:layout_width="wrap_content"
              android:layout_height="match_parent"
              android:layout_centerHorizontal="true"
              android:src="@drawable/orderdetails_format"
              android:textSize="20sp" />
           </RelativeLayout>
         </LinearLayout>
       <ImageView 
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
               android:layout_marginTop="5dp"
              android:src="@drawable/orderdetails_dottedline"
           />
   <LinearLayout 
          android:layout_width="wrap_content"
         android:layout_height="wrap_content"
       >
     <ListView
         android:layout_width="wrap_content"
         android:layout_height="fill_parent"
         android:layout_marginLeft="26dp" >
     </ListView>
   </LinearLayout>
</LinearLayout>
</FrameLayout>
</ScrollView>
<FrameLayout 
       android:layout_width="fill_parent"
       android:layout_height="wrap_content"
       android:layout_alignBottom="@+id/frm_sl"
     >
<LinearLayout
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:orientation="horizontal">
<Button 
     android:textSize="40px"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:layout_weight="1"
     android:gravity="center"
    />
<Button 
     android:textSize="40px"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:layout_weight="1"
     android:gravity="center"
    />
<Button 
     android:textSize="40px"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:layout_weight="1"
     android:gravity="center"
    />
</LinearLayout>
</FrameLayout>
</RelativeLayout>

我的布局文件,为什么listview 不能显示完全,只能这样(图片),图片下面自己不会向下走,我已经设置了android:layout_height="fill_parent",为什么?
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值