Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
10. ListView & Adapters
Search
Evgeny Shishkin
February 24, 2015
Education
59
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
10. ListView & Adapters
Evgeny Shishkin
February 24, 2015
More Decks by Evgeny Shishkin
See All by Evgeny Shishkin
Создать собственное приложение для планирования путешествий за 60 секунд
johnkil
0
51
Aviasales Отели - практический опыт объединения двух приложений
johnkil
0
100
Kotlin in production
johnkil
0
150
Life without Fragments
johnkil
1
540
6. Создание UI
johnkil
0
86
3. Создание Android приложения
johnkil
0
80
4. Структура Android приложения
johnkil
0
160
5. Android ресурсы
johnkil
0
80
1. Введение в Android
johnkil
0
79
Other Decks in Education
See All in Education
新しいJavaを学んで・使っていこう! / osd26do
gishi_yama
0
260
Examen de Selectividad. Geografía junio 2026 (Convocatoria Ordinaria). UCLM
juanmartin2026
1
6.6k
[2026前期火5] 論理学(京都大学文学部 前期 第9回)「正規化の停止性——ヒドラゲームによる証明」
yatabe
0
270
The Strengthening Institutions Program
territorium
PRO
0
180
AIってなぁに?
kenichiota0711
0
810
ちいかわを読め
uchi8977
1
330
Center for Entrepreneurship Education | Science Tokyo (Institute of Science Tokyo)
sciencetokyo
PRO
0
390
An Experiment in "Cross-Cultural Exchange" as a Method for Content Creation
naoji_taniguchi_ksk_0827
0
180
エビデンスベースト英語教育入門:エビデンスは科学的知見(だけ)ではない,制度だ!
terasawat
0
200
20260908_ターゲットとスコープを決める発表法
masakiokuda
1
100
Geografía y Fútbol: Chattanooga Geografía del Búnker de La Roja.
juanmartin2026
1
12k
2026年度春学期 統計学 第10回 分布の推測とは - 標本調査,度数分布と確率分布 (2026. 6. 4)
akiraasano
PRO
0
210
Featured
See All Featured
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.3k
Evolving SEO for Evolving Search Engines
ryanjones
0
290
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.4k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.2k
How to train your dragon (web standard)
notwaldorf
97
6.8k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
4
640
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
430
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
600
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Transcript
ListView & Adapters Шишкин Евгений
AdapterView Для отображение списка элементов на экране используется Views наследники
от AdapterView. Подклассы AdapterView используют Adapter для привязки данных к его макету (layout).
AdapterView
AdapterView • ListView view group, которая отображает список скроллируемых элементов.
• GridView view group, который отображает элементы в двухмерной скроллируемой сетке. • Spinner • Gallery
ListView Отображает скроллируемый одноколоночный список.
GridView Отображает скроллируемую сетку из колонок и строк.
Adapter Adapter ведет себя как посредник м/д источником данных и
AdapterView макетом - Adapter получает данные и преобразует каждый элемент ко View, который позже добавляется в AdapterView макет.
Adapter Adapter AdapterView
Adapter • ArrayAdapter Адаптер для отображения списка / массива элементов.
• SimpleCursorAdapter Адаптер для отображения данных из базы данных (Content Provider).
AdapterView <-> Adapter • setAdapter(ListAdapter adapter) • getAdapter() • setOnItemClickListener(OnItemClickListener
listener) • setOnItemLongClickListener(OnItemClickListener listener)
ListActivity Activity которая отображает список элементов путем связывания источника данных,
таких как массив или ContentProvider, а также представляет обработчик событий.
ListActivity
ListActivity • setListAdapter(ListAdapter adapter) • getListAdapter() • getListView() • onListItemClick(ListView
l, View v, int position, long id)
Ссылки • http://developer.android.com/guide/topics/ui/layout/ listview.html • http://developer.android.com/guide/topics/ui/layout/ gridview.html • http://startandroid.ru/ru/uroki/vse-uroki-spiskom/82- urok42-spisok-listview
• http://developer.alexanderklimov.ru/android/ listactivity.php