开发者

How Can I decrease the distance in the TabHost?

<FrameLayout
            android:id="@+id/FrameLayout02"
            android:layout_height="fill_parent"
            android:layout_width="fill_parent"
            >

            <TabHost android:id="@+id/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="62px">


                    <EditText 
                        android:id="@+id/VisualPane" 
                        android:layout_width="fill_parent" 
                        android:layout_height="fill_parent"
                     />

                    <EditText 
                        android:id="@+id/HTMLPane" 
                        android:layout_width="fill_parent" 
                        android:layout_height="fill_parent"
          开发者_如何学JAVA              />  
                </FrameLayout>
            </TabHost>
        </FrameLayout>

How Can I decrease this distance?

How Can I decrease the distance in the TabHost?

I have tried to change the attribute

android:paddingTop="62px"

But it is useless.


Try to set the android:layout_height = "wrap_content" instead of "fill_parent"
Then you can play with the paddingTop value also :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜