• 大小: 2.13MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-10
  • 语言: Java
  • 标签: 天气预报  

资源简介

一款基于安卓的天气预报系统的设计与实现,可定位,可添加城市

资源截图

代码片段和文件信息

package com.example.santa.weather;

import android.app.Application;
import android.test.ApplicationTestCase;
import android.util.Log;

import java.util.Calendar;

/**
 * Testing Fundamentals
 */
public class ApplicationTest extends ApplicationTestCase {
    public ApplicationTest() {
        super(Application.class);
    }


    public void testTime() {
        String text = “2015-07-02 19:00“;

        String[] str = text.split(“ “);
        str = str[1].split(“:“);

        Log.d(“TEST“ String.valueOf(Integer.valueOf(str[0])));
    }


    public void testWeekTime() {
        String text = “2016-08-02“;
        String[] str = text.split(“-“);

        Calendar calendar = Calendar.getInstance();
        calendar.set(Integer.valueOf(str[0]) Integer.valueOf(str[1])-1 Integer.valueOf(str[2]));

        Log.d(“TEST“ calendar.get(Calendar.DAY_OF_WEEK)+““);
        Log.d(“TEST“ calendar.get(Calendar.DAY_OF_WEEK_IN_MONTH)+““);


    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-09-07 09:01  Android_Weather-master\
     文件         465  2016-09-07 09:01  Android_Weather-master\.gitignore
     文件        1001  2016-09-07 09:01  Android_Weather-master\README.md
     目录           0  2016-09-07 09:01  Android_Weather-master\app\
     文件           7  2016-09-07 09:01  Android_Weather-master\app\.gitignore
     文件         674  2016-09-07 09:01  Android_Weather-master\app\build.gradle
     文件         663  2016-09-07 09:01  Android_Weather-master\app\proguard-rules.pro
     目录           0  2016-09-07 09:01  Android_Weather-master\app\src\
     目录           0  2016-09-07 09:01  Android_Weather-master\app\src\androidTest\
     目录           0  2016-09-07 09:01  Android_Weather-master\app\src\androidTest\java\
     目录           0  2016-09-07 09:01  Android_Weather-master\app\src\androidTest\java\com\
     目录           0  2016-09-07 09:01  Android_Weather-master\app\src\androidTest\java\com\example\
     目录           0  2016-09-07 09:01  Android_Weather-master\app\src\androidTest\java\com\example\santa\
     目录           0  2016-09-07 09:01  Android_Weather-master\app\src\androidTest\java\com\example\santa\weather\
     文件        1032  2016-09-07 09:01  Android_Weather-master\app\src\androidTest\java\com\example\santa\weather\ApplicationTest.java
     目录           0  2016-09-07 09:01  Android_Weather-master\app\src\main\
     文件         914  2016-09-07 09:01  Android_Weather-master\app\src\main\AndroidManifest.xml
     目录           0  2016-09-07 09:01  Android_Weather-master\app\src\main\java\
     目录           0  2016-09-07 09:01  Android_Weather-master\app\src\main\java\com\
     目录           0  2016-09-07 09:01  Android_Weather-master\app\src\main\java\com\example\
     目录           0  2016-09-07 09:01  Android_Weather-master\app\src\main\java\com\example\santa\
     目录           0  2016-09-07 09:01  Android_Weather-master\app\src\main\java\com\example\santa\weather\
     文件        3092  2016-09-07 09:01  Android_Weather-master\app\src\main\java\com\example\santa\weather\AllInfo.java
     文件        4447  2016-09-07 09:01  Android_Weather-master\app\src\main\java\com\example\santa\weather\AllInfoFragment.java
     文件        1046  2016-09-07 09:01  Android_Weather-master\app\src\main\java\com\example\santa\weather\AllInfoLoader.java
     文件         999  2016-09-07 09:01  Android_Weather-master\app\src\main\java\com\example\santa\weather\BasicInfo.java
     文件        6989  2016-09-07 09:01  Android_Weather-master\app\src\main\java\com\example\santa\weather\BasicInfoFragment.java
     文件        2996  2016-09-07 09:01  Android_Weather-master\app\src\main\java\com\example\santa\weather\BasicInfoItemTouchHelperCallback.java
     文件        7378  2016-09-07 09:01  Android_Weather-master\app\src\main\java\com\example\santa\weather\BasicListAdapter.java
     文件         181  2016-09-07 09:01  Android_Weather-master\app\src\main\java\com\example\santa\weather\Contents.java
     文件         802  2016-09-07 09:01  Android_Weather-master\app\src\main\java\com\example\santa\weather\Daily.java
............此处省略89个文件信息

评论

共有 条评论