Nerd Posts

Android: Custom XML Layout

main.xml usually takes a 'TextView'. But what if you wanted to use a 'custom' view instead?

to do this:

1. have a class that extends a View
2. define its constructor: public CONSTR(Context, AttributeSet, int)
3. in xml type in manually

< com.domain.package.CONSTR >

etc

< / com.domain.package.CONSTR >
Posted by Dev Culture

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Contributors

  • Danny Yu
  • Dev Culture

Links

Resume
LinkedIn

Blog Archive

  • ►  2017 (4)
    • ►  February (4)
  • ►  2016 (1)
    • ►  June (1)
  • ►  2015 (9)
    • ►  December (6)
    • ►  January (3)
  • ►  2014 (18)
    • ►  December (7)
    • ►  October (6)
    • ►  September (5)
  • ►  2013 (1)
    • ►  February (1)
  • ►  2011 (10)
    • ►  July (1)
    • ►  May (2)
    • ►  April (6)
    • ►  March (1)
  • ▼  2010 (27)
    • ►  December (2)
    • ►  November (2)
    • ►  October (4)
    • ►  September (1)
    • ►  July (1)
    • ►  June (2)
    • ►  May (6)
    • ▼  April (3)
      • Android: Custom XML Layout
      • DID
      • Regex Look-Ahead/Back
    • ►  March (2)
    • ►  February (4)
  • ►  2009 (52)
    • ►  December (5)
    • ►  November (19)
    • ►  October (3)
    • ►  September (1)
    • ►  August (7)
    • ►  July (4)
    • ►  June (2)
    • ►  May (2)
    • ►  April (3)
    • ►  March (1)
    • ►  February (1)
    • ►  January (4)
  • ►  2008 (76)
    • ►  December (9)
    • ►  November (3)
    • ►  October (64)
Simple theme. Powered by Blogger.