android studio天气预报

这是一个展示天气预报应用UI的设计示例,包含一周内每天的最高温度、最低温度及天气情况。布局使用了TableLayout,表格中分别展示了日期、最高气温、最低气温以及对应的天气图标。设计简洁明了,易于阅读。
摘要由CSDN通过智能技术生成
<?xml version="1.0" encoding="UTF-8"?>

-<TableLayout android:shrinkColumns="*" android:stretchColumns="*" android:layout_height="match_parent" android:layout_width="match_parent" xmlns:android="http://schemas.android.com/apk/res/android">


-<TableRow android:layout_height="wrap_content" android:layout_width="match_parent">

<TextView android:layout_height="wrap_content" android:layout_width="match_parent" android:textColor="#000000" android:textSize="20dp" android:text="天气预报" android:layout_span="6" android:gravity="center"/>

</TableRow>

<View android:layout_height="2sp" android:background="#000000"/>


-<TableRow android:layout_height="match_parent" android:layout_width="match_parent">

<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text=""/>

<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="周一"/>

<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="周二"/>

<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="周三"/>

<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="周四"/>

<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="周五"/>

</TableRow>


-<TableRow android:layout_height="match_parent" android:layout_width="match_parent">

<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="最高温度"/>

<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="18℃"/>

<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="10℃"/>

<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="13℃"/>

<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="15℃"/>

<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="16℃"/>

</TableRow>


-<TableRow android:layout_height="match_parent" android:layout_width="match_parent">

<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="最低温度"/>

<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="2℃"/>

<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="4℃"/>

<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="5℃"/>

<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="8℃"/>

<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="10℃"/>

</TableRow>


-<TableRow android:layout_height="match_parent" android:layout_width="match_parent">

<TextView android:text="天气情况"/>

<ImageView android:src="@drawable/clouds"/>

<ImageView android:src="@drawable/lcould"/>

<ImageView android:src="@drawable/suns"/>

<ImageView android:src="@drawable/clouds"/>

<ImageView android:src="@drawable/snows"/>

</TableRow>

</TableLayout>

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值