-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomList.java
38 lines (28 loc) · 982 Bytes
/
CustomList.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.example.android.orange;
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.ArrayList;
/**
* Created by Apoorva on 6/21/2018.
*/
public class CustomList extends ArrayAdapter<String> {
private final Activity context;
private final ArrayList<String> web;
public CustomList(Activity context, ArrayList<String> ss
) {
super(context, R.layout.userlist);
this.context = context;
this.web = ss;
}
@Override
public View getView(int position, View view, ViewGroup parent) {
LayoutInflater inflater = context.getLayoutInflater();
View rowView = inflater.inflate(R.layout.userlist, null, true);
TextView txtTitle = (TextView) rowView.findViewById(R.id.listitem_text);
return rowView;
}
}