Android Open Source - Android-Parse.com-ListView-Load-More-using-OnScrollListener-Tutorial Single Item View






From Project

Back to project page Android-Parse.com-ListView-Load-More-using-OnScrollListener-Tutorial.

License

The source code is released under:

Apache License

If you think the Android project Android-Parse.com-ListView-Load-More-using-OnScrollListener-Tutorial 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.androidbegin.parseloadmore;
/*from w  w  w  .  jav a 2  s  . c  o  m*/
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class SingleItemView extends Activity {
  // Declare Variables
  TextView txtnum;
  String num;

  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.singleitemview);
    // Retrieve data from ListViewAdapter on click event
    Intent i = getIntent();
    // Get the result of num
    num = i.getStringExtra("num");
    // Locate the TextView in singleitemview.xml
    txtnum = (TextView) findViewById(R.id.num);
    // Set the results into TextView
    txtnum.setText(num);

  }
}




Java Source Code List

com.androidbegin.parseloadmore.ListViewAdapter.java
com.androidbegin.parseloadmore.MainActivity.java
com.androidbegin.parseloadmore.Numbers.java
com.androidbegin.parseloadmore.ParseApplication.java
com.androidbegin.parseloadmore.SingleItemView.java