Skip to Content
Android Programowanie aplikacji. Rusz głową! Wydanie II
book

Android Programowanie aplikacji. Rusz głową! Wydanie II

by David Griffiths, Dawn Griffiths
October 2018
Intermediate to advanced
880 pages
33h 52m
Polish
Helion
Content preview from Android Programowanie aplikacji. Rusz głową! Wydanie II
438
Rozdział 11.
Kod aktywności TempActivity
Dodanie nowego fragmentu stopera
Zamierzamy teraz dodać do aplikacji nowy fragment stopera. Jego kod
zostanie umieszczony w pliku
Stopwatch.java, a fragment będzie używać
pliku układu o nazwie
fragment_stopwatch.xml. Fragment ten będzie
bazować na aktywności stopera, zaimplementowanej w rozdziale 4.
Wiemy już, że aktywności i fragmenty zachowują się w podobny
sposób; jednak wiemy także, że fragmenty to zupełnie odrębny typ
obiektów — fragmenty to nie klasy pochodne aktywności.
Czy istnieje
zatem sposób, który pozwoliłby nam przepisać kod aktywności tak,
by działała ona jako fragment?
Klasa TempActivity ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Wydajne aplikacje dla systemu Android

Wydajne aplikacje dla systemu Android

Doug Sillars
Przewodnik po Pythonie

Przewodnik po Pythonie

Kenneth Reitz, Tanya Schlusser
Architektura aplikacji w Pythonie

Architektura aplikacji w Pythonie

Bob Gregory Harry Percival

Publisher Resources

ISBN: 9788328340794