Линейный макет

Курс "Программирование под Андроид"
2 уровень, 2 лекция
Открыта

Ссылка на визуализатор XML

Свои ответы и вопросы можете оставлять в комментариях.

Комментарии (45)
ЧТОБЫ ПОСМОТРЕТЬ ВСЕ КОММЕНТАРИИ ИЛИ ОСТАВИТЬ КОММЕНТАРИЙ,
ПЕРЕЙДИТЕ В ПОЛНУЮ ВЕРСИЮ
Khalim Rustamov Уровень 2
13 декабря 2023
Не открывается ссылка XMl
Руслан Уровень 21
25 июня 2022
iwankrawa Уровень 3
6 декабря 2022
а чего у тебя имена разные в телефоне и в коде ?
4 апреля 2022
30 марта 2021
<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>
Руслан Асаев Уровень 14
19 января 2021
<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>
Имя Фамилия Уровень 19
28 декабря 2020

.................
android:text="Cat cat = new Cat (''Kunal'')"
.................
Ну вот хотел пошалить и нечаянно узнал, что низя использовать кавычки внутри кавычек. Написал имя кота через пары отдельных - ' - и норм так прокатило. В коде показывает, что это два отдельных символа, а визуализирует как обычные кавычки Cat cat = new Cat (''Kunal'')
🦔 Виктор Уровень 20 Expert
24 ноября 2020
Обязательно нужно объявить в начале пространство имён, с которым мы будем работать, чтобы названия атрибутов не пересекались с другими типами. Вьюшки — это представления.
DoZ Уровень 1
28 октября 2020

<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="Гости вечеринки"
        android:textColor="#549D53"
        android:textAllCaps="true"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="#D41B46"
        android:textSize="37sp"  />

    <TextView
        android:text="Кумар"
        android:textColor="#FB7209"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="#549D53"
        android:textSize="30sp"  />
    <ImageView
        android:src="@drawable/marshmallow"
   		android:layout_width="300dp"
    	android:layout_height="300dp"
        android:scaleType="centerCrop"/>
    
    <TextView
        android:text="Канал"
        android:textColor="#FB7209"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="#549D53"
        android:textSize="30sp"  />
    
        <ImageView
        android:src="@drawable/fish"
   		android:layout_width="300dp"
    	android:layout_height="300dp"
        android:scaleType="centerCrop"/>
  

</LinearLayout>
Роман Уровень 1
21 октября 2020
<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
<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>