![[android] 天气app布局练习,第1张 [android] 天气app布局练习,第1张](/aiimages/%5Bandroid%5D+%E5%A4%A9%E6%B0%94app%E5%B8%83%E5%B1%80%E7%BB%83%E4%B9%A0.png)
主要练习一下relativeLayout和linearLayout
<relativeLayout xmlns:androID="http://schemas.androID.com/apk/res/androID" xmlns:tools="http://schemas.androID.com/tools" androID:layout_wIDth="match_parent" androID:layout_height androID:background="#3186D9" tools:context="${relativePackage}.${activityClass}" > ImageVIEw androID:layout_wIDth="wrap_content" androID:layout_height androID:layout_marginleft="10dp" androID:layout_margintop androID:src="@drawable/icon_home" /> TextVIEw androID:layout_centerHorizontal="true"="12dp" androID:text="北京" androID:textcolor="#FDFDFD" androID:layout_alignParentRight androID:layout_marginRight="@drawable/icon_more" androID:ID="@+ID/tv_number" androID:layout_wIDth="70dp"="29"="#fff" androID:textSize="50sp" androID:layout_aligntop="@ID/tv_number" androID:layout_toRightOf="°"="#FDFDFD"="30sp" linearLayout androID:layout_below androID:orIEntation="horizontal" > TextVIEw androID:layout_height androID:layout_centerHorizontal androID:text="多云" androID:textcolor/> =" | "="#bbb" ="空气优"/> </linearLayout>relativeLayout>
总结
以上是内存溢出为你收集整理的[android] 天气app布局练习全部内容,希望文章能够帮你解决[android] 天气app布局练习所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)