增加天气每小时显示,去掉autosize,增加svg显示
This commit is contained in:
@@ -13,6 +13,7 @@ import com.qweather.sdk.basic.Lang;
|
||||
import com.qweather.sdk.basic.Unit;
|
||||
import com.qweather.sdk.parameter.weather.WeatherParameter;
|
||||
import com.qweather.sdk.response.weather.WeatherDailyResponse;
|
||||
import com.qweather.sdk.response.weather.WeatherHourlyResponse;
|
||||
import com.qweather.sdk.response.weather.WeatherNowResponse;
|
||||
import com.ttstd.dialer.BuildConfig;
|
||||
import com.ttstd.dialer.bean.CityInfo;
|
||||
@@ -158,6 +159,15 @@ public class WeatherManager {
|
||||
mQWeather.weatherNow(parameter, callback);
|
||||
}
|
||||
|
||||
public void getWeather24h(String adCode, Callback<WeatherHourlyResponse> callback) {
|
||||
String locationID = getLocationID(adCode);
|
||||
Log.e(TAG, "getWeatherNow: locationID = " + locationID);
|
||||
WeatherParameter parameter = new WeatherParameter(locationID)
|
||||
.lang(Lang.ZH_HANS)
|
||||
.unit(Unit.METRIC);
|
||||
mQWeather.weather24h(parameter, callback);
|
||||
}
|
||||
|
||||
public void getWeather10D(String adCode, Callback<WeatherDailyResponse> callback) {
|
||||
String locationID = getLocationID(adCode);
|
||||
Log.e(TAG, "getWeather10D: locationID = " + locationID);
|
||||
|
||||
Reference in New Issue
Block a user