On Tue, Jul 19, 2011 at 10:02 AM, arun kumar <[email protected]> wrote:

>
>
> ---------- Forwarded message ----------
> From: arun kumar <[email protected]>
> Date: Mon, Jul 18, 2011 at 10:10 PM
> Subject: Editview when click an listview has to appear in that layout
> only.......
> To: [email protected]
>
>
>    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 [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

Reply via email to