2013-10-14 6 views
2

Я очень хочу знать, какой формат макета использовать с помощью «pocket» приложений. Я хотел бы знать, как использовать шаг за шагом, как это делают приложения.Платформа для разработки приложений для Android PocketBook

enter image description here

+0

Оформить заказ MultiRowListAdapter https://github.com/umano/MultiItemRowListAdapter Что может вам помочь. – GrIsHu

+0

@GrIsHu вы можете разместить в качестве ответа? Я должен отметить правильный ответ. – ppshein

+0

Проверьте мой ответ. – GrIsHu

ответ

1

заказ MultiRowListAdapter, который позволяет очень быстро сделать ваши ListViews и ListActivities выглядеть потрясающе. Это может дать вам некоторую помощь.

+0

@ppshein Спасибо .. :) – GrIsHu

1

Глядя на UI, кажется Фрагменты используются с ActionBarSherlock.

Создайте необходимые фрагменты и включите в этот шаблон.

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:background="#f5f5f5" 
    android:orientation="vertical" > 

    <LinearLayout 
     android:layout_width="match_parent" 
     android:layout_height="0dp" 
     android:layout_weight="1" 
     android:orientation="vertical" > 

     <LinearLayout 
      android:layout_width="match_parent" 
      android:layout_height="0dp" 
      android:layout_weight="1" > 

      <LinearLayout 
       android:layout_width="0dp" 
       android:layout_height="match_parent" 
       android:layout_margin="3dp" 
       android:layout_weight="1" 
       android:background="#ffbf00" > 
      </LinearLayout> 

      <LinearLayout 
       android:layout_width="0dp" 
       android:layout_height="match_parent" 
       android:layout_margin="3dp" 
       android:layout_weight="1" 
       android:background="#fff" > 
      </LinearLayout> 

      <LinearLayout 
       android:layout_width="0dp" 
       android:layout_height="match_parent" 
       android:layout_margin="3dp" 
       android:layout_weight="1" 
       android:background="#37c100" > 
      </LinearLayout> 
     </LinearLayout> 

     <LinearLayout 
      android:layout_width="match_parent" 
      android:layout_height="0dp" 
      android:layout_weight="1" > 

      <LinearLayout 
       android:layout_width="0dp" 
       android:layout_height="match_parent" 
       android:layout_margin="3dp" 
       android:layout_weight="1" 
       android:background="#37c100" > 
      </LinearLayout> 

      <LinearLayout 
       android:layout_width="0dp" 
       android:layout_height="match_parent" 
       android:layout_margin="3dp" 
       android:layout_weight="1" 
       android:background="#ffbf00" > 
      </LinearLayout> 

      <LinearLayout 
       android:layout_width="0dp" 
       android:layout_height="match_parent" 
       android:layout_margin="3dp" 
       android:layout_weight="1" 
       android:background="#fff" > 
      </LinearLayout> 
     </LinearLayout> 
    </LinearLayout> 

    <LinearLayout 
     android:layout_width="match_parent" 
     android:layout_height="0dp" 
     android:layout_weight="1" 
     android:orientation="vertical" > 

     <LinearLayout 
      android:layout_width="match_parent" 
      android:layout_height="0dp" 
      android:layout_weight="1" > 

      <LinearLayout 
       android:layout_width="0dp" 
       android:layout_height="match_parent" 
       android:layout_margin="3dp" 
       android:layout_weight="2" 
       android:background="#ffbf00" > 
      </LinearLayout> 



      <LinearLayout 
       android:layout_width="0dp" 
       android:layout_height="match_parent" 
       android:layout_margin="3dp" 
       android:layout_weight="1" 
       android:background="#37c100" > 
      </LinearLayout> 
     </LinearLayout> 

     <LinearLayout 
      android:layout_width="match_parent" 
      android:layout_height="0dp" 
      android:layout_weight="1" > 

      <LinearLayout 
       android:layout_width="0dp" 
       android:layout_height="match_parent" 
       android:layout_margin="3dp" 
       android:layout_weight="1" 
       android:background="#37c100" > 
      </LinearLayout> 

      <LinearLayout 
       android:layout_width="0dp" 
       android:layout_height="match_parent" 
       android:layout_margin="3dp" 
       android:layout_weight="1" 
       android:background="#ffbf00" > 
      </LinearLayout> 

      <LinearLayout 
       android:layout_width="0dp" 
       android:layout_height="match_parent" 
       android:layout_margin="3dp" 
       android:layout_weight="1" 
       android:background="#fff" > 
      </LinearLayout> 
     </LinearLayout> 
    </LinearLayout> 


</LinearLayout> 

enter image description here

+1

Оставьте это в ActionBar. Пожалуйста, дайте мне знать, как завершить этот стиль макета с таким количеством блоков. – ppshein

+0

Слышали ли вы о включении блока в пользовательский интерфейс? Просто включите фрагменты в пользовательский интерфейс. –

+0

Обновленный ответ, проверьте сейчас. –

Смежные вопросы