This is a custom view to draw dotted, vertical lines.
Read more…Home / android / ui / views
A View that shows a vertical, dotted line
GIF compatible EditText
The snippet below is a custom view that enables keyboard like GBoard to enter GIFs and stickers.
Read more…Pie chart-like progress bar
This custom view shows a clock-like circular countdown, and can be used as a timer or as a ProgressBar
. To use as a timer, create your own handler (or similar) to update the progress automatically.
Progress bar masked by text
This custom view shows a progress bar in the foreground of a TextView. Check the Pixplicity Authenticator app for an example.
Read more…Various Square- or Fixed-ratio layouts and views
These are various snippets that can be used to create views that have a fixed ratio.
Read more…View with a hook to add draw operations
This view allows draw operations to be executed in a different class. This makes it easier to draw onto a canvas without having to create a custom view for every different use case.
Read more…Wrapping a RecyclerView to the height of its content.
This LayoutManager
functions as a wrap_content
of sorts for the height of a RecyclerView
.