Android Open Source - android-listview-custom-view List Activity






From Project

Back to project page android-listview-custom-view.

License

The source code is released under:

MIT License

If you think the Android project android-listview-custom-view 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.bignerdranch.android.listitemviewdemo;
/*from  w  w w  .  j  a va  2 s. c  o m*/
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

import com.android.debug.hv.ViewServer;

public class ListActivity extends FragmentActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_list);
        if (BuildConfig.DEBUG)
            ViewServer.get(this).addWindow(this);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        if (BuildConfig.DEBUG)
            ViewServer.get(this).removeWindow(this);
    }

    @Override
    protected void onResume() {
        super.onResume();
        if (BuildConfig.DEBUG)
            ViewServer.get(this).setFocusedWindow(this);
    }
}




Java Source Code List

com.android.debug.hv.ViewServer.java
com.bignerdranch.android.listitemviewdemo.ItemAdapter.java
com.bignerdranch.android.listitemviewdemo.ItemListFragment.java
com.bignerdranch.android.listitemviewdemo.ItemView.java
com.bignerdranch.android.listitemviewdemo.Item.java
com.bignerdranch.android.listitemviewdemo.ListActivity.java