Submit Search
Upload
Hi AndroidAnnotations
•
0 likes
•
503 views
Tsung-Yeh Lee
Follow
A brief sharing about AndroidAnnotations at Android Taipei.
Read less
Read more
Software
Report
Share
Report
Share
1 of 18
Download now
Download to read offline
Recommended
深入淺出談Fragment
深入淺出談Fragment
毅 方
Explanation onAttach() of Fragment class in Android
Explanation onAttach() of Fragment class in Android
yuchi_1k91 Pit
Short Intro to Android Fragments
Short Intro to Android Fragments
Jussi Pohjolainen
Introduction to Android Fragments
Introduction to Android Fragments
Sergi Martínez
Screen Robots: UI Tests in Espresso
Screen Robots: UI Tests in Espresso
Annyce Davis
Android App Development - 06 Fragments
Android App Development - 06 Fragments
Diego Grancini
Programa 2
Programa 2
Joselyn Aguirre
Android Fragment
Android Fragment
Kan-Han (John) Lu
Recommended
深入淺出談Fragment
深入淺出談Fragment
毅 方
Explanation onAttach() of Fragment class in Android
Explanation onAttach() of Fragment class in Android
yuchi_1k91 Pit
Short Intro to Android Fragments
Short Intro to Android Fragments
Jussi Pohjolainen
Introduction to Android Fragments
Introduction to Android Fragments
Sergi Martínez
Screen Robots: UI Tests in Espresso
Screen Robots: UI Tests in Espresso
Annyce Davis
Android App Development - 06 Fragments
Android App Development - 06 Fragments
Diego Grancini
Programa 2
Programa 2
Joselyn Aguirre
Android Fragment
Android Fragment
Kan-Han (John) Lu
STYLISH FLOOR
STYLISH FLOOR
ABU HASAN
Hola mundo12
Hola mundo12
alexisbrenda18
Fragment
Fragment
nationalmobileapps
Button
Button
Lwp Xd
Android - Working with Fragments
Android - Working with Fragments
Can Elmas
Introduction to fragments in android
Introduction to fragments in android
Prawesh Shrestha
Building android apps with MVP, Dagger, Retrofit, Gson, JSON, Kotlin Data Cl...
Building android apps with MVP, Dagger, Retrofit, Gson, JSON, Kotlin Data Cl...
Hammad Tariq
Violet Peña - Storybook: A React Tool For Your Whole Team
Violet Peña - Storybook: A React Tool For Your Whole Team
Anton Caceres
Design for succcess with react and storybook.js
Design for succcess with react and storybook.js
Chris Saylor
Android gui framework
Android gui framework
Sri Harsha Pamu
Android Workshop
Android Workshop
Home
[Individual presentation] android fragment
[Individual presentation] android fragment
Gabriele Vecchia
Overview of Android Infrastructure
Overview of Android Infrastructure
Alexey Buzdin
Overview of Android Infrastructure
Overview of Android Infrastructure
C.T.Co
20 Codigos
20 Codigos
Elizabeth Reyna
20 codigos
20 codigos
ariannalizeeth
Android crashcourse
Android crashcourse
Alexey Buzdin
Fragments anyone
Fragments anyone
Yossi Elkrief
Android Best Practices
Android Best Practices
Yekmer Simsek
How to code to code less
How to code to code less
Anton Novikau
Quick Intro to Android Development
Quick Intro to Android Development
Jussi Pohjolainen
Rohit android lab projects in suresh gyan vihar
Rohit android lab projects in suresh gyan vihar
Rohit malav
More Related Content
What's hot
STYLISH FLOOR
STYLISH FLOOR
ABU HASAN
Hola mundo12
Hola mundo12
alexisbrenda18
Fragment
Fragment
nationalmobileapps
Button
Button
Lwp Xd
Android - Working with Fragments
Android - Working with Fragments
Can Elmas
Introduction to fragments in android
Introduction to fragments in android
Prawesh Shrestha
Building android apps with MVP, Dagger, Retrofit, Gson, JSON, Kotlin Data Cl...
Building android apps with MVP, Dagger, Retrofit, Gson, JSON, Kotlin Data Cl...
Hammad Tariq
Violet Peña - Storybook: A React Tool For Your Whole Team
Violet Peña - Storybook: A React Tool For Your Whole Team
Anton Caceres
Design for succcess with react and storybook.js
Design for succcess with react and storybook.js
Chris Saylor
Android gui framework
Android gui framework
Sri Harsha Pamu
Android Workshop
Android Workshop
Home
[Individual presentation] android fragment
[Individual presentation] android fragment
Gabriele Vecchia
What's hot
(12)
STYLISH FLOOR
STYLISH FLOOR
Hola mundo12
Hola mundo12
Fragment
Fragment
Button
Button
Android - Working with Fragments
Android - Working with Fragments
Introduction to fragments in android
Introduction to fragments in android
Building android apps with MVP, Dagger, Retrofit, Gson, JSON, Kotlin Data Cl...
Building android apps with MVP, Dagger, Retrofit, Gson, JSON, Kotlin Data Cl...
Violet Peña - Storybook: A React Tool For Your Whole Team
Violet Peña - Storybook: A React Tool For Your Whole Team
Design for succcess with react and storybook.js
Design for succcess with react and storybook.js
Android gui framework
Android gui framework
Android Workshop
Android Workshop
[Individual presentation] android fragment
[Individual presentation] android fragment
Similar to Hi AndroidAnnotations
Overview of Android Infrastructure
Overview of Android Infrastructure
Alexey Buzdin
Overview of Android Infrastructure
Overview of Android Infrastructure
C.T.Co
20 Codigos
20 Codigos
Elizabeth Reyna
20 codigos
20 codigos
ariannalizeeth
Android crashcourse
Android crashcourse
Alexey Buzdin
Fragments anyone
Fragments anyone
Yossi Elkrief
Android Best Practices
Android Best Practices
Yekmer Simsek
How to code to code less
How to code to code less
Anton Novikau
Quick Intro to Android Development
Quick Intro to Android Development
Jussi Pohjolainen
Rohit android lab projects in suresh gyan vihar
Rohit android lab projects in suresh gyan vihar
Rohit malav
A GWT Application with MVP Pattern Deploying to CloudFoundry using Spring Roo
A GWT Application with MVP Pattern Deploying to CloudFoundry using Spring Roo
Ali Parmaksiz
Android 3
Android 3
Robert Cooper
20 códigos de eclipse
20 códigos de eclipse
Karla Estefania Villanueva Epigmenio
Android Code Puzzles (DroidCon Amsterdam 2012)
Android Code Puzzles (DroidCon Amsterdam 2012)
Danny Preussler
Androidppt 1
Androidppt 1
edwardyangey
Net conf BG xamarin lecture
Net conf BG xamarin lecture
Tsvyatko Konov
ButterKnife
ButterKnife
Himanshu Dudhat
Android Design Patterns
Android Design Patterns
Godfrey Nolan
Saindo da zona de conforto… resolvi aprender android
Saindo da zona de conforto… resolvi aprender android
Daniel Baccin
React Native Androidはなぜ動くのか
React Native Androidはなぜ動くのか
Yukiya Nakagawa
Similar to Hi AndroidAnnotations
(20)
Overview of Android Infrastructure
Overview of Android Infrastructure
Overview of Android Infrastructure
Overview of Android Infrastructure
20 Codigos
20 Codigos
20 codigos
20 codigos
Android crashcourse
Android crashcourse
Fragments anyone
Fragments anyone
Android Best Practices
Android Best Practices
How to code to code less
How to code to code less
Quick Intro to Android Development
Quick Intro to Android Development
Rohit android lab projects in suresh gyan vihar
Rohit android lab projects in suresh gyan vihar
A GWT Application with MVP Pattern Deploying to CloudFoundry using Spring Roo
A GWT Application with MVP Pattern Deploying to CloudFoundry using Spring Roo
Android 3
Android 3
20 códigos de eclipse
20 códigos de eclipse
Android Code Puzzles (DroidCon Amsterdam 2012)
Android Code Puzzles (DroidCon Amsterdam 2012)
Androidppt 1
Androidppt 1
Net conf BG xamarin lecture
Net conf BG xamarin lecture
ButterKnife
ButterKnife
Android Design Patterns
Android Design Patterns
Saindo da zona de conforto… resolvi aprender android
Saindo da zona de conforto… resolvi aprender android
React Native Androidはなぜ動くのか
React Native Androidはなぜ動くのか
Recently uploaded
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
Evangelist Apps https://twitter.com/EvangelistSW/
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
Fatema Valibhai
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
shikhaohhpro
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
SolGuruz
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
bodapatigopi8531
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
kellynguyen01
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
Arshad QA
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
anilsa9823
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
ThousandEyes
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
Cionsystems
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
joe51371421
Software Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
Arshad QA
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Alberto González Trastoy
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
ComplianceQuest1
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
aagamshah0812
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
OnePlan Solutions
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
Andolasoft Inc
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
kalichargn70th171
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
Wave PLM
Recently uploaded
(20)
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
Software Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
Hi AndroidAnnotations
1.
Hi! AndroidAnnotations 㥮疍
yes ! 2014.10.28 Android Taipei @ PicCollage
2.
Story 1
3.
public class MainActivity
extends Activity { ! onCreate() { setContentView(R.id.activity_main); } ! }
4.
public class MainFragment
extends Fragment { onCreateView() { return inflater.inflate(R.layout.fragment_main, container, false); } ! }
5.
public class MainFragment
extends Fragment { onCreateView() { View view = inflater.inflate(R.layout.fragment_main, container, false); ! TextView textView1 = view.findViewById(R.id.textview1); TextView textView2 = view.findViewById(R.id.textview1); TextView textView3= view.findViewById(R.id.textview1); TextView textView4 = view.findViewById(R.id.textview1); ! textView1.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { } }); return view; } ! }
6.
public abstract class
AbstractFragment extends Fragment { protected abstract int setRootViewId(); int[] setOnClickListenerViews() {} } public class MainFragment extends AbstractFragment implement View.OnClickListener @Override protected int setRootViewId() { return R.layout.fragment_main } @Override int[] setOnClickListenerViews() { return new int[] { R.id.button_ok, R.id.button_no } } ! @Override public void onClick(View v) { switch (v.getId) { case R.id.button_ok: … } }
7.
Story 2
8.
Android Studio ;
9.
support-annotations
10.
11.
(;゚д゚)
12.
@Efragment(R.layout.fragment_main) public class
MainFragment extends Fragment { ! @Click(R.id.button_ok) void ok() { … } ! ! ! ! ! ! } @LongClick(R.id.button_ok)
13.
@Efragment(R.layout.fragment_main) public class
MainFragment extends Fragment { ! @FragmentArgs int position; } Fragment fragment = MainFragment_.builder().position(7).build();
14.
@Receiver(actions = BluetoothLeService.ACTION_DATA_AVAILABLE)
void onHeartRateChanged() { startHRVMeasure(); }
15.
@EActivity @OptionsMenu(R.menu.menu_main) public
class MainActivity extends Activity { ! ! ! ! ! ! ! ! ! } @OptionsItem(R.id.menuitem_refresh) void refresh() { … }
16.
@SharedPref public interface
MyPrefs { @DefaultString(yes) String name(); } @EActivity public class MyActivity extends Activity { @Pref MyPrefs_ myPrefs; String name = myPrefs.name().get(); }
17.
Java's Annotation Processing
Tool @EActivity MainActivity MainActivity_ extends MainActivity Compiler
18.
Thanks for your
listening Reference: ! AndriodAnnotations http://androidannotations.org/ ! android-apt https://bitbucket.org/hvisser/android-apt
Download now