Skip to content

Instantly share code, notes, and snippets.


Arshad Parwez arshu-dev

View GitHub Profile
nickbutcher / 1 search_bar.xml
Last active Mar 22, 2021
Demonstrating morphing a search icon into a search field. To do this we use an AnimatedVectorDrawable ( made up of two paths. The first is the search icon (as a single line) the second is the horizontal bar. We then animate the 'trimPathStart' property …
View 1 search_bar.xml
<?xml version="1.0" encoding="utf-8"?>
Copyright (C) 2015 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
gabrielemariotti /
Last active Mar 27, 2021
A SimpleSectionedRecyclerViewAdapter: use this class to realize a simple sectioned `RecyclerView.Adapter`.

You can use this class to realize a simple sectioned RecyclerView.Adapter without changing your code.

The RecyclerView should use a LinearLayoutManager. You can use this code also with the TwoWayView with the ListLayoutManager (

This is a porting of the class SimpleSectionedListAdapter provided by Google