コード例 #1
0
ファイル: OAuthActivity.java プロジェクト: WillCoder/WillBo
  public void refresh() {
    webView.clearView();
    webView.loadUrl("about:blank");
    LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    ImageView iv = (ImageView) inflater.inflate(R.layout.refresh_action_view, null);

    Animation rotation = AnimationUtils.loadAnimation(this, R.anim.refresh);
    iv.startAnimation(rotation);

    refreshItem.setActionView(iv);
    webView.loadUrl(getWeiboOAuthUrl());
  }