nnviews Framework Module

Various common UI elements.

NNStartupActivity

Abstract class to be implemented in app startup Activity. Defines tasks to be run before showing the first screen e.g. downloading settings, version check.

imaging folder

Various classes for handling images:

  • NNCircleImageView – Generate circular ImageView. Extends NNImageView
  • NNImageCarousel – Create image carousel from a list of image urls
  • NNImageView – includes default imageView behaviour as well as a custom builder for parameterised calls. Uses NNImageHandler.
  • NNPagerAnimation – Defines animation for ViewPagers. Includes NNPagerIndicators to show pager location.

layout folder

  • NNScrollView – adds custom behaviour to the standard ScrollView
  • SelectorFrameLayout – where a FrameLayout contains children it will update the selector no matter what the children do with the touch events
  • SelectorRelativeLayout – same as above but using RelativeLayout
  • WrapContentViewPager – Used in banner fragments to allow the viewpager to wrap its height around the content.

ui folder

Various classes mostly associated with applying custom fonts to UI elements. Also NNCarousel, an extension of ViewPager with view recycling and on request loading.