1
私のXMLファイルでは、私の望み通りに見えますが、電話機とエミュレータでは2つのボタンが入れ替わります。ここ は私のXML(それは長いので、私は唯一の関連部分を貼り付けています)です。ボタンは位置を変えません
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/contentLayout"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="vertical"
android:gravity="center">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal"
android:paddingTop="5dp">
<Button
android:id="@+id/buttonBack"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/indexmenu_button"
android:layout_marginRight="8dp"
android:layout_marginLeft="0dp" />
<Button
android:id="@+id/buttonChannelList"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="8dp"
android:layout_marginLeft="8dp"
android:text=""
android:background="@drawable/channelnotselected"/>
<Button
android:id="@+id/buttonFavoriteChannelList"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="8dp"
android:layout_marginLeft="8dp"
android:text=""
android:background="@drawable/favoritelistnotselected"/>
だから、「+ ID/buttonChannelList @」ボタンと「@ + ID/buttonFavoriteChannelList」XMLグラフィカルビューで正しく、私が言ったように、彼らは電話とエミュレータで場所を交換する。 理由は何でしょうか?
を再構築することができない理由が表示されません。私はCanerと同じだと思います。 – PhatHV