<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" > <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" > <ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_launcher" /> <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" > <LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical" > <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" > <TextView
android:id="@+id/TextView05"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="我是控件textview1" /> <TextView
android:id="@+id/TextView04"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="我是控件textview1" />
</LinearLayout> <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" > <TextView
android:id="@+id/TextView03"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="我是控件textview1" /> <TextView
android:id="@+id/TextView02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="我是控件textview1" />
</LinearLayout> <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" > <TextView
android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="我是控件textview1"
android:layout_marginLeft="10dp"/> <TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="我是控件textview1"
android:layout_marginLeft="10dp"/> </LinearLayout> </LinearLayout> </LinearLayout> </LinearLayout> <TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="我是控件textviw 我是控件textview 我是控件textview" /></LinearLayout>
给满吧,,,
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" > <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" > <ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_launcher" /> <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" > <LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical" > <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" > <TextView
android:id="@+id/TextView05"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="我是控件textview1" /> <TextView
android:id="@+id/TextView04"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="我是控件textview1" />
</LinearLayout> <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" > <TextView
android:id="@+id/TextView03"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="我是控件textview1" /> <TextView
android:id="@+id/TextView02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:text="我是控件textview1" />
</LinearLayout> <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" > <TextView
android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="我是控件textview1"
android:layout_marginLeft="10dp"/> <TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="我是控件textview1"
android:layout_marginLeft="10dp"/> </LinearLayout> </LinearLayout> </LinearLayout> </LinearLayout> <TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="我是控件textviw 我是控件textview 我是控件textview" /></LinearLayout>
给满吧,,,
解决方案 »
- 【分享】关于安卓智能电视的一些常用命令
- android HttpRespons 频繁的连接请求 死机
- 如何封装一个自定义控件的监听事件?
- 想做android开发,大家给推荐个调试用的手机呗
- 有谁知道flash开发android系统的应用可行性怎么样?
- 用VedioView类播视频只有声音没有图像
- android TextView中显示表情到边界时会有显示一半的情况
- 瀑布流滑动顶部出现参差不齐问题
- socket 一般是用的时候连接还是一直连接
- android字节与字符串转换
- EditText的监听事件addTextChangedListener(new TextWatcher())
- Android 网络通信 Connection Reset By Peers 错误
一个控件Textview和一个控件ImageView如何布局成图片中的效果?
html里div+ float:left 就可以。
android如何做?
小弟写出了的要么就是imageview单独占一列,要么就是imageview覆盖在textview的上面,遮挡住了textview的文字。
小弟写出了的要么就是imageview单独占一列,要么就是imageview覆盖在textview的上面,遮挡住了textview的文字。你这样不套父控件的话会很麻烦的...为什么要这么做呢
小弟写出了的要么就是imageview单独占一列,要么就是imageview覆盖在textview的上面,遮挡住了textview的文字。你这样不套父控件的话会很麻烦的...为什么要这么做呢
套不套父控件无所谓,关键就是这个页面就一个Textview,而且实现如图所示的布局就可以。
小弟写出了的要么就是imageview单独占一列,要么就是imageview覆盖在textview的上面,遮挡住了textview的文字。你这样不套父控件的话会很麻烦的...为什么要这么做呢
套不套父控件无所谓,关键就是这个页面就一个Textview,而且实现如图所示的布局就可以。
我理解你是不是想说这些textview的id是一个