Android– 带图像的布局

Android– 带图像的布局,第1张

概述我已经在这几天工作但我无法得到我需要的布局.我想有一个类似于下图的布局.任何人都可以指导我吗?我应该使用什么样的布局和视图?谢谢:)解决方法:我添加了一些通过在eclipse中的布局编辑器中绘制你想要的代码而生成的代码.看起来像这样<?xmlversion="1.0"encoding="utf-8"?>

我已经在这几天工作但我无法得到我需要的布局.
我想有一个类似于下图的布局.
任何人都可以指导我吗?我应该使用什么样的布局和视图?

谢谢 :)

解决方法:

我添加了一些通过在eclipse中的布局编辑器中绘制你想要的代码而生成的代码.

看起来像这样

<?xml version="1.0" enCoding="utf-8"?>    <linearLayout xmlns:androID="http://schemas.androID.com/apk/res/androID"    androID:layout_wIDth="fill_parent"    androID:layout_height="fill_parent"    androID:orIEntation="vertical" ><linearLayout    androID:ID="@+ID/linearLayout1"    androID:layout_wIDth="fill_parent"    androID:layout_height="fill_parent"    androID:orIEntation="vertical" >    <linearLayout        androID:ID="@+ID/linearLayout2"        androID:layout_wIDth="fill_parent"        androID:layout_height="wrap_content"        androID:layout_weight="0.81" >        <ImageVIEw            androID:ID="@+ID/imageVIEw2"            androID:layout_wIDth="0dp"            androID:layout_height="fill_parent"            androID:layout_weight="1.00"            androID:src="@drawable/ic_launcher" />        <linearLayout            androID:ID="@+ID/linearLayout3"            androID:layout_wIDth="0dp"            androID:layout_height="fill_parent"            androID:layout_weight="1"            androID:orIEntation="vertical" >            <ImageVIEw                androID:ID="@+ID/ImageVIEw02"                androID:layout_wIDth="fill_parent"                androID:layout_height="0dp"                androID:layout_weight="1.00"                androID:src="@drawable/ic_launcher" />            <ImageVIEw                androID:ID="@+ID/ImageVIEw01"                androID:layout_wIDth="fill_parent"                androID:layout_height="0dp"                androID:layout_weight="1.00"                androID:src="@drawable/ic_launcher" />            <ImageVIEw                androID:ID="@+ID/imageVIEw3"                androID:layout_wIDth="fill_parent"                androID:layout_height="0dp"                androID:layout_weight="1.00"                androID:src="@drawable/ic_launcher" />        </linearLayout>    </linearLayout>    <ImageVIEw        androID:ID="@+ID/imageVIEw1"        androID:layout_wIDth="fill_parent"        androID:layout_height="wrap_content"        androID:src="@drawable/ic_launcher" /></linearLayout></linearLayout>
总结

以上是内存溢出为你收集整理的Android – 带图像的布局全部内容,希望文章能够帮你解决Android – 带图像的布局所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1115459.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-29
下一篇2022-05-29

发表评论

登录后才能评论

评论列表(0条)

    保存