HI
      am having an textview placed at the bottom of the layout...when i
click on the "projects" an list has to appear (demo projects,sem
projects,All projects)....similarly when i click on the seminar another list
has to appear related to seminar....
I        I defined textview in the xml file and i placed the textviews at
the bottom of the layout...in java file i wrote onclick listener when i
click on projects a small listview has to appeear in that layout
only........




  Public class WelcomePage extends Activity {

@protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
 setContentView(R.layout.welcome);


 final TextView tv1=( TextView)findViewById(R.id.t1);
 tv1.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub

                String[] names = new String[] { "DemoProjects", "SemProjects", 
"AllProjects",
                                "};
                
                                this.setListAdapter(new 
ArrayAdapter<String>(this,

android.R.layout.simple_list_item_1, names));


}
});
 final TextView tv2=( TextView)findViewById(R.id.t2);
 tv2.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
}
});
 final TextView tv3=( TextView)findViewById(R.id.t3);
 tv3.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
 }
});
 }

}





<LinearLayout 
xmlns:android="*http://schemas.android.com/apk/res/android*"android:orientation
="*vertical*" android:layout_width="*fill_parent*" android:layout_height="*
fill_parent*" android:id="*@+id/ll*" android:background="*@drawable/circle6*
">

                 <LinearLayout
android:layout_alignParentBottom="*true*"android:layout_height
="*wrap_content*"
android:layout_width="*fill_parent*"android:orientation
="*horizontal*" android:id="*@+id/wln1*">
             <TextView android:text="*Projects*"
android:id="*@+id/t1*"android:layout_height
="*wrap_content*" android:layout_width="*115dip*" />
             <TextView android:text="*Seminars*"
android:id="*@+id/t2*"android:layout_height
="*wrap_content*" android:layout_width="*105dip*"/>
             <TextView android:text="*Investments*"
android:id="*@+id/t3*"android:layout_height
="*wrap_content*"           android:layout_width="*wrap_content*" />
      </LinearLayout>

</LinearLayout>



Thankyou
arun

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to