?? weatherforecastcondition.java
字號:
package com.yarin.android.CityWeather;
//預報后四天的天氣信息
/**
<forecast_conditions>
<day_of_week data="周二"/>
<low data="24"/>
<high data="33"/>
<icon data="/ig/images/weather/chance_of_rain.gif"/>
<condition data="可能有雨"/>
</forecast_conditions>
*/
public class WeatherForecastCondition {
private String day_of_week; //星期
private String low; //最低溫度
private String high; //最高溫度
private String icon; //圖標
private String condition; //提示
public WeatherForecastCondition()
{
}
public String getCondition()
{
return condition;
}
public void setCondition(String condition)
{
this.condition = condition;
}
public String getDay_of_week()
{
return day_of_week;
}
public void setDay_of_week(String day_of_week)
{
this.day_of_week = day_of_week;
}
public String getLow()
{
return low;
}
public void setLow(String low)
{
this.low = low;
}
public String getHigh()
{
return high;
}
public void setHigh(String high)
{
this.high = high;
}
public String getIcon()
{
return icon;
}
public void setIcon(String icon)
{
this.icon = icon;
}
public String toString()
{
StringBuilder sb = new StringBuilder();
sb.append(" ").append(day_of_week);
sb.append(" : ").append(high);
sb.append("/").append(low).append(" °C");
sb.append(" ").append(condition);
return sb.toString();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -