2.0
1
WeatherApp-master/entry/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/build
|
14
WeatherApp-master/entry/build.gradle
Normal file
@@ -0,0 +1,14 @@
|
||||
apply plugin: 'com.huawei.ohos.hap'
|
||||
ohos {
|
||||
compileSdkVersion 5
|
||||
defaultConfig {
|
||||
compatibleSdkVersion 5
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
testCompile'junit:junit:4.12'
|
||||
implementation 'org.devio.hi.json:hijson:0.0.3'
|
||||
}
|
63
WeatherApp-master/entry/src/main/config.json
Normal file
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"app": {
|
||||
"bundleName": "org.devio.hm.weatherapp",
|
||||
"vendor": "devio",
|
||||
"version": {
|
||||
"code": 1,
|
||||
"name": "1.0"
|
||||
},
|
||||
"apiVersion": {
|
||||
"compatible": 5,
|
||||
"target": 5
|
||||
}
|
||||
},
|
||||
"deviceConfig": {},
|
||||
"module": {
|
||||
"package": "org.devio.hm.weatherapp",
|
||||
"name": "WeatherApp",
|
||||
"reqCapabilities": [
|
||||
"video_support"
|
||||
],
|
||||
"reqPermissions": [
|
||||
{
|
||||
"name": "ohos.permission.INTERNET"
|
||||
},
|
||||
{
|
||||
"name": "ohos.permission.GET_NETWORK_INFO"
|
||||
},
|
||||
{
|
||||
"name": "ohos.permission.SET_NETWORK_INFO"
|
||||
}
|
||||
],
|
||||
"deviceType": [
|
||||
"wearable"
|
||||
],
|
||||
"distro": {
|
||||
"deliveryWithInstall": true,
|
||||
"moduleName": "entry",
|
||||
"moduleType": "entry"
|
||||
},
|
||||
"abilities": [
|
||||
{
|
||||
"description": "$string:mainability_description",
|
||||
"formEnabled": false,
|
||||
"icon": "$media:icon",
|
||||
"label": "$string:.WeatherApp",
|
||||
"launchType": "standard",
|
||||
"name": "org.devio.hm.weatherapp.MainAbility",
|
||||
"orientation": "landscape",
|
||||
"skills": [
|
||||
{
|
||||
"entities": [
|
||||
"entity.system.home"
|
||||
],
|
||||
"actions": [
|
||||
"action.system.home"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "page"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@@ -0,0 +1,13 @@
|
||||
package org.devio.hm.weatherapp;
|
||||
|
||||
import org.devio.hm.weatherapp.slice.MainAbilitySlice;
|
||||
import ohos.aafwk.ability.Ability;
|
||||
import ohos.aafwk.content.Intent;
|
||||
|
||||
public class MainAbility extends Ability {
|
||||
@Override
|
||||
public void onStart(Intent intent) {
|
||||
super.onStart(intent);
|
||||
super.setMainRoute(MainAbilitySlice.class.getName());
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
package org.devio.hm.weatherapp.data;
|
||||
|
||||
public class CityMo {
|
||||
public String cityName;
|
||||
public String cityCode;
|
||||
|
||||
public CityMo(String cityName, String cityCode) {
|
||||
this.cityName = cityName;
|
||||
this.cityCode = cityCode;
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
package org.devio.hm.weatherapp.data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class DataMo {
|
||||
public ArrayList<CityMo> cityMos;
|
||||
|
||||
public DataMo(ArrayList<CityMo> cityMos){
|
||||
this.cityMos = cityMos;
|
||||
}
|
||||
}
|
@@ -0,0 +1,75 @@
|
||||
package org.devio.hm.weatherapp.data;
|
||||
|
||||
import ohos.aafwk.ability.AbilitySlice;
|
||||
import ohos.agp.components.*;
|
||||
import org.devio.hm.weatherapp.ResourceTable;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class ListItemProvider extends RecycleItemProvider {
|
||||
private AbilitySlice mSlice;
|
||||
private OnItemClickListener listener;
|
||||
private ArrayList<DataMo> dataMos = new ArrayList<>();
|
||||
|
||||
public ListItemProvider(AbilitySlice abilitySlice, OnItemClickListener listener){
|
||||
this.mSlice = abilitySlice;
|
||||
this.listener = listener;
|
||||
}
|
||||
|
||||
public void setData(ArrayList<CityMo> cityMos){
|
||||
this.dataMos.clear();
|
||||
int i = 0;
|
||||
ArrayList<CityMo> tempList = new ArrayList<>();
|
||||
for (CityMo mo:cityMos){
|
||||
if (i == 3){
|
||||
i = 0;
|
||||
dataMos.add(new DataMo(tempList));
|
||||
tempList = new ArrayList<>();
|
||||
}
|
||||
tempList.add(mo);
|
||||
i++;
|
||||
}
|
||||
dataMos.add(new DataMo(tempList));
|
||||
this.notifyDataChanged();
|
||||
}
|
||||
@Override
|
||||
public int getCount() {
|
||||
return dataMos.size();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getItem(int i) {
|
||||
return dataMos.get(i);
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getItemId(int i) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Component getComponent(int i, Component component, ComponentContainer componentContainer) {
|
||||
Component component_item = LayoutScatter.getInstance(mSlice).parse(ResourceTable.Layout_list_item, null, false);
|
||||
if ( !(component_item instanceof ComponentContainer)){
|
||||
return null;
|
||||
}
|
||||
ComponentContainer rootLayout = (ComponentContainer)component_item;
|
||||
DataMo dataMo = dataMos.get(i);
|
||||
for (CityMo mo:dataMo.cityMos){
|
||||
Text titleItem = (Text) LayoutScatter.getInstance(mSlice).parse(ResourceTable.Layout_item_title, null, false);
|
||||
titleItem.setText(mo.cityName);
|
||||
rootLayout.addComponent(titleItem);
|
||||
titleItem.setClickedListener(new Component.ClickedListener() {
|
||||
@Override
|
||||
public void onClick(Component component) {
|
||||
listener.OnItemClick(mo, i);
|
||||
}
|
||||
});
|
||||
}
|
||||
return component_item;
|
||||
}
|
||||
|
||||
public interface OnItemClickListener{
|
||||
void OnItemClick(CityMo cityMo, int position);
|
||||
}
|
||||
}
|
@@ -0,0 +1,92 @@
|
||||
package org.devio.hm.weatherapp.net;
|
||||
|
||||
import ohos.hiviewdfx.HiLog;
|
||||
import ohos.hiviewdfx.HiLogLabel;
|
||||
import ohos.net.NetHandle;
|
||||
import ohos.net.NetManager;
|
||||
import org.devio.hi.json.HiJson;
|
||||
import org.devio.hi.json.JSONException;
|
||||
import org.devio.hi.json.JSONObject;
|
||||
import org.devio.hm.weatherapp.util.HiExecutor;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.InputStream;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.Proxy;
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
import java.util.Map;
|
||||
|
||||
public class HiNet implements IHiNet{
|
||||
private NetManager netManager;
|
||||
private HiLogLabel logLabel = new HiLogLabel(0,0, HiNet.class.getSimpleName());
|
||||
|
||||
public HiNet(){
|
||||
netManager = NetManager.getInstance(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void get(String url, Map<String, String> params, NetListener listener) {
|
||||
String finalUrl = HiNetUtil.buildParams(url, params);
|
||||
HiLog.debug(logLabel, "finalUrl:" + finalUrl);
|
||||
HiExecutor.runBG(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
doGet(finalUrl, listener);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void doGet(String finalUrl, NetListener listener) {
|
||||
NetHandle netHandle = netManager.getDefaultNet();
|
||||
HttpURLConnection connection = null;
|
||||
InputStream inputStream = null;
|
||||
ByteArrayOutputStream baos = null;
|
||||
try {
|
||||
URL url = new URL(finalUrl);
|
||||
URLConnection urlConnection = netHandle.openConnection(url, Proxy.NO_PROXY);
|
||||
if (urlConnection instanceof HttpURLConnection){
|
||||
connection = (HttpURLConnection)urlConnection;
|
||||
}
|
||||
connection.setRequestMethod("GET");
|
||||
connection.connect();
|
||||
HiLog.debug(logLabel, "connect...");
|
||||
if (connection.getResponseCode() == 200){
|
||||
inputStream = connection.getInputStream();
|
||||
baos = new ByteArrayOutputStream();
|
||||
int readLen;
|
||||
byte[] bytes = new byte[1024];
|
||||
while((readLen = inputStream.read(bytes)) != -1){
|
||||
baos.write(bytes, 0, readLen);
|
||||
}
|
||||
String result = baos.toString();
|
||||
HiExecutor.runUI(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try{
|
||||
HiJson res = new HiJson(new JSONObject(result));
|
||||
listener.onSuccess(res);
|
||||
HiLog.debug(logLabel, "success.");
|
||||
} catch (JSONException e) {
|
||||
e.printStackTrace();
|
||||
listener.onFail("data parse error, msg" + e.toString());
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
HiLog.debug(logLabel, "Request fail, code:" + connection.getResponseCode());
|
||||
listener.onFail("Request fail, code:" + connection.getResponseCode());
|
||||
}
|
||||
} catch (Exception e){
|
||||
HiLog.debug(logLabel, "Request fail, msg:" + e.toString());
|
||||
listener.onFail("Request fail, msg:" + e.toString());
|
||||
} finally {
|
||||
if (connection != null){
|
||||
connection.disconnect();
|
||||
}
|
||||
HiNetUtil.close(inputStream);
|
||||
HiNetUtil.close(baos);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,39 @@
|
||||
package org.devio.hm.weatherapp.net;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
||||
public class HiNetUtil {
|
||||
|
||||
public static String buildParams(String url, Map<String, String> params){
|
||||
if (params == null) return null;
|
||||
StringBuilder builder = new StringBuilder(url);
|
||||
boolean isFirst = true;
|
||||
for (String key : params.keySet()){
|
||||
String value = params.get(key);
|
||||
if (key != null && value != null){
|
||||
if (isFirst){
|
||||
isFirst = false;
|
||||
builder.append("?");
|
||||
} else {
|
||||
builder.append("&");
|
||||
}
|
||||
builder.append(key)
|
||||
.append("=")
|
||||
.append(value);
|
||||
}
|
||||
}
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
public static void close(Closeable closeable){
|
||||
if (closeable != null){
|
||||
try {
|
||||
closeable.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,14 @@
|
||||
package org.devio.hm.weatherapp.net;
|
||||
|
||||
import org.devio.hi.json.HiJson;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public interface IHiNet {
|
||||
void get(String url, Map<String, String> params, NetListener listener);
|
||||
|
||||
interface NetListener{
|
||||
void onSuccess(HiJson res);
|
||||
void onFail(String message);
|
||||
}
|
||||
}
|
@@ -0,0 +1,131 @@
|
||||
package org.devio.hm.weatherapp.slice;
|
||||
|
||||
import ohos.agp.components.DirectionalLayout;
|
||||
import ohos.agp.components.Image;
|
||||
import ohos.agp.components.ListContainer;
|
||||
import ohos.agp.components.Text;
|
||||
import ohos.hiviewdfx.HiLog;
|
||||
import ohos.hiviewdfx.HiLogLabel;
|
||||
import org.devio.hi.json.HiJson;
|
||||
import org.devio.hm.weatherapp.ResourceTable;
|
||||
import ohos.aafwk.ability.AbilitySlice;
|
||||
import ohos.aafwk.content.Intent;
|
||||
import org.devio.hm.weatherapp.data.CityMo;
|
||||
import org.devio.hm.weatherapp.data.ListItemProvider;
|
||||
import org.devio.hm.weatherapp.net.HiNet;
|
||||
import org.devio.hm.weatherapp.net.IHiNet;
|
||||
import org.devio.hm.weatherapp.util.HiExecutor;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class MainAbilitySlice extends AbilitySlice implements ListItemProvider.OnItemClickListener{
|
||||
private DirectionalLayout mLayout = new DirectionalLayout(this);
|
||||
private ListContainer listContainer;
|
||||
private ListItemProvider listItemProvider;
|
||||
private ArrayList<CityMo> cities = new ArrayList<>();
|
||||
private HiNet hiNet;
|
||||
private Text temperatureText,weatherText,tipsText;
|
||||
private Image weatherImage;
|
||||
|
||||
@Override
|
||||
public void onStart(Intent intent) {
|
||||
super.onStart(intent);
|
||||
super.setUIContent(ResourceTable.Layout_ability_main);
|
||||
hiNet = new HiNet();
|
||||
initLayout();
|
||||
intCity();
|
||||
loadData(new CityMo("北京", "110000"));
|
||||
}
|
||||
|
||||
private void intCity() {
|
||||
cities.add(new CityMo("北京", "110000"));
|
||||
cities.add(new CityMo("上海", "310000"));
|
||||
cities.add(new CityMo("广州", "440100"));
|
||||
cities.add(new CityMo("深圳", "440300"));
|
||||
cities.add(new CityMo("重庆", "500000"));
|
||||
cities.add(new CityMo("杭州", "330100"));
|
||||
cities.add(new CityMo("成都", "510100"));
|
||||
cities.add(new CityMo("武汉", "420100"));
|
||||
cities.add(new CityMo("南京", "320100"));
|
||||
listItemProvider.setData(cities);
|
||||
}
|
||||
|
||||
|
||||
private void initLayout(){
|
||||
listContainer = (ListContainer)findComponentById(ResourceTable.Id_list);
|
||||
listItemProvider = new ListItemProvider(this, this);
|
||||
listContainer.setItemProvider(listItemProvider);
|
||||
temperatureText = (Text)findComponentById(ResourceTable.Id_temperature);
|
||||
weatherText = (Text)findComponentById(ResourceTable.Id_weather);
|
||||
tipsText = (Text)findComponentById(ResourceTable.Id_tips);
|
||||
weatherImage = (Image) findComponentById(ResourceTable.Id_weather_icon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onActive() {
|
||||
super.onActive();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onForeground(Intent intent) {
|
||||
super.onForeground(intent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void OnItemClick(CityMo cityMo, int position) {
|
||||
|
||||
loadData(cityMo);
|
||||
}
|
||||
|
||||
private void loadData(CityMo mo){
|
||||
//https://restapi.amap.com/v3/weather/weatherInfo?city=110101&key=<用户key>
|
||||
Map<String, String> params = new HashMap<>();
|
||||
params.put("city", mo.cityCode);
|
||||
params.put("key", "009da21206d7296cc58a2644e4e13bd0");
|
||||
hiNet.get("https://restapi.amap.com/v3/weather/weatherInfo", params, new IHiNet.NetListener() {
|
||||
@Override
|
||||
public void onSuccess(HiJson res) {
|
||||
HiLog.info(new HiLogLabel(HiLog.LOG_APP, 0x00201, "WeatherApp"), "Get success:" + res.toString());
|
||||
System.out.println("WeatherApp onSuccess:"+ res);
|
||||
bindData(res, mo);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onFail(String message) {
|
||||
HiLog.info(new HiLogLabel(HiLog.LOG_APP, 0x00201, "WeatherApp"), "Get fail:" + message);
|
||||
System.out.println("WeatherApp onSuccess:"+ message);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void bindData(HiJson res, CityMo mo) {
|
||||
HiJson hiJson = res.get("lives").get(0);
|
||||
String province = hiJson.value("province");
|
||||
String city = hiJson.value("city");
|
||||
String temperature = hiJson.value("temperature");
|
||||
String weather = hiJson.value("weather");
|
||||
String winddirection = hiJson.value("winddirection");
|
||||
String windpower = hiJson.value("windpower");
|
||||
String humidity = hiJson.value("humidity");
|
||||
|
||||
temperatureText.setText(temperature + "℃");
|
||||
weatherText.setText(weather);
|
||||
tipsText.setText(mo.cityName + ":" + winddirection + "风" + windpower + " 空气湿度" + humidity + "%");
|
||||
int id = ResourceTable.Media_sunshine;
|
||||
if (weather.contains("阴")){
|
||||
id = ResourceTable.Media_overcast;
|
||||
} else if (weather.contains("雨")){
|
||||
id = ResourceTable.Media_rain;
|
||||
} else if (weather.contains("雪")){
|
||||
id = ResourceTable.Media_snow;
|
||||
} else if (weather.contains("雷电")){
|
||||
id = ResourceTable.Media_thunder;
|
||||
} else if (weather.contains("多云")){
|
||||
id = ResourceTable.Media_cloudy;
|
||||
}
|
||||
weatherImage.setImageAndDecodeBounds(id);
|
||||
}
|
||||
}
|
@@ -0,0 +1,30 @@
|
||||
package org.devio.hm.weatherapp.util;
|
||||
|
||||
import ohos.eventhandler.EventHandler;
|
||||
import ohos.eventhandler.EventRunner;
|
||||
|
||||
public class HiExecutor {
|
||||
/*
|
||||
* 切换任务到主线程执行
|
||||
* @param runnable
|
||||
* */
|
||||
public static void runUI(Runnable runnable){
|
||||
// 切换到主线程
|
||||
EventRunner runner = EventRunner.getMainEventRunner();
|
||||
EventHandler eventHandler = new EventHandler(runner);
|
||||
//切换任务
|
||||
eventHandler.postSyncTask(runnable);
|
||||
}
|
||||
|
||||
/*
|
||||
* 在子线程执行任务
|
||||
* @param runnable
|
||||
* */
|
||||
public static void runBG(Runnable runnable){
|
||||
//开启一个线程
|
||||
EventRunner runner = EventRunner.create(true);
|
||||
EventHandler eventHandler = new EventHandler(runner);
|
||||
// 执行任务
|
||||
eventHandler.postTask(runnable, 0, EventHandler.Priority.IMMEDIATE);
|
||||
}
|
||||
}
|
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"string": [
|
||||
{
|
||||
"name": "app_name",
|
||||
"value": "WeatherApp"
|
||||
},
|
||||
{
|
||||
"name": "mainability_description",
|
||||
"value": "hap sample empty page"
|
||||
},
|
||||
{
|
||||
"name": ".WeatherApp",
|
||||
"value": ""
|
||||
}
|
||||
]
|
||||
}
|
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<shape xmlns:ohos="http://schemas.huawei.com/res/ohos"
|
||||
ohos:shape="rectangle">
|
||||
<solid
|
||||
ohos:color="#FFFFFF"/>
|
||||
</shape>
|
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<DirectionalLayout
|
||||
xmlns:ohos="http://schemas.huawei.com/res/ohos"
|
||||
ohos:height="match_parent"
|
||||
ohos:width="match_parent"
|
||||
ohos:id="$+id:root"
|
||||
ohos:background_element="$media:bg2"
|
||||
ohos:alignment="horizontal_center"
|
||||
ohos:padding="32"
|
||||
ohos:orientation="vertical">
|
||||
|
||||
<DirectionalLayout
|
||||
ohos:orientation="horizontal"
|
||||
ohos:width="match_parent"
|
||||
ohos:height="match_content"
|
||||
ohos:alignment="horizontal_center">
|
||||
<Image
|
||||
ohos:id="$+id:weather_icon"
|
||||
ohos:height="60vp"
|
||||
ohos:width="60vp"
|
||||
ohos:scale_mode="inside"
|
||||
ohos:padding="5vp"
|
||||
ohos:image_src="$media:sunshine"
|
||||
/>
|
||||
<Text
|
||||
ohos:id="$+id:weather"
|
||||
ohos:height="match_content"
|
||||
ohos:width="match_content"
|
||||
ohos:text="晴"
|
||||
ohos:text_color="#fff"
|
||||
ohos:right_margin="10vp"
|
||||
ohos:text_size="12fp"
|
||||
/>
|
||||
<Text
|
||||
ohos:id="$+id:temperature"
|
||||
ohos:height="match_content"
|
||||
ohos:width="match_content"
|
||||
ohos:text="12℃"
|
||||
ohos:top_padding="8vp"
|
||||
ohos:text_color="#fff"
|
||||
ohos:text_size="20fp"
|
||||
/>
|
||||
</DirectionalLayout>
|
||||
<Text
|
||||
ohos:id="$+id:tips"
|
||||
ohos:width="match_content"
|
||||
ohos:height="match_content"
|
||||
ohos:layout_alignment="horizontal_center"
|
||||
ohos:text="北京 东风≤3 空气湿度 89%"
|
||||
ohos:text_color="#f880"
|
||||
ohos:left_margin="10vp"
|
||||
ohos:right_margin="10vp"
|
||||
ohos:text_size="12vp"
|
||||
/>
|
||||
<ListContainer
|
||||
ohos:id="$+id:list"
|
||||
ohos:height="match_parent"
|
||||
ohos:width="match_parent"
|
||||
ohos:top_margin="20vp"
|
||||
/>
|
||||
|
||||
</DirectionalLayout>
|
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Text xmlns:ohos="http://schemas.huawei.com/res/ohos"
|
||||
ohos:id="$+id:city_item"
|
||||
ohos:height="match_content"
|
||||
ohos:width="match_content"
|
||||
ohos:text_size="12vp"
|
||||
ohos:text_color="#3fffff"
|
||||
ohos:padding="6vp"
|
||||
ohos:margin="2vp"
|
||||
ohos:background_element="#70000000"/>
|
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<DirectionalLayout
|
||||
xmlns:ohos="http://schemas.huawei.com/res/ohos"
|
||||
ohos:height="match_content"
|
||||
ohos:width="match_parent"
|
||||
ohos:orientation="horizontal"
|
||||
ohos:alignment="horizontal_center"/>
|
BIN
WeatherApp-master/entry/src/main/resources/base/media/bg1.png
Normal file
After Width: | Height: | Size: 368 KiB |
BIN
WeatherApp-master/entry/src/main/resources/base/media/bg2.png
Normal file
After Width: | Height: | Size: 141 KiB |
BIN
WeatherApp-master/entry/src/main/resources/base/media/cloudy.png
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
WeatherApp-master/entry/src/main/resources/base/media/icon.png
Normal file
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 31 KiB |
BIN
WeatherApp-master/entry/src/main/resources/base/media/rain.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
WeatherApp-master/entry/src/main/resources/base/media/snow.png
Normal file
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 30 KiB |
@@ -0,0 +1,9 @@
|
||||
package org.devio.hm.weatherapp;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class MainAbilityTest {
|
||||
@Test
|
||||
public void onStart() {
|
||||
}
|
||||
}
|