和风天气

源文件支持交流修改使用

开发语言:

分类:其他系统

    分享到:

源码搜索

  • 详情介绍 - 【和风天气】

简单的源码介绍:


drawerLayout = (DrawerLayout) findViewById(R.id.drawerLayout);
       final ImageView image_bg = (ImageView) findViewById(R.id.image_bg);
 
       swipeRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.swipeRefreshLayout);
       swipeRefreshLayout.setColorSchemeResources(android.R.color.holo_red_light);
       swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
           @Override
           public void onRefresh() {
               new Handler().post(new Runnable() {
                   @Override
                   public void run() {
                       weatherHttp.weatherHttp(City);
                       swipeRefreshLayout.setRefreshing(false);
                   }
               });
           }
       });
 
       BiYingPicture biYingPicture = new BiYingPicture(this);
       biYingPicture.getPicture();
       biYingPicture.setPictureCallBack(new BiYingPicture.PictureCallBack() {
           @Override
           public void Picture(String url) {
               ImageLoader.getInstance().displayImage(url, image_bg);
           }
       });
       weatherHttp = new WeatherHttp(this);
       weatherHttp.setWeatherDataBackCall(this);
 
       main_titleview = findViewById(R.id.main_titleview);
       rl_title = (RelativeLayout) findViewById(R.id.rl_title);
       tv_title = (TextView) findViewById(R.id.tv_title);
       tv_date = (TextView) findViewById(R.id.tv_date);
       ImageView image_menu = (ImageView) findViewById(R.id.image_menu);
       image_menu.setOnClickListener(new View.OnClickListener() {
           @Override
           public void onClick(View view) {
               if (!drawerLayout.isDrawerOpen(GravityCompat.START)) {
                   drawerLayout.openDrawer(GravityCompat.START);
               }
           }
       });


特别说明:
☉如果服务器暂不能下载请稍后重试!总是不能下载,请联系客服QQ:597260440,谢谢合作!
☉本站所有源码仅供学习与参考,请勿用于商业用途。
模板说明:
源码-和风天气,其版权归原作者所有,如损害你的权益请联系客服QQ:597260440给予处理。

本文永久链接:http://code.fangbianle.com/goods/show-5186.html

相关源码

在线客服
热线电话

备案号:豫ICP备14017793号-2编辑热线:0371-56691758

Copyight@2014-2018 All Rights Reserved 页面加载耗时0.211秒