Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as XML by chexov ( 15 years ago )
<?xml version="1.0" encoding="utf-8"?>
<!-- Главный лаяут -->
<LinearLayout
 xmlns:android="http://schemas.android.com/apk/res/android"
 android:background="@drawable/bgr_options_scores"
 android:orientation="vertical"
 android:gravity="top|center"
 android:weightSum="1.0"
 android:layout_height="fill_parent"
 android:layout_width="fill_parent"
 >
<!-- Текст "Настройка игры" сверху 10%  -->
 <LinearLayout 
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:orientation="horizontal"
     android:layout_weight=".10"
 >
  <TextView
    android:text="Настройки игры"
    android:textSize="25dip"
    android:textColor="#274858"
    android:layout_width="fill_parent"
    android:gravity="center"
    android:layout_height="wrap_content"
    android:textStyle="bold"
    android:layout_marginTop="5dip"
  />
 </LinearLayout>
<!-- Сами настройки,будут в таблице 75% --> 
<LinearLayout
 android:scrollbars="horizontal"
 android:layout_width="fill_parent"
 android:layout_height="wrap_content"
 android:gravity="center"
 android:layout_weight=".75"
 android:orientation="vertical"
 >
 <!-- Сама таблица с виджетами настроек -->
 <TableLayout
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:gravity="center"
  android:background="#b3a884"
 >
  <TableRow
   android:gravity="center"
   android:weightSum="1.0"
  >
    <Button 
         android:id="@+id/buttonAvatar1"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:background="@layout/button_avachange"
     android>
    <EditText 
         android:id="@+id/textEditPlayer1"
         android:layout_height="wrap_content"
     android:layout_width="fill_parent"
     android:singleLine="True"
     android:maxLength="14"
     android:layout_weight=".4"
    />
    <Spinner 
      android:id="@+id/spinnerPlayer1"
      android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:drawSelectorOnTop="true"
     android:prompt="@string/optionGame"
     android:textSize="10dip"
     android:layout_weight=".4"
     />
  </TableRow>
<TableRow
   android:gravity="center"
   android:weightSum="1.0"
  >
    <Button 
         android:id="@+id/buttonAvatar2"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:background="@layout/button_avachange"
     android>
    <EditText 
         android:id="@+id/textEditPlayer2"
         android:layout_height="wrap_content"
     android:layout_width="fill_parent"
     android:singleLine="True"
     android:maxLength="14"
     android:layout_weight=".4"
    />
    <Spinner 
      android:id="@+id/spinnerPlayer2"
      android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:drawSelectorOnTop="true"
     android:prompt="@string/optionGame"
     android:textSize="10dip"
     android:layout_weight=".4"
     />
  </TableRow>
<TableRow
   android:gravity="center"
   android:weightSum="1.0"
  >
    <Button 
         android:id="@+id/buttonAvatar3"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:background="@layout/button_avachange"
     android>
    <EditText 
         android:id="@+id/textEditPlayer3"
         android:layout_height="wrap_content"
     android:layout_width="fill_parent"
     android:singleLine="True"
     android:maxLength="14"
     android:layout_weight=".4"
    />
    <Spinner 
      android:id="@+id/spinnerPlayer3"
      android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:drawSelectorOnTop="true"
     android:prompt="@string/optionGame"
     android:textSize="10dip"
     android:layout_weight=".4"
     />
  </TableRow>
<TableRow
   android:gravity="center"
   android:weightSum="1.0"
  >
    <Button 
         android:id="@+id/buttonAvatar4"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:background="@layout/button_avachange"
     android>
    <EditText 
         android:id="@+id/textEditPlayer4"
         android:layout_height="wrap_content"
     android:layout_width="fill_parent"
     android:singleLine="True"
     android:maxLength="14"
     android:layout_weight=".4"
    />
    <Spinner 
      android:id="@+id/spinnerPlayer4"
      android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:drawSelectorOnTop="true"
     android:prompt="@string/optionGame"
     android:textSize="10dip"
     android:layout_weight=".4"
     />
  </TableRow>

 </TableLayout>
 </LinearLayout>
 <!-- 2 кнопки  "Старт" и "В меню" 15%-->
 <LinearLayout
  android:orientation="horizontal"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:layout_weight=".15"
  android:background="@drawable/gradient_blue"
  android:gravity="center"
  >
  <!-- Старт игры -->
  <Button 
      android:id="@+id/buttonStartGame"
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:background="@layout/button_small"
   android>

 
  <!-- В меню -->
  <Button 
      android:id="@+id/buttonReturnToMenu"
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:background="@layout/button_small"
   android>
 </LinearLayout>
</LinearLayout>

 

Revise this Paste

Your Name: Code Language: