0

那麼我知道關於android設計的指導方針,但有時候,這不會幫助您設計。如何顯示持久性設計,而不是弄亂指導線

具體來說,如果您的設計沒有接近android本地設計,但它更接近網頁設計。

那麼這裏是我的照片,可以給你我的問題的想法。

enter image description here

現在,這是對話,它看起來在風景模式下具有良好的佈局,但它在縱向模式下screwd了一些時候的一些看法被砍掉或縮小畫面。

問題:? 如何才能以最好的方式處理我不操縱設計指南?

它對於每種模式的外觀如何?

什麼是設計在每種模式和所有設備上看起來相同的最佳方式?意義上它在更寬的屏幕上變寬,並且在小屏幕上接近?

最終問題

是不是很好,不用TextView來顯示labes,即在我的情況下,它顯示請選擇數量和每個單選按鈕有文本顯示數量,有沒有什麼方法來顯示塊級別上的文本標籤?只是看下面的圖片? enter image description here

回答

0

在這種情況下,您應該使用具有權重的線性佈局。它會自動調整到可用尺寸。下面是一個簡單

<LinearLayout 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:orientation="horizontal" 
     android:weightSum="100"> 

     <RelativeLayout 
      android:layout_width="0dp" 
      android:layout_height="wrap_content" 
      android:layout_weight="20"></RelativeLayout> 

     <RelativeLayout 
      android:layout_width="0dp" 
      android:layout_height="wrap_content" 
      android:layout_weight="20"></RelativeLayout> 

     <RelativeLayout 
      android:layout_width="0dp" 
      android:layout_height="wrap_content" 
      android:layout_weight="20"></RelativeLayout> 

     <RelativeLayout 
      android:layout_width="0dp" 
      android:layout_height="wrap_content" 
      android:layout_weight="20"></RelativeLayout> 

    </LinearLayout> 

你可以看到更多的細節here

+0

以及我設計我使用這種技術 –

+0

那麼,你還可以指定prtrait和橫向模式不同textsizes和IMAGESIZE所有佈局 –