I really like uber's Bottom Slider a lot and i want to create a view like that.After searching, I found a great library do it easily. Here is the screenshot of the sample.
Add below line to build.gradle file under app folder and sync
Credits to the Author of the Library.
create a layout like below
create a drawable with an image like below. I have created four files like this. please see source code for reference.
Add all icons are added as an array in strings.xml file and we can use in MainActivity class.
<array name="icons"> <item>@drawable/uber_pool</item> <item>@drawable/uber_moto</item> <item>@drawable/uber_go</item> <item>@drawable/uber_suv</item> </array>
Create an Activity class and