Layout Design Android Play Play for Android
So I am trying to recreate a view like this.
My idea so far is to create a swipeable view with buttons. However, I can't seem to create this violin look they made for Google Play. It's basically like a tab. I can't figure out how to make a tab without an ActionBar tab.
<LinearLayout android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="0.5">
<Button
android:id="@+id/radio_button2"
android:layout_marginTop="2.0dip"
android:layout_width="0dp"
android:layout_height="40dp"
android:background="#fff"
android:textColor="#3e82ff"
android:layout_weight="1"
android:text="Description" />
<Button
android:id="@+id/radio_button3"
android:layout_marginTop="2.0dip"
android:layout_height="40dp"
android:layout_width="0dp"
android:background="#fff"
android:textColor="#3e82ff"
android:layout_weight="1"
android:text="Comments" />
</LinearLayout>
To prevent closing (due to latitude), I decided to point out that I want to know the view element required for the tab style shown above.
source to share
It's easiest to think about it in separate chunks.
1) These are tabs first, and with Material you will want to watch this post here: Material Design Tabs for Android android 5.0
2) The second is vertical scrolling with parallax. And I would use something similar to this: https://github.com/kanytu/android-parallax-recyclerview
3) The end part should be for the toolbar to disappear and reappear based on the direction of scrolling. I'll leave it to you in the libraries or google gists that allow it. :)
- edit -
I ran away. Here's a decent one I've seen that uses the Observable scroll view: https://github.com/ksoichiro/Android-ObservableScrollView
source to share
Take a look: MaterialViewPager . It is the most convenient library for this type of application.
It helps me a lot.
You can see Examples and .
source to share