2012-03-15 3 views
1

내 XML 파일에 모든 것이 어떻게 보이지만 내 전화기와 에뮬레이터에서는 두 개의 버튼이 서로 바뀝니다. 여기 내 (그래서 나는 단지 관련 부분을 붙여 넣기하고는 긴) 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 그래픽보기에 정확하고 코드보기,하지만 내가 말했듯이 그들은 전화와 에뮬레이터에 장소를 바꿉니다. 그 이유는 무엇일까요?

+0

시도를 재 구축 할 수 있습니다 어떤 이유가 표시되지 않습니다. Caner와 같은 생각입니다. – PhatHV

답변

0

나는 이유는, 어쩌면 당신이 Project -> Clean을 시도하고 청소하고 프로젝트를 재건

+0

나는 그것을 생각해야했다. 고맙다. – tan

관련 문제