2013-02-25 2 views
1

내 디자인은 안드로이드 4.0 일반 분해능 장치에 안드로이드 2.1에서 잘하고 괜찮하지만 태블릿에 내 응용 프로그램을 실행할 때의 디자인은 완전히 나에게디자인 고해상도 장치에서 옳지 않다

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:tools="http://schemas.android.com/tools" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:orientation="vertical" 
android:background="@drawable/bowlbackground" > 

<LinearLayout 
    android:id="@+id/hkk" 
    android:layout_width="match_parent" 
    android:layout_height="54dp" 
    android:layout_marginLeft="18dp" 
    android:layout_marginRight="10dp" 
    android:layout_marginTop="05dp" > 

</LinearLayout> 
<LinearLayout 
    android:id="@+id/hll" 
    android:layout_width="match_parent" 
    android:layout_height="54dp" 
    android:layout_marginLeft="18dp" 
    android:layout_marginRight="10dp" 
    android:layout_marginTop="143dp" > 

</LinearLayout> 

<LinearLayout 
    android:id="@+id/hll2" 
    android:layout_width="match_parent" 
    android:layout_height="54dp" 
    android:layout_marginLeft="18dp" 
    android:layout_marginRight="10dp" 
    android:layout_marginTop="0dp" > 

     </LinearLayout> 

</LinearLayout> 

답변

1

사용이

res/layout/my_layout.xml    // layout for normal screen size ("default") 
res/layout-small/my_layout.xml  // layout for small screen size 
res/layout-large/my_layout.xml  // layout for large screen size 
res/layout-xlarge/my_layout.xml  // layout for extra large screen size 
res/layout-xlarge-land/my_layout.xml // layout for extra large in landscape orientation 

res/drawable-mdpi/my_icon.png  // bitmap for medium density 
res/drawable-hdpi/my_icon.png  // bitmap for high density 
res/drawable-xhdpi/my_icon.png  // bitmap for extra high density 
2
    도움, 변경
  1. 휴대 전화 및 태블릿 디자인이 다릅니다.
  2. 보기에 고정 너비 및 높이 크기를 사용하지 마십시오 (실제로는 을 피할 수없는 경우 제외). See this 자세한 내용은
  3. supporting multiple screens에 대한 문서를 참조하십시오. 그것은 태블릿 설계에 도움이됩니다.
+1

그냥 그에 추가했는지 확인하십시오 사용 [단편] (http://developer.android.com/guide/components/fragments.html) 더 잘 할 수 있도록 큰 화면에서 얻는 여분의 부동산을 사용하십시오. – ebarrenechea

+0

안녕하세요 @RKN 나는 당신의 주어진 링크를 사용하고 있습니다. 이제 레이아웃 -xlarge와 레이아웃 -xlarge-land를 사용하고 있습니다. 이제는 여백 위쪽에 모든 것을 놓았지만, 다시 설정은 내가 정의하지 않았습니다. – kamal

관련 문제