<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="15dp"
android:background="#8000"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginTop="15dp"
android:text="空气质量"
android:textColor="#fff"
android:textSize="20sp"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="15dp"
>
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_centerInParent="true"
>
<TextView
android:id="@+id/aqi_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textColor="#fff"
android:textSize="40sp"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textColor="#fff"
android:text="AQI指数"
/>
</LinearLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
>
<TextView
android:id="@+id/pm25_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textColor="#fff"
android:textSize="40sp"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="PM2.5 指数"
android:textColor="#fff"
/>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
没有合适的资源?快使用搜索试试~ 我知道了~
《第一行代码》酷欧天气(kotlin版)
共42个文件
xml:14个
png:10个
kt:7个
4星 · 超过85%的资源 需积分: 50 143 下载量 93 浏览量
2017-05-24
22:02:11
上传
评论 6
收藏 142KB ZIP 举报
温馨提示
使用Kotlin对《第一行代码:Android》——郭霖,重写了最后的实践”酷欧天气“
资源推荐
资源详情
资源评论
收起资源包目录
WeatherKotlin.zip (42个子文件)
WeatherKotlin
.gitignore 127B
gradle
wrapper
gradle-wrapper.jar 52KB
gradle-wrapper.properties 248B
build.gradle 767B
gradlew.bat 2KB
gradlew 5KB
app
.gitignore 8B
build.gradle 1KB
proguard-rules.pro 949B
libs
src
test
java
cn
cslg
weatherkotlin
ExampleUnitTest.kt 403B
main
AndroidManifest.xml 868B
java
cn
cslg
weatherkotlin
MainActivity.kt 771B
ChooseAreaFragment.kt 6KB
Adapters.kt 2KB
weatherapi
datas.kt 2KB
WeatherActivity.kt 6KB
res
values
styles.xml 392B
colors.xml 214B
strings.xml 79B
mipmap-xxhdpi
ic_launcher_round.png 11KB
ic_launcher.png 7KB
layout
title.xml 1KB
activity_main.xml 527B
suggestion.xml 1KB
forecast.xml 914B
activity_weather.xml 2KB
aqi.xml 3KB
choose_area.xml 2KB
now.xml 815B
list_city_item.xml 525B
forecast_item.xml 1KB
mipmap-xhdpi
ic_launcher_round.png 7KB
ic_launcher.png 5KB
mipmap-hdpi
ic_launcher_round.png 5KB
ic_launcher.png 3KB
mipmap-mdpi
ic_launcher_round.png 3KB
ic_launcher.png 2KB
mipmap-xxxhdpi
ic_launcher_round.png 16KB
ic_launcher.png 9KB
androidTest
java
cn
cslg
weatherkotlin
ExampleInstrumentedTest.kt 702B
gradle.properties 747B
settings.gradle 16B
共 42 条
- 1
资源评论
- aggier2017-12-08可以,新的Kotlin 代码需要第一时间学习,跟进!
devilyouwei
- 粉丝: 74
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功