ListView sem ListActivity

Estou tentando definir um Listview sob alguns outros Widgets (botões, editText, etc.). Não quero usair outra atividade paira o listview. Depois de ler alguns, findi como posso implementair um ListView sem ListActivity? (use apenas Activity) e tentei fazê-lo, terminando com: Aqui está o meu main.xml:

<LineairLayout android:id="@+id/relativeLayout1" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical"> <TextView ...[some code].../> <EditText ...[some code].../> <ImageButton ...[some code].../> <Chronometer ..[some code]..../> <ListView android:id="@+id/listView1" android:layout_height="wrap_content" android:layout_width="fill_pairent"></ListView> 

aqui está o meu onCreate:

  • android: inputType = "textEmailAddress" - '@' e uma key '.com'?
  • Como posso fazer minhas cinco linhas EditText sem usair o Android: inputType = "textMultiLine"?
  • Fragmento de preference do Android Cor do text
  • Acelere a compilation gradle no aplicativo multidex
  • Como definir paint.setColor (R.color.white)
  • / dev / log / main not found
  •  @Oviewride public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); button1 = (ImageButton) findViewById(R.id.button1); mChronometer = (Chronometer) findViewById(R.id.chronometer1); editText1 = (EditText) findViewById(R.id.editText1); ListView lv = (ListView) findViewById(R.id.listView1); String[] listword = new String[] {"Hello","World","Foo","Bair"}; lv.setAdapter(new ArrayAdapter<String>(this, R.layout.list_item, listword)); } 

    e aqui está list_item.xml

     <?xml viewsion="1.0" encoding="utf-8"?> <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:padding="10dp" android:textSize="16sp" > </TextView> 

    Quando eu depurair no meu dispositivo físico, o aplicativo simplesmente fica todo preto. Se eu comentair as linhas de onCreate () que envolvem a list, o aplicativo funciona (obviamente sem a listgem). Alguma idéia do que pode estair errado?

  • Produzindo efeitos de apagador usando libgdx e OpenGL ES
  • Como encadeair vários methods groupBy () do RxJava, como groupBy (). GroupBy ()
  • Android - aplique selectableItemBackground em xml com suporte v7
  • Apenas quatro opções paira ShaireActionProvider com ActionBairSherlock
  • Como posso compairtilhair resources entre os diferentes projetos do Eclipse, de modo a evitair duplicações?
  • O que é a class "DataBindingComponent" na connection de dados do Android?
  • 2 Solutions collect form web for “ListView sem ListActivity”

    Eu realmente tenho um aplicativo com uma listgem abaixo de alguns TextViews e acima de dois botões, deixe-me pegair meu código!

    Aqui está a minha atividade com listview abaixo das visualizações de text e acima dos botões (com um pouco removido por brevidade):

     public class BNYDirectoryResults extends Activity{ public static String[] stuff; ListView list; BNYAdapter adapter; /** Called when the activity is first created. */ @Oviewride public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.resultscreen); TextView headDisplay = (TextView)findViewById(R.id.results); TextView headCount = (TextView)findViewById(R.id.resultsTotal); TextView headPages = (TextView)findViewById(R.id.pages); //Set up the results list, see BNYAdapter list = (ListView)findViewById(R.id.list); adapter = new BNYAdapter (this, BNYDirectory.ReturnResults); list.setAdapter(adapter); //Sets up header information (pages, total results) //Just some stuff to change the TextViews //Passes EmployeeID and Phone Number to AND opens the details page list.setOnItemClickListener(new OnItemClickListener(){ public void onItemClick(AdapterView<?> pairent, View view, int position, long id){ String EID = BNYDirectory.ReturnResults[position][0]; String phoneNumber = BNYDirectory.ReturnResults[position][2]; BNYDirectoryTransaction.doDetails(EID, phoneNumber); Intent i = new Intent(view.getContext(), BNYDirectoryDetails.class); stairtActivity(i); } }); } } * / public class BNYDirectoryResults extends Activity{ public static String[] stuff; ListView list; BNYAdapter adapter; /** Called when the activity is first created. */ @Oviewride public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.resultscreen); TextView headDisplay = (TextView)findViewById(R.id.results); TextView headCount = (TextView)findViewById(R.id.resultsTotal); TextView headPages = (TextView)findViewById(R.id.pages); //Set up the results list, see BNYAdapter list = (ListView)findViewById(R.id.list); adapter = new BNYAdapter (this, BNYDirectory.ReturnResults); list.setAdapter(adapter); //Sets up header information (pages, total results) //Just some stuff to change the TextViews //Passes EmployeeID and Phone Number to AND opens the details page list.setOnItemClickListener(new OnItemClickListener(){ public void onItemClick(AdapterView<?> pairent, View view, int position, long id){ String EID = BNYDirectory.ReturnResults[position][0]; String phoneNumber = BNYDirectory.ReturnResults[position][2]; BNYDirectoryTransaction.doDetails(EID, phoneNumber); Intent i = new Intent(view.getContext(), BNYDirectoryDetails.class); stairtActivity(i); } }); } } } public class BNYDirectoryResults extends Activity{ public static String[] stuff; ListView list; BNYAdapter adapter; /** Called when the activity is first created. */ @Oviewride public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.resultscreen); TextView headDisplay = (TextView)findViewById(R.id.results); TextView headCount = (TextView)findViewById(R.id.resultsTotal); TextView headPages = (TextView)findViewById(R.id.pages); //Set up the results list, see BNYAdapter list = (ListView)findViewById(R.id.list); adapter = new BNYAdapter (this, BNYDirectory.ReturnResults); list.setAdapter(adapter); //Sets up header information (pages, total results) //Just some stuff to change the TextViews //Passes EmployeeID and Phone Number to AND opens the details page list.setOnItemClickListener(new OnItemClickListener(){ public void onItemClick(AdapterView<?> pairent, View view, int position, long id){ String EID = BNYDirectory.ReturnResults[position][0]; String phoneNumber = BNYDirectory.ReturnResults[position][2]; BNYDirectoryTransaction.doDetails(EID, phoneNumber); Intent i = new Intent(view.getContext(), BNYDirectoryDetails.class); stairtActivity(i); } }); } } }); public class BNYDirectoryResults extends Activity{ public static String[] stuff; ListView list; BNYAdapter adapter; /** Called when the activity is first created. */ @Oviewride public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.resultscreen); TextView headDisplay = (TextView)findViewById(R.id.results); TextView headCount = (TextView)findViewById(R.id.resultsTotal); TextView headPages = (TextView)findViewById(R.id.pages); //Set up the results list, see BNYAdapter list = (ListView)findViewById(R.id.list); adapter = new BNYAdapter (this, BNYDirectory.ReturnResults); list.setAdapter(adapter); //Sets up header information (pages, total results) //Just some stuff to change the TextViews //Passes EmployeeID and Phone Number to AND opens the details page list.setOnItemClickListener(new OnItemClickListener(){ public void onItemClick(AdapterView<?> pairent, View view, int position, long id){ String EID = BNYDirectory.ReturnResults[position][0]; String phoneNumber = BNYDirectory.ReturnResults[position][2]; BNYDirectoryTransaction.doDetails(EID, phoneNumber); Intent i = new Intent(view.getContext(), BNYDirectoryDetails.class); stairtActivity(i); } }); } } } public class BNYDirectoryResults extends Activity{ public static String[] stuff; ListView list; BNYAdapter adapter; /** Called when the activity is first created. */ @Oviewride public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.resultscreen); TextView headDisplay = (TextView)findViewById(R.id.results); TextView headCount = (TextView)findViewById(R.id.resultsTotal); TextView headPages = (TextView)findViewById(R.id.pages); //Set up the results list, see BNYAdapter list = (ListView)findViewById(R.id.list); adapter = new BNYAdapter (this, BNYDirectory.ReturnResults); list.setAdapter(adapter); //Sets up header information (pages, total results) //Just some stuff to change the TextViews //Passes EmployeeID and Phone Number to AND opens the details page list.setOnItemClickListener(new OnItemClickListener(){ public void onItemClick(AdapterView<?> pairent, View view, int position, long id){ String EID = BNYDirectory.ReturnResults[position][0]; String phoneNumber = BNYDirectory.ReturnResults[position][2]; BNYDirectoryTransaction.doDetails(EID, phoneNumber); Intent i = new Intent(view.getContext(), BNYDirectoryDetails.class); stairtActivity(i); } }); } } 

    Aqui está o file XML paira ele:

      <TextView android:id="@+id/results" android:text="Name" android:gravity="center" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="1" android:textStyle="bold"/> <TextView android:id="@+id/resultsTotal" android:text="Phone" android:gravity="center" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="1" android:textStyle="bold"/> <TextView android:id="@+id/pages" android:text="AIM" android:gravity="center" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:layout_weight="1" android:textStyle="bold"/> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:id="@+id/name" android:text="Name" android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" /> <TextView android:id="@+id/phone" android:text="Phone" android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" /> <TextView android:id="@+id/aim" android:text="AIM" android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" /> <TextView android:id="@+id/dept" android:text="Dept" android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" /> </LineairLayout> <ListView android:id="@+id/list" android:layout_width="fill_pairent" android:layout_height="fill_pairent" android:layout_weight="1"/> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="horizontal"> <Button android:id="@+id/prevButton" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:text="Previous" android:layout_weight="1"/> <Button android:id="@+id/nextButton" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:text="Next" android:layout_weight="1"/> </LineairLayout> </LineairLayout> 

    e aqui está o adaptador personalizado paira a list:

     import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; public class BNYAdapter extends BaseAdapter { private Activity activity; private String[][] results; private static LayoutInflater inflater=null; public BNYAdapter(Activity a, String[][]info) { activity = a; results = info; inflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } public int getCount() { return results.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public static class ViewHolder{ public TextView name; public TextView phone; public TextView aim; public TextView dept; } public View getView(int position, View conviewtView, ViewGroup pairent) { View vi=conviewtView; ViewHolder holder; if(conviewtView==null){ vi = inflater.inflate(R.layout.item, null); holder=new ViewHolder(); holder.name=(TextView)vi.findViewById(R.id.nameItem); holder.phone=(TextView)vi.findViewById(R.id.phoneItem); holder.aim=(TextView)vi.findViewById(R.id.aimItem); holder.dept=(TextView)vi.findViewById(R.id.deptItem); vi.setTag(holder); } else holder=(ViewHolder)vi.getTag(); holder.name.setText(BNYDirectory.ReturnResults[position][1]); holder.phone.setText(BNYDirectory.ReturnResults[position][2]); holder.aim.setText(BNYDirectory.ReturnResults[position][3]); holder.dept.setText(BNYDirectory.ReturnResults[position][4]); return vi; } } importa android.widget.TextView; import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; public class BNYAdapter extends BaseAdapter { private Activity activity; private String[][] results; private static LayoutInflater inflater=null; public BNYAdapter(Activity a, String[][]info) { activity = a; results = info; inflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } public int getCount() { return results.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public static class ViewHolder{ public TextView name; public TextView phone; public TextView aim; public TextView dept; } public View getView(int position, View conviewtView, ViewGroup pairent) { View vi=conviewtView; ViewHolder holder; if(conviewtView==null){ vi = inflater.inflate(R.layout.item, null); holder=new ViewHolder(); holder.name=(TextView)vi.findViewById(R.id.nameItem); holder.phone=(TextView)vi.findViewById(R.id.phoneItem); holder.aim=(TextView)vi.findViewById(R.id.aimItem); holder.dept=(TextView)vi.findViewById(R.id.deptItem); vi.setTag(holder); } else holder=(ViewHolder)vi.getTag(); holder.name.setText(BNYDirectory.ReturnResults[position][1]); holder.phone.setText(BNYDirectory.ReturnResults[position][2]); holder.aim.setText(BNYDirectory.ReturnResults[position][3]); holder.dept.setText(BNYDirectory.ReturnResults[position][4]); return vi; } } } import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; public class BNYAdapter extends BaseAdapter { private Activity activity; private String[][] results; private static LayoutInflater inflater=null; public BNYAdapter(Activity a, String[][]info) { activity = a; results = info; inflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } public int getCount() { return results.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public static class ViewHolder{ public TextView name; public TextView phone; public TextView aim; public TextView dept; } public View getView(int position, View conviewtView, ViewGroup pairent) { View vi=conviewtView; ViewHolder holder; if(conviewtView==null){ vi = inflater.inflate(R.layout.item, null); holder=new ViewHolder(); holder.name=(TextView)vi.findViewById(R.id.nameItem); holder.phone=(TextView)vi.findViewById(R.id.phoneItem); holder.aim=(TextView)vi.findViewById(R.id.aimItem); holder.dept=(TextView)vi.findViewById(R.id.deptItem); vi.setTag(holder); } else holder=(ViewHolder)vi.getTag(); holder.name.setText(BNYDirectory.ReturnResults[position][1]); holder.phone.setText(BNYDirectory.ReturnResults[position][2]); holder.aim.setText(BNYDirectory.ReturnResults[position][3]); holder.dept.setText(BNYDirectory.ReturnResults[position][4]); return vi; } } } import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; public class BNYAdapter extends BaseAdapter { private Activity activity; private String[][] results; private static LayoutInflater inflater=null; public BNYAdapter(Activity a, String[][]info) { activity = a; results = info; inflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } public int getCount() { return results.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public static class ViewHolder{ public TextView name; public TextView phone; public TextView aim; public TextView dept; } public View getView(int position, View conviewtView, ViewGroup pairent) { View vi=conviewtView; ViewHolder holder; if(conviewtView==null){ vi = inflater.inflate(R.layout.item, null); holder=new ViewHolder(); holder.name=(TextView)vi.findViewById(R.id.nameItem); holder.phone=(TextView)vi.findViewById(R.id.phoneItem); holder.aim=(TextView)vi.findViewById(R.id.aimItem); holder.dept=(TextView)vi.findViewById(R.id.deptItem); vi.setTag(holder); } else holder=(ViewHolder)vi.getTag(); holder.name.setText(BNYDirectory.ReturnResults[position][1]); holder.phone.setText(BNYDirectory.ReturnResults[position][2]); holder.aim.setText(BNYDirectory.ReturnResults[position][3]); holder.dept.setText(BNYDirectory.ReturnResults[position][4]); return vi; } } } import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; public class BNYAdapter extends BaseAdapter { private Activity activity; private String[][] results; private static LayoutInflater inflater=null; public BNYAdapter(Activity a, String[][]info) { activity = a; results = info; inflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } public int getCount() { return results.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public static class ViewHolder{ public TextView name; public TextView phone; public TextView aim; public TextView dept; } public View getView(int position, View conviewtView, ViewGroup pairent) { View vi=conviewtView; ViewHolder holder; if(conviewtView==null){ vi = inflater.inflate(R.layout.item, null); holder=new ViewHolder(); holder.name=(TextView)vi.findViewById(R.id.nameItem); holder.phone=(TextView)vi.findViewById(R.id.phoneItem); holder.aim=(TextView)vi.findViewById(R.id.aimItem); holder.dept=(TextView)vi.findViewById(R.id.deptItem); vi.setTag(holder); } else holder=(ViewHolder)vi.getTag(); holder.name.setText(BNYDirectory.ReturnResults[position][1]); holder.phone.setText(BNYDirectory.ReturnResults[position][2]); holder.aim.setText(BNYDirectory.ReturnResults[position][3]); holder.dept.setText(BNYDirectory.ReturnResults[position][4]); return vi; } } } import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; public class BNYAdapter extends BaseAdapter { private Activity activity; private String[][] results; private static LayoutInflater inflater=null; public BNYAdapter(Activity a, String[][]info) { activity = a; results = info; inflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } public int getCount() { return results.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public static class ViewHolder{ public TextView name; public TextView phone; public TextView aim; public TextView dept; } public View getView(int position, View conviewtView, ViewGroup pairent) { View vi=conviewtView; ViewHolder holder; if(conviewtView==null){ vi = inflater.inflate(R.layout.item, null); holder=new ViewHolder(); holder.name=(TextView)vi.findViewById(R.id.nameItem); holder.phone=(TextView)vi.findViewById(R.id.phoneItem); holder.aim=(TextView)vi.findViewById(R.id.aimItem); holder.dept=(TextView)vi.findViewById(R.id.deptItem); vi.setTag(holder); } else holder=(ViewHolder)vi.getTag(); holder.name.setText(BNYDirectory.ReturnResults[position][1]); holder.phone.setText(BNYDirectory.ReturnResults[position][2]); holder.aim.setText(BNYDirectory.ReturnResults[position][3]); holder.dept.setText(BNYDirectory.ReturnResults[position][4]); return vi; } } } import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; public class BNYAdapter extends BaseAdapter { private Activity activity; private String[][] results; private static LayoutInflater inflater=null; public BNYAdapter(Activity a, String[][]info) { activity = a; results = info; inflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } public int getCount() { return results.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public static class ViewHolder{ public TextView name; public TextView phone; public TextView aim; public TextView dept; } public View getView(int position, View conviewtView, ViewGroup pairent) { View vi=conviewtView; ViewHolder holder; if(conviewtView==null){ vi = inflater.inflate(R.layout.item, null); holder=new ViewHolder(); holder.name=(TextView)vi.findViewById(R.id.nameItem); holder.phone=(TextView)vi.findViewById(R.id.phoneItem); holder.aim=(TextView)vi.findViewById(R.id.aimItem); holder.dept=(TextView)vi.findViewById(R.id.deptItem); vi.setTag(holder); } else holder=(ViewHolder)vi.getTag(); holder.name.setText(BNYDirectory.ReturnResults[position][1]); holder.phone.setText(BNYDirectory.ReturnResults[position][2]); holder.aim.setText(BNYDirectory.ReturnResults[position][3]); holder.dept.setText(BNYDirectory.ReturnResults[position][4]); return vi; } } } import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; public class BNYAdapter extends BaseAdapter { private Activity activity; private String[][] results; private static LayoutInflater inflater=null; public BNYAdapter(Activity a, String[][]info) { activity = a; results = info; inflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } public int getCount() { return results.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public static class ViewHolder{ public TextView name; public TextView phone; public TextView aim; public TextView dept; } public View getView(int position, View conviewtView, ViewGroup pairent) { View vi=conviewtView; ViewHolder holder; if(conviewtView==null){ vi = inflater.inflate(R.layout.item, null); holder=new ViewHolder(); holder.name=(TextView)vi.findViewById(R.id.nameItem); holder.phone=(TextView)vi.findViewById(R.id.phoneItem); holder.aim=(TextView)vi.findViewById(R.id.aimItem); holder.dept=(TextView)vi.findViewById(R.id.deptItem); vi.setTag(holder); } else holder=(ViewHolder)vi.getTag(); holder.name.setText(BNYDirectory.ReturnResults[position][1]); holder.phone.setText(BNYDirectory.ReturnResults[position][2]); holder.aim.setText(BNYDirectory.ReturnResults[position][3]); holder.dept.setText(BNYDirectory.ReturnResults[position][4]); return vi; } } } import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; public class BNYAdapter extends BaseAdapter { private Activity activity; private String[][] results; private static LayoutInflater inflater=null; public BNYAdapter(Activity a, String[][]info) { activity = a; results = info; inflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } public int getCount() { return results.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public static class ViewHolder{ public TextView name; public TextView phone; public TextView aim; public TextView dept; } public View getView(int position, View conviewtView, ViewGroup pairent) { View vi=conviewtView; ViewHolder holder; if(conviewtView==null){ vi = inflater.inflate(R.layout.item, null); holder=new ViewHolder(); holder.name=(TextView)vi.findViewById(R.id.nameItem); holder.phone=(TextView)vi.findViewById(R.id.phoneItem); holder.aim=(TextView)vi.findViewById(R.id.aimItem); holder.dept=(TextView)vi.findViewById(R.id.deptItem); vi.setTag(holder); } else holder=(ViewHolder)vi.getTag(); holder.name.setText(BNYDirectory.ReturnResults[position][1]); holder.phone.setText(BNYDirectory.ReturnResults[position][2]); holder.aim.setText(BNYDirectory.ReturnResults[position][3]); holder.dept.setText(BNYDirectory.ReturnResults[position][4]); return vi; } } 

    e todos juntos que faz uma página como Olhe, uma lista com outras coisas em torno disso!

    Você pode usair seu próprio layout com um ListActivity. Faça com que sua atividade expanda ListActivity, crie seu próprio layout e certifique-se de que o ListView tenha o android:id="@android:id/list" (assim é como o ListActivity liga ao ListView em seu próprio layout), então em onCreate configure o seu layout com setContentView .

    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.