How to create a horizontally scrollable header in Android Studio? - java

guys I am developing an Android Studio, and I would like to create a scrollabe header, a similar one that this app has: Donald Trump Soundboard.
Do you know any lectures on youtube or anywhere where I can learn a required skills to create such a header?

If you want to have a scrollable Tab Layout, I have created an android library that does just that. It has custom animations too if you're into that. You can take a look here
and see if it suits your purpose.

I just saw the app, the one you are talking about is swipe​ view. The tabs are not fix rather it moves. It has been asked here( How to make scrollable tab in Android? )

Related

How to implement slider view with tabs in custom keyboard or input method service

I'm working on a android keyboard app. The only problem I couldn't get around is slider tabbed view like this:
I don't know how to implement tabs with view pager in an input method service. It's fairly easy to do with activities and fragments but no idea about how to get it done in a custom keyboard.
Can anyone point me in right direction?
Is there any available library for this or a nice hack?
I'd really appreciate your help at this point.
regards,
For implementing sliding tabs with ViewPager you can refer this link or in Android studio you can select from samples available while creating a new Activity.
If you want to add library support for it you can implement this library.
Mind the min sdk version of the library to avoid any trouble in future.

Android Dev UI - Text and image widget

Hi I am new to Android development and I want to add a specific looking view in the my main app window, which I have seen in many apps but dont actually know the name of it :) So its hard for me to check the android developers websites for details.
Below is a good example of an app using this widget or whatever is check the link:
https://lh3.googleusercontent.com/K7HJq6Be9AVf6EiDc0pviGLNyMJ4CL1f5Bw6HmxDUaQc7vpu18KAxrF6VlG5fJciFF59=h900-rw
Look at the ones that have Squat etc in thats Im referring to. Im not wanting to build a workout app, but I want to use a similar floating area like this, as I like the look. So the question is what is this called in android, its not a listview or textview I believe.
Sorry for the noob question but as I said Im very VERY green at Android dev.
Thanks
The view used here are
CardView - Check
Recyclerview -Check
Viewpager with fragments -Check
Toolbar- Check

Scrolling left/right to new pages

I am creating an application which displays several "pages" of content. Typically this is representative as tabs on a desktop based application.
On android, I want to be able to flick between the tabs of information, using there finger anywhere on the screen. The content of these tabs will just be XML views, or programmatically created views.
Looking at Applications on android, there are several applications that do this. Google Play, Gmail, Beautiful Widgets, BBC News, Contacts, Engadget.
I've looked for several terms, mostly scrollable tabs but haven't found anything that is similar to the above applications. I'm looking at TabHost, TabWidget and ViewPaper at the moment, but not sure if these do what I'm looking for.
Can anyone tell me which control can be used in android to get the functionality. Out of the apps listed I'm looking to have it styled more like the Google Play store, with the name of the tab at the top, and the names of the nearby tabs to the left and right if applicable.
There is an example on the android blog for this, used on google play app.
Horizontal View Swiping with ViewPager
Sounds like you're looking for this. It's compatible with ViewPager, the v4 compatibility library, and ActionBarSherlock.

Android specific UI

I would like to make a system of page on android 3.0 a little bit special.
Here is a plan of the management of the pages that I would like to have:
http://imageshack.us/photo/my-images/814/schemau.jpg/
It would be a question of making as for the management of the notification on the desktop.
I thought of the slideDraw but at the moment it is little decisive.
Have you an idea of which component to use and how?
You can use FrameLayout and simple View Animation, this is what comes to my mind. Place three layouts on top of each other using FrameLayout, then animate them as you like on touch event. Hope this helps.

Android View similar to Google's Youtube app?

I know that Android's Youtube app is not open source, but I pulled apart the apk with apktool and found that they have a class, YoutubeListView used frequently in their app. Is there already an open source implementation of the Youtube Player Activity's title/ fling view/ layout? I know of similar views like Joao Machete's FlingAndScrollViewer, but I need it to be rigge to a title menu and work as smoothly as that on the Youtube app. If there is no open source implementation, either how hard would it be to convince Google to release just that component's source, or to implement it myself?
Thanks
Btw, the footer in this layout is what I am talking about. It has titles like Info & Related videos that can be clicked and it scrolls to them, and it can be scrolled left and right.
I've come to the conclusion that there is no such view. It would be best to make my own custom layout.

Categories