Линейный макет
Комментарии (45)
- популярные
- новые
- старые
Для того, чтобы оставить комментарий Вы должны авторизоваться
Khalim Rustamov
13 декабря 2023, 11:31
Не открывается ссылка XMl
0
Руслан
25 июня 2022, 18:15
0
iwankrawa
6 декабря 2022, 15:56
а чего у тебя имена разные в телефоне и в коде ?
0
Максим Ткаченко
4 апреля 2022, 14:50
0
Азамат Байтемиров
30 марта 2021, 04:47
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:text="Guest List"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="24sp" />
<TextView
android:text="Kunal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="24sp" />
<TextView
android:text="Pria"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="24sp" />
<TextView
android:text="Luna"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="24sp" />
</LinearLayout>
+2
Руслан Асаев
19 января 2021, 05:41
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:text="Guest List"
android:textColor="#9370DB"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="24sp" />
<TextView
android:text="Kunal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="24sp" />
<TextView
android:text="Ruslan"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="24sp" />
<TextView
android:text="Timur"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="24sp" />
<TextView
android:text="Aigul'"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="24sp" />
</LinearLayout>
+2
Имя Фамилия
28 декабря 2020, 11:17
Ну вот хотел пошалить и нечаянно узнал, что низя использовать кавычки внутри кавычек. Написал имя кота через пары отдельных - ' - и норм так прокатило. В коде показывает, что это два отдельных символа, а визуализирует как обычные кавычки Cat cat = new Cat (''Kunal'')
+1
🦔 Викторведу учебный тг-канал в t.me/JavangelionExpert
24 ноября 2020, 18:05
Обязательно нужно объявить в начале пространство имён, с которым мы будем работать, чтобы названия атрибутов не пересекались с другими типами.
Вьюшки — это представления.
+3
DoZ
28 октября 2020, 09:55
+5
Роман
21 октября 2020, 16:02
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:text="Guest List"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="48sp" />
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:src="@drawable/mountains"
android:layout_width="100dp"
android:layout_height="100dp"
android:scaleType="centerCrop"/>
<TextView
android:text="Olga"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="32sp" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:src="@drawable/fish"
android:layout_width="100dp"
android:layout_height="100dp"
android:scaleType="centerCrop"/>
<TextView
android:text="Roma"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="32sp" />
</LinearLayout>
+2
Дарья
19 июля 2020, 17:18
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:text="Guest List"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="48sp" />
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:src="@drawable/mountains"
android:layout_width="100dp"
android:layout_height="100dp"
android:scaleType="centerCrop"/>
<TextView
android:text="Kunal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="98sp" />
</LinearLayout>
</LinearLayout>
+5