Please enable JavaScript.
Coggle requires JavaScript to display documents.
Compound Components - Coggle Diagram
Compound Components
Usage
Create Layout
Create Attributes Resource
Create Class
extends ViewGroup of Layout
3.1. inflate the layout
3.2. take care of the attr programmatically
to make sense of it
1f97f359ad225b4ee57fb3449462b0c1
Introduction
what is it
analogy
React Components
a new
View
that encapsulates many
View
main concepts
inflate
class inflates a UI using
LayoutInflater
just like how you do it in Adapter
custom attributes
for declarative usage in XML
inflates on
init
extending
extends a
ViewGroup
calls its super()