Android Open Source - runescape-highscore Results Activity






From Project

Back to project page runescape-highscore.

License

The source code is released under:

Apache License

If you think the Android project runescape-highscore 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 com.rsstat.ui;
/*from  www. j ava  2s. com*/
import android.content.Intent;
import android.os.Parcelable;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.widget.ListView;

import com.rsstat.Constants;
import com.rsstat.R;
import com.rsstat.models.Triple;
import com.rsstat.ui.adapters.ResultsListAdapter;

import java.util.ArrayList;


public class ResultsActivity extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_results);

        Intent intent = getIntent();

        getSupportActionBar().setTitle(intent.getStringExtra(Constants.NAME_TAG));
        ArrayList<Parcelable> parcelables = intent.getExtras().getParcelableArrayList(Constants.DATA_TAG);

        ArrayList<Triple> items = new ArrayList<>();

        for (Parcelable p : parcelables){
            items.add((Triple) p);
        }

        ResultsListAdapter adapter = new ResultsListAdapter(this, items);
        ListView listView = (ListView) findViewById(R.id.listview);

        listView.setAdapter(adapter);
    }
}




Java Source Code List

com.rsstat.ApplicationTest.java
com.rsstat.Constants.java
com.rsstat.models.Triple.java
com.rsstat.rest.api.RSHighScoreAPI.java
com.rsstat.ui.MainActivity.java
com.rsstat.ui.ResultsActivity.java
com.rsstat.ui.adapters.ResultsListAdapter.java
com.rsstat.ui.adapters.SearchHistoryListAdapter.java