0

こんにちは、上部にメニューバーがあり、レイアウトにボタンが表示されるアプリを開発しようとしています.4つの異なる目的のために4つのレイアウトがあります..XMLを編集すると、グラフィカルレイアウトで適切に表示されますが、アプリをインストールして表示すると電話では、これらのボタンや、メニューバーのタブにテキストを編集するなどの追加の追加は表示されません..誰か助けてください。ここに私のxmlレイアウトがあります

<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"

    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

    <EditText
        android:id="@+id/username"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_x="1dp"
        android:layout_y="236dp"
        android:clickable="true"
        android:ems="10" />

    <Button
        android:id="@+id/signUp"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_x="4dp"
        android:layout_y="154dp"
        android:text="Sign up!" />

</AbsoluteLayout>

これは、レイアウトを統合する私の XML レイアウトです。

<?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">
    <LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:padding="5dp">
        <TabWidget
            android:id="@android:id/tabs"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" />
        <FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:padding="5dp" />
    </LinearLayout>
</TabHost>
4

0 に答える 0