Пример макетов для 4 кнопок и текста под ними - PullRequest
0 голосов
/ 10 мая 2011

Есть ли какой-нибудь пример xml для действия, которое состоит из четырех кнопок (две подряд) и текста под ними?

Что-то вроде этого, но меньше кнопок.enter image description here

1 Ответ

1 голос
/ 10 мая 2011

попробуйте отредактировать это! сделал это за 2 минуты хаха должен идти ~ удачи и cya

  <LinearLayout
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:orientation="horizontal">
  <Button
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:layout_weight="1"
  android:text="Button 1">
  </Button>
   <Button
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:layout_weight="1"
  android:text="Button 2">
  </Button>
  </LinearLayout>
  <LinearLayout
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:orientation="horizontal">
  <Button
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:layout_weight="1"
  android:text="Button 3">
  </Button>
   <Button
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:layout_weight="1"
  android:text="Button 4">
  </Button>
  </LinearLayout>
  <EditText
    android:layout_width="fill_parent"
  android:layout_height="wrap_content"
   android:text="I love some text here!"
  ></EditText>
</LinearLayout>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...