on Ctrl + F i dont see any widget with id tweetList
Have u copied it right here. if you can loojk at logcat trace then you can trouleshoot more or ask for help with tha ttrace On Mon, Apr 19, 2010 at 11:58 AM, SheikhAman <[email protected]> wrote: > Ohk, > > Things go fine, and i am able to design a layout like this- > > <?xml version="1.0" encoding="utf-8"?> > <RelativeLayout > android:id="@+id/widget101" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > xmlns:android="http://schemas.android.com/apk/res/android" > > > <RelativeLayout > android:id="@+id/widget110" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_alignParentTop="true" > android:layout_alignParentLeft="true" > > <TextView > android:id="@+id/widget112" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="TextView" > android:layout_centerVertical="true" > android:layout_centerHorizontal="true" > > </TextView> > <Button > android:id="@+id/widget111" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Button" > android:layout_alignParentTop="true" > android:layout_alignParentLeft="true" > > </Button> > <Button > android:id="@+id/widget113" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Button" > android:layout_alignParentTop="true" > android:layout_alignParentRight="true" > </Button> > </RelativeLayout> > > <ListView > android:id="@+id/widget114" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_below="@+id/tweetList" > android:layout_alignParentLeft="true" > > </ListView> > </RelativeLayout> > > Things stay fine until i assign the adapter to the list i have > created- > > public class MainActivity extends Activity { > /** Called when the activity is first created. */ > String[] data={"1","2","3"}; > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > setContentView(R.layout.main); > ListView tweetList = (ListView) findViewById(R.id.tweetList); > tweetList.setAdapter(new > ArrayAdapter<String>(this,R.id.tweetList,data)); > } > > } > > as soon as i add the last line, problems start. > > whats wrong? > > here is the structure which i want- > > http://lh6.ggpht.com/_o9EYB0b5APY/S8s-coQE-KI/AAAAAAAACrA/KJUl5ANBi88/desired%20layout.jpg > > Please assist! > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

