Can you provide the LogCat output?  Then we can see where the
NullPointerException is coming from...

As far as scroll bars, you can wrap the root element in the tab (which
would be the TableLayout in the above example) with a ScrollView.



On Feb 3, 10:39 am, Chirayu Dalwadi <[email protected]> wrote:
> Guys please help me out
>
> On Wed, Feb 3, 2010 at 5:26 PM, Chirayu Dalwadi
> <[email protected]>wrote:
>
>
>
>
>
>
>
> > Hi all,
>
> > In the below XML, I'm getting NullPointerException.  What is the reason
> > behind that?
>
> > I also want scroll bars in th same XML. How to do that?
>
> > <?
> > xml version=*"1.0"* encoding=*"utf-8"*?>
>
> >    <?
> > xml version=*"1.0"* encoding=*"utf-8"*?>
>
> > <
> > TabHost xmlns:android=*"http://schemas.android.com/apk/res/android"*
>
> > android:id
> > =*"@+id/my_tabhost"*
>
> > android:layout_width
> > =*"fill_parent"*
>
> > android:layout_height
> > =*"fill_parent"*
>
> > android:background
> > =*"#ffffff"*>
>
> > <TabWidget
>
> > android:id=*"@android:id/tabs"*
>
> > android:layout_width=*"fill_parent"*
>
> > android:layout_height=*"65px"*/>
>
> > <FrameLayout
>
> > android:id=*"@android:id/tabcontent"*
>
> > android:layout_width=*"fill_parent"*
>
> > android:layout_height=*"200px"*
>
> > android:paddingTop=*"65px"*>
>
> > <TableLayout
>
> > android:id=*"@+id/TableLayout01"*
>
> > android:layout_width=*"fill_parent"*
>
> > android:layout_height=*"fill_parent"*
>
> > xmlns:android=*"http://schemas.android.com/apk/res/android"*>
>
> > <TableRow>
>
> > <TextView
>
> > android:id=*"@+id/lbl1"*
>
> > android:layout_width=*"wrap_content"*
>
> > android:layout_height=*"wrap_content"*
>
> > android:layout_column=*"0"*
>
> > **android:layout_marginTop=*"10dip"*
>
> > android:text=*"@string/lbl1"*/>
>
> > <Spinner
>
> > android:id=*"@+id/spinner"*
>
> > android:layout_width=*"fill_parent"*
>
> > android:layout_height=*"wrap_content"*
>
> > android:drawSelectorOnTop=*"true"*
>
> > android:prompt=*"@string/planet_prompt"*/>
>
> > </
> > TableRow>
>
> > </
> > TableLayout>
>
> > </
> > FrameLayout>
>
> > </
> > TabHost>
> > Warm Regards,
> > Chirayu Dalwadi
>
> --
> Warm Regards,
> Chirayu Dalwadi
>
> Cell Number: +91-997-470-4341
> Email: [email protected]
> Profile:http://www.google.com/profiles/chirayu.dalwadi
>
> "Pain is temporary. Quitting lasts forever." -- Lance Armstrong

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to