Skip to content

Commit 9c4d155

Browse files
committed
Changes
1 parent a2542eb commit 9c4d155

File tree

2 files changed

+2
-54
lines changed

2 files changed

+2
-54
lines changed

res/layout/display.xml

-16
This file was deleted.

src/com/example/wifiapp/MainActivity.java

+2-38
Original file line numberDiff line numberDiff line change
@@ -142,43 +142,7 @@ public void turnOn(View view) {
142142
BA.disable();
143143
}
144144

145-
public class displayAdapter extends BaseAdapter {
146-
private ArrayList<String> list;
147-
148-
public displayAdapter(ArrayList<String> input) {
149-
this.list = input;
150-
}
151-
152-
@Override
153-
public int getCount() {
154-
// TODO Auto-generated method stub
155-
return list.size();
156-
}
157-
158-
@Override
159-
public Object getItem(int arg0) {
160-
// TODO Auto-generated method stub
161-
return list.get(arg0);
162-
}
163-
164-
@Override
165-
public long getItemId(int position) {
166-
// TODO Auto-generated method stub
167-
return position;
168-
}
169-
170-
@Override
171-
public View getView(int position, View view, ViewGroup parent) {
172-
if (view == null) {
173-
LayoutInflater inflater = LayoutInflater.from(parent
174-
.getContext());
175-
view = inflater.inflate(R.layout.display, parent, false);
176-
}
177-
178-
TextView tv = (TextView) view.findViewById(R.id.nameText);
179-
tv.setText(list.get(position));
180-
return null;
181-
}
145+
182146

183-
}
147+
184148
}

0 commit comments

Comments
 (0)