public class ConnectUI extends Activity{
Button bt1;
Button bt2;
ListView tv1;
ListView tv2;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.connect);
    bt1 = (Button)findViewById(R.id.Cbutton1);
bt2 = (Button)findViewById(R.id.Cbutton2);
tv1 = (ListView)findViewById(R.id.CLV1);
tv2 = (ListView)findViewById(R.id.CLV2);
bt1.setOnClickListener(new View.OnClickListener() {

public void onClick(View arg0) {
// TODO Auto-generated method stub

}
});
}xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<Button 
android:name="@+id/Cbutton1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/text1"
/>
<ListView
android:name="@+id/CLV1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<Button
android:name="@+id/Cbutton2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/text2"
/>
<ListView
android:name="@+id/CLV2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>