English 中文(简体)
在安兹的塔布东道执行区搬走额外空间
原标题:Rremove extra spaces in Tab host implementation in Android
  • 时间:2011-11-24 10:27:39
  •  标签:
  • android

我有一个问题,即我正在执行我的和roid的一条刺条,但塔布东道方从左边、右边、上层和底层稍有外差,眼看得如此,因此,我们如何能够从塔布东道方清除这些额外空间。 你可以很容易地用红外空间来理解。

请就此向我提出正确答案。

<>Xml Layout:

<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/tabhost"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" android:layout_marginLeft="0dip" android:layout_marginRight="0dip" android:layout_marginTop="0dip"
    android:layout_marginBottom="0dip" xmlns:android1="http://schemas.android.com/apk/res/android">
    <LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:padding="5dp">
         <FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:padding="5dp"
            android:layout_weight="1"
            android:layout_marginTop="-6dp"
            />
        <TabWidget
            android:id="@android:id/tabs"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" />

    </LinearLayout>
</TabHost>
最佳回答

您可能有<代码>android:patter<>/code>, 或您有 :layout_margin<>/code>在集装箱内添加的布稿中。

如果你希望得到更多的具体帮助,将XML存档。

<><>Edit>/strong>

根据您的XML文件,您的android:pavention=“5dp”载于FrameLayoutLinearLayout。 驱赶这些孩子,你会 dis灭。

问题回答

You can set Your android:padding="0px" or you can remove your padding or try android:layoutMargin or android:padding or you try to gime some code





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...