[android-developers] Problem with adding contents with Tab

2009-06-04 Thread RS.Giridaran

Hi All,

i am creating an application with two tabs i want to add contents for
each tab with Text View and Buttons.here is my layout xml definition
-
?xml version=1.0 encoding=utf-8?
TabHost xmlns:android=http://schemas.android.com/apk/res/android;
 android:id=@+id/th_set_menu_tabhost
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 TabWidget
  android:id=@android:id/tabs
  android:layout_width=fill_parent
  android:layout_height=fill_parent/
 FrameLayout
  android:id=@android:id/tabcontent
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:paddingTop=65px
  LinearLayout
   android:id=@+id/grid_set_menu_page1
   android:orientation=horizontal
  android:layout_width=fill_parent
  android:layout_height=fill_parent
ImageButton
 android:id=@+id/ibtn_settings_audio
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 /
ImageButton
 android:id=@+id/ibtn_settings_close_page1
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 /
  /LinearLayout
  LinearLayout
   android:id=@+id/grid_set_menu_page2
   android:orientation=horizontal
  android:layout_width=fill_parent
  android:layout_height=fill_parent
ImageButton
 android:id=@+id/ibtn_settings_favorites
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 /
ImageButton
 android:id=@+id/ibtn_settings_close_page2
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:gravity=right
 /
  /LinearLayout
 /FrameLayout
/TabHost
-
In java file i have added
this.myTabHost = (TabHost)this.findViewById
(R.id.th_set_menu_tabhost);
this.myTabHost.setup();
its not working.i am getting an exception in emulator(application
stopped unexpectely).

please help me on this..

please  suggest me  the best way to do this.

Thanks in advance



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Problem with adding contents with Tab

2009-06-04 Thread RS.Giridaran

Hi All,

i am creating an application with two tabs i want to add contents for
each tab with Text View and Buttons.here is my layout xml definition
-
?xml version=1.0 encoding=utf-8?
TabHost xmlns:android=http://schemas.android.com/apk/res/android;
 android:id=@+id/th_set_menu_tabhost
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 TabWidget
  android:id=@android:id/tabs
  android:layout_width=fill_parent
  android:layout_height=fill_parent/
 FrameLayout
  android:id=@android:id/tabcontent
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:paddingTop=65px
  LinearLayout
   android:id=@+id/grid_set_menu_page1
   android:orientation=horizontal
  android:layout_width=fill_parent
  android:layout_height=fill_parent
ImageButton
 android:id=@+id/ibtn_settings_audio
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 /
ImageButton
 android:id=@+id/ibtn_settings_close_page1
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 /
  /LinearLayout
  LinearLayout
   android:id=@+id/grid_set_menu_page2
   android:orientation=horizontal
  android:layout_width=fill_parent
  android:layout_height=fill_parent
ImageButton
 android:id=@+id/ibtn_settings_favorites
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 /
ImageButton
 android:id=@+id/ibtn_settings_close_page2
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:gravity=right
 /
  /LinearLayout
 /FrameLayout
/TabHost
-
In java file i have added
this.myTabHost = (TabHost)this.findViewById
(R.id.th_set_menu_tabhost);
this.myTabHost.setup();
its not working.i am getting an exception in emulator(application
stopped unexpectely).

please help me on this..

please  suggest me  the best way to do this.

Thanks in advance



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Problem with adding contents with Tab

2009-06-04 Thread RS.Giridaran

Hi All,

i am creating an application with two tabs i want to add contents for
each tab with Text View and Buttons.here is my layout xml definition
-
?xml version=1.0 encoding=utf-8?
TabHost xmlns:android=http://schemas.android.com/apk/res/android;
 android:id=@+id/th_set_menu_tabhost
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 TabWidget
  android:id=@android:id/tabs
  android:layout_width=fill_parent
  android:layout_height=fill_parent/
 FrameLayout
  android:id=@android:id/tabcontent
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:paddingTop=65px
  LinearLayout
   android:id=@+id/grid_set_menu_page1
   android:orientation=horizontal
  android:layout_width=fill_parent
  android:layout_height=fill_parent
ImageButton
 android:id=@+id/ibtn_settings_audio
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 /
ImageButton
 android:id=@+id/ibtn_settings_close_page1
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 /
  /LinearLayout
  LinearLayout
   android:id=@+id/grid_set_menu_page2
   android:orientation=horizontal
  android:layout_width=fill_parent
  android:layout_height=fill_parent
ImageButton
 android:id=@+id/ibtn_settings_favorites
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 /
ImageButton
 android:id=@+id/ibtn_settings_close_page2
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:gravity=right
 /
  /LinearLayout
 /FrameLayout
/TabHost
-
In java file i have added
this.myTabHost = (TabHost)this.findViewById
(R.id.th_set_menu_tabhost);
this.myTabHost.setup();
its not working.i am getting an exception in emulator(application
stopped unexpectely).

please help me on this..

please  suggest me  the best way to do this.

Thanks in advance



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---