Android Open Source - issue-parser Tab All Issues






From Project

Back to project page issue-parser.

License

The source code is released under:

GNU General Public License

If you think the Android project issue-parser listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package de.dom.drupalit.tabs;
//ww w .  j a  v  a2s.c om
import java.net.URLEncoder;

import org.jsoup.select.Elements;

import de.dom.drupalit.R;
import de.dom.drupalit.objects.Issue;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.TranslateAnimation;
import android.view.animation.Animation.AnimationListener;
import android.view.inputmethod.InputMethodManager;

public class TabAllIssues extends IssueListActivity {

  @Override
  public void onCreate(Bundle icicle) {
    baseURL = "http://drupal.org/project/issues/drupal?categories=All";
    defaultURL = "http://drupal.org/project/issues/drupal?page=CUR_PAGE&text=&status=Open&priorities=All&categories=SEL_CAT&version=All&component=All";
    showMyStatus = false;
    super.onCreate(icicle);
    btnSearch.setOnClickListener(new OnClickListener() {
      @Override
      public void onClick(View v) {
        baseURL = defaultURL.replace("SEL_CAT", "All");
        baseURL = baseURL.replace(
            "text=",
            "text="
                + URLEncoder.encode(editSearch.getText()
                    .toString()));
        refresh(0);
        InputMethodManager mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
        mgr.hideSoftInputFromWindow(editSearch.getWindowToken(), 0);
      }
    });
    btnSearchSwitch.setOnClickListener(new OnClickListener() {

      @Override
      public void onClick(View v) {
        if (searchContainer.getVisibility() == View.GONE) {
          AlphaAnimation fadeIn = new AlphaAnimation(0, 1);
          fadeIn.setDuration(300);
          fadeIn.setFillAfter(true);
          searchContainer.startAnimation(fadeIn);
          searchContainer.setVisibility(View.VISIBLE);
        } else {
          AlphaAnimation fadeOut = new AlphaAnimation(1,0);
          fadeOut.setDuration(300);
          fadeOut.setFillAfter(true);
          fadeOut.setAnimationListener(new AnimationListener() {

            @Override
            public void onAnimationStart(Animation animation) {

            }

            @Override
            public void onAnimationRepeat(Animation animation) {

            }

            @Override
            public void onAnimationEnd(Animation animation) {
              searchContainer.setVisibility(View.GONE);
            }
          });
          searchContainer.startAnimation(fadeOut);

        }
        headerContainer.setBackgroundResource(R.drawable.header);
        headerContainer.invalidate();

      }
    });
    txtHeader.setText(R.string.tab_name_all_issues);
  }

  @Override
  public void parseIssue(Issue issue, Elements columns) {
    issue.title = columns.get(0).text();
    String issueURL = columns.get(0).getElementsByTag("a").get(0)
        .attr("href");
    issue.issueURL = "http://drupal.org" + issueURL;
    issue.id = issueURL.substring(issueURL.lastIndexOf('/') + 1);
    issue.status = columns.get(1).text();
    issue.priority = columns.get(2).text();
    issue.category = columns.get(3).text();
    issue.version = columns.get(4).text();
    issue.component = columns.get(5).text();
    issue.replies = columns.get(6).text();
    issue.lastUpdated = columns.get(7).text();
    issue.assignedTo = columns.get(8).text();
    issue.created = columns.get(9).text();
    super.parseIssue(issue, columns);
  }

}




Java Source Code List

de.dom.drupalit.IssueDetail.java
de.dom.drupalit.IssueParser.java
de.dom.drupalit.Main.java
de.dom.drupalit.Utils.java
de.dom.drupalit.adapters.FeedAdapter.java
de.dom.drupalit.backgroundservice.AppService.java
de.dom.drupalit.backgroundservice.OnAlarmReceiver.java
de.dom.drupalit.backgroundservice.OnBootReceiver.java
de.dom.drupalit.backgroundservice.WakefulIntentService.java
de.dom.drupalit.listeners.RSSItemClickListener.java
de.dom.drupalit.objects.Comment.java
de.dom.drupalit.objects.Issue.java
de.dom.drupalit.tabs.IssueListActivity.java
de.dom.drupalit.tabs.TabAllIssues.java
de.dom.drupalit.tabs.TabMyIssues.java
de.dom.drupalit.tabs.TabProfile.java
org.mcsoxford.rss.Dates.java
org.mcsoxford.rss.MediaAttributes.java
org.mcsoxford.rss.MediaThumbnail.java
org.mcsoxford.rss.RSSBase.java
org.mcsoxford.rss.RSSConfig.java
org.mcsoxford.rss.RSSException.java
org.mcsoxford.rss.RSSFault.java
org.mcsoxford.rss.RSSFeed.java
org.mcsoxford.rss.RSSHandler.java
org.mcsoxford.rss.RSSItem.java
org.mcsoxford.rss.RSSLoader.java
org.mcsoxford.rss.RSSParserSPI.java
org.mcsoxford.rss.RSSParser.java
org.mcsoxford.rss.RSSReaderException.java
org.mcsoxford.rss.RSSReader.java
org.mcsoxford.rss.Resources.java