Package android.widget

Examples of android.widget.ListView


    Animation animation = new Flip3dAnimation(list, edit, cx, cy, false);
    animation.setAnimationListener(new AnimationListener() {
      @Override
      public void onAnimationEnd(Animation animation) {
        if (AdapterView.INVALID_POSITION != editingPosition) {
          ListView listView = getListView();
          listView.requestFocus();
         
          int first = listView.getFirstVisiblePosition();
          int last = listView.getLastVisiblePosition();
          if (editingPosition < first || editingPosition > last) {
            listView.setSelection(editingPosition);
          }
        }

        setTitle();
View Full Code Here


        String[] lItems = {"Fundamentals", "Canvas Demo", "Camera Demo", "Setup"};

        setListAdapter(new ArrayAdapter<String>(this, R.layout.list_item, lItems));

        ListView lv = getListView();
        lv.setTextFilterEnabled(true);


        lv.setOnItemClickListener(new OnItemClickListener() {

            public void onItemClick(AdapterView<?> parent, View view,
                    int position, long id) {
                switch (position) {
                    case 0:
View Full Code Here

TOP

Related Classes of android.widget.ListView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.