2013-03-08 2 views
1

Я пытаюсь получить этот макет в приложении для Android. http://img339.imageshack.us/img339/3374/screenshot1362677685476.pngФормат экрана в полноэкранном режиме Android

Я использую макет таблицы прямо сейчас, но мой стол не растянут, чтобы заполнить весь контейнер.

Вот пример моего макета:

<TableLayout 
    android:layout_height="wrap_content" 
    android:layout_width="wrap_content" 
    android:stretchColumns="*" > 
<TableRow> 
    <LinearLayout 
     android:orientation="vertical" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" > 
     <ImageButton 
      android:layout_gravity="center_horizontal" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:background="#00000000" 
      android:src="@drawable/##image##" /> 
    </LinearLayout> 
<LinearLayout 
     android:orientation="vertical" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" > 
     <ImageButton 
      android:layout_gravity="center_horizontal" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:background="#00000000" 
      android:src="@drawable/##image##" /> 
    </LinearLayout> 
<LinearLayout 
     android:orientation="vertical" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" > 
     <ImageButton 
      android:layout_gravity="center_horizontal" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:background="#00000000" 
      android:src="@drawable/##image##" /> 
    </LinearLayout> 


</TableRow> 
<TableRow> 
    <LinearLayout 
     android:orientation="vertical" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" > 
     <ImageButton 
      android:layout_gravity="center_horizontal" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:background="#00000000" 
      android:src="@drawable/##image##" /> 
    </LinearLayout> 
<LinearLayout 
     android:orientation="vertical" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" > 
     <ImageButton 
      android:layout_gravity="center_horizontal" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:background="#00000000" 
      android:src="@drawable/##image##" /> 
    </LinearLayout> 
<LinearLayout 
     android:orientation="vertical" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" > 
     <ImageButton 
      android:layout_gravity="center_horizontal" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:background="#00000000" 
      android:src="@drawable/##image##" /> 
    </LinearLayout> 


</TableRow> 

Любые предложения?

ответ

0

лет просто добавить этот код в деятельности, где эта схема использует

super.onCreate(savedInstanceState); 

requestWindowFeature (Window.FEATURE_NO_TITLE);

  //Full screen is set for the Window 

     setContentView(R.layout.activity_main); 

requestWindowFeature (Window.FEATURE_NO_TITLE);

даст вам полноэкранный режим

+0

я нашел хорошее решение чтения здесь http://stackoverflow.com/questions/6203609/android-percentage-layout-height – user2148394

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