Guest User

ListView item loading

a guest
Sep 7th, 2010
634
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1.         @Override
  2.         public View getView(int position, View convertView, ViewGroup parent) {
  3.             LayoutInflater vi = (LayoutInflater) mActivity
  4.                     .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  5.             View v;
  6.  
  7.             if (convertView == null) {
  8.                 v = vi.inflate(R.layout.wifiscan_listitem, null);
  9.             } else {
  10.                 v = convertView;
  11.             }
  12.  
  13.  
  14.             TextView viewCaps = (TextView) v.findViewById(R.id.wifi_ap_features);
  15.             String features = "blah blah blah";
  16.             viewCaps.setText(features);
  17.  
  18.             return v;
  19.         }
Advertisement
Add Comment
Please, Sign In to add comment