Canon: авторизированная розничная сеть
 

Ваш заказ:




 
 
 

Новости:

Canon PowerShot SX40 HS

Подробное описание Canon PowerShot SX40 HS 15000 руб.
(В наличии)
Положить в корзину!

Nikon D3100 KIT 18-55

Подробное описание Nikon D3100 KIT 18-55 15700 руб.
(В наличии)
Положить в корзину!

Nikon D5100 KIT 18-55

Подробное описание Nikon D5100 KIT 18-55 21000 руб.
(В наличии)
Положить в корзину!

Nikon D90 KIT AF-S DX 18-105

Подробное описание Nikon D90 KIT AF-S DX 18-105 27500 руб.
(В наличии)
Положить в корзину!

Canon EOS 600D KIT 18-55 is

Подробное описание Canon EOS 600D KIT 18-55 is 22000 руб.
(В наличии)
Положить в корзину!

Sony Alpha SLT-A37 KIT 18-55

Подробное описание Sony Alpha SLT-A37 KIT 18-55 18700 руб.
(В наличии)
Положить в корзину!

Canon EOS 650D kit (18-55isII)

Подробное описание Canon EOS 650D kit (18-55isII) 26000 руб.
(В наличии)
Положить в корзину!

Canon EOS 600D KIT 18-55+KIT 55-250

Подробное описание Canon EOS 600D KIT 18-55+KIT 55-250 27500 руб.
(В наличии)
Положить в корзину!

Canon EF-S 15-85mm 3.5-5.6mm IS USM

Подробное описание Canon EF-S 15-85mm 3.5-5.6mm IS USM 26000 руб.
(В наличии)
Положить в корзину!

Canon EF-S 55-250mm 4-5.6 IS

Подробное описание Canon EF-S 55-250mm 4-5.6 IS 6500 руб.
(В наличии)
Положить в корзину!

Apple iPhone 5

Подробное описание Apple iPhone 5 24500 руб.
(В наличии)
Положить в корзину!

Главная Новости

Android. Обзор TableLayout 2

Опубликовано: 26.09.2017

видео Android. Обзор TableLayout 2

Start аndroid: Урок 75. Хранение данных. Работа с файлами в Android
Продолжаем говорить о контейнере компоновки TableLayout.

В этом обзоре мы разберём атрибуты android:shrinkColumns, android:collapseColumns и напишем программное добавление строк таблицы.



Атрибут android:shrinkColumns

В предыдущем обзоре TableLayout, мы рассмотрели атрибут android:stretchColumns, который отвечал за то, что элементы будут растянуты по всей длине, но что делать если содержимое слишком длинное и занимает всю ширину? Решение есть! Необходимо установить атрибутandroid:shrinkColumns, чтобы переносить содержимое столбца или столбцов, если для других столбцов нужно больше места.


Урок 5. Файл макета экрана android-приложения в XML виде. Поворот устройства | Android Studio

Начнём с примера. Возьмём за основу первый пример из предыдущего поста и изменим немного его, добавив новый атрибут и длинное название для первого и второго столбцов.

Пример 1
<?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:background="#eeeeee" android:stretchColumns="*" android:shrinkColumns="0,1" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TableRow android:background="#cccccc"> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Дата заказа" android:gravity="center_horizontal" android:textAppearance="?android:attr/textAppearanceLarge" /> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Количество заказов" android:gravity="center_horizontal" android:textAppearance="?android:attr/textAppearanceLarge" /> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Сумма" android:gravity="center_horizontal" android:textAppearance="?android:attr/textAppearanceLarge" /> </TableRow> <TableRow android:padding="5dp"> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="22 ноября" android:gravity="center_horizontal" android:textAppearance="?android:attr/textAppearanceMedium" /> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="397" android:gravity="center_horizontal" android:textAppearance="?android:attr/textAppearanceMedium" /> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="19039.21" android:gravity="center_horizontal" android:textAppearance="?android:attr/textAppearanceMedium" /> </TableRow> <TableRow android:padding="5dp"> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="23 ноября" android:gravity="center_horizontal" android:textAppearance="?android:attr/textAppearanceMedium" /> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="348" android:gravity="center_horizontal" android:textAppearance="?android:attr/textAppearanceMedium" /> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="16759.28" android:gravity="center_horizontal" android:textAppearance="?android:attr/textAppearanceMedium" /> </TableRow> <TableRow android:padding="5dp"> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="24 ноября" android:gravity="center_horizontal" android:textAppearance="?android:attr/textAppearanceMedium" /> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="305" android:gravity="center_horizontal" android:textAppearance="?android:attr/textAppearanceMedium" /> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="14527.19" android:gravity="center_horizontal" android:textAppearance="?android:attr/textAppearanceMedium" /> </TableRow> </TableLayout>


Как изменить цвет текста в макете андроид приложения | Android Studio


Наши координаты:

Адрес: г. Краснодар,
ул.Стасова 178 т/к МедиаПлаза
магазин №347/1
Тел.: (861) 277-36-94 8903-447-48-48. ICQ: 605 798 198
E-mail: [email protected]

Перейти в раздел:

Перейти в раздел Lensbaby

Перейти в раздел Flama

Перейти в раздел Giottos

Перейти в раздел Lowepro

Перейти в раздел Nissin

 
rss