当前位置:编程学习 > wap >>

一个简单的layout问题,两行两列,其中一列合并的layout问题

总共有3个View,布局如下图,找了半天也没有找到应该用什么样的布局来布局,多谢!

--------------------编程问答-------------------- 用嵌套的LinearLayout或者RelativeLayout就行了啊 --------------------编程问答-------------------- 用这样的LinearLayout,结果imageview出不来,另外昨天mapview的问题找到原因了,是android 模拟器版本的问题,换成1.6的版本就好了。搞了我一宿

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/house_info_popup_rel"
    android:background="#80000000"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/house_info_popup_text_rel"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" android:orientation="vertical">    
<TextView
     android:id="@+id/house_info_pop_text_view_title"
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
android:textSize="6pt"    
     android:text="This is Title"
     />
<TextView android:id="@+id/house_info_pop_text_view_detail" 
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:layout_below="@+id/house_info_pop_text_view_title" 
android:textSize="6pt" 
android:text="This is detail info" 
/>    
</LinearLayout>    
<ImageView android:id="@+id/house_info_pop_iamge_view_icon" 
    android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:baselineAlignBottom="true"
android:layout_centerVertical="true"
android:layout_alignParentRight="true"  >
</ImageView>
  
</LinearLayout> 
--------------------编程问答-------------------- 出来了就好 ,最先我估计你可能就是模拟器的问题。
  
你是动态加载的图源吗?我看你ImageView里面属性没设置 ,我这面给你试了一下 , 可以啊 --------------------编程问答-------------------- 是忘了加图源的问题,我说怎么换layout就是出不来。太愚钝了我。
真是多谢! --------------------编程问答-------------------- 问题解决就好!顶!!
补充:移动开发 ,  Android
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,