Flexible Space With Image With ViewPager Tab Activity - java

i want to implement FlexibleSpaceWithImageWithViewPagerTabActivity.java in my application. i mean i want to achieve behavior that is shown by this above class. It shows flexible space with image and viewpager with tabs, and has smooth scroll of actionbar with recyclerView.
Here is the code of this class.
i am trying to implement this class. Anybody please help me, how can i use this class or can make my own class having similar behavior.
i have imported this class from this library using gradle. But don't know how to use it.
Thanks in Advance

Related

How to update content of the activity without creating new Activity?

I'm trying to make an app and I have made a blueprint for a specific activity, but I don't know how to implement it. The layout contains few buttons at the top of the activity, and each button features some information, which is displayed inside the view. The view which needs to be updated is present under the buttons. I don't want the activity to be changed, instead it should update the contents of the View, which is different for each category/button.
By doing some research I have realised that the "Tab Layout" can be used to achieve my requirements, but I don't want the tabs and I need some stylish buttons as a replacement.
I know I'm not the best at describing, so I have looked upon Dribble and found one design which is 100% similar to blueprint.
I want to achieve this using XML and Java using Android Studio! Every suggestion will be a great support foy my app.
Thanks a lot.
As far as I know, you could achieve that by using fragments (which is the same concept you would have used on TabLayout). I don't really know how much knowleadge you have on Android, but if you know what a Fragment is, it should be easy for you to recreate the idea.
You have 3 buttons for 3 different fragments, so you must design every fragment by separate and change it depending the button you click.

What is this Android widget exactly called and how do I implement it?

I looked all over googling for possible approaches to implementing this or even knowing what it is, but no amount of googling yielded any results. So please excuse me for this silly question.
What kind of widget is this? I see it used by Youtube for showing video description, and also by Facebook's messenger as a drawer for Emojis and Gifs and all :
Thanks in advance.
Its called a BottomSheetDialogFragment
extend BottomSheetDialogFragment class and inflate your layout file. After creating the fragment class and the layout file you can call it like this.
YourBottomSheet yourBottomSheet = new YourBottomSheet();
yourBottomSheet.show(getParentFragmentManager(), "TAG");

source classes for android views

It is kind of a general question but I noticed that I needed it multiple times and could not find an answer.
There are many cases where I needed to change a view to make it work for my specific purposes and I needed to create a custom TextView, custom EditText, custom autoCompleteTextView and so on.
Where can I find those source codes so I could use them and change them for my purposes?
Thank you
You can create new class extend from TextView or EditText and do it.
To find source codes you can with ctrl+U on class.

Android: Yahoo Weather App Horizontal Scroll-view Effect?

I would like to know what the Android implementation is of this type of scrolling that you see in the Yahoo Weather App. Here is a video example:
http://www.youtube.com/watch?v=a-q_yetkpik
Any examples or ideas on how to implement this would sincerely help this poor lost soul!
Thank you
use that library https://github.com/xgc1986/ParallaxPagerLibrary, it's very easy to use, and it worked for me
demo
You should separate two different things here:
The horizontal scrolling
As you swipe your way through the viewpager, the background moves slower than the content does.
This effect can be achieved with the ParallaxPagerLibrary
The vertical scrolling
As you swipe up, the background image blurs away, making the "swiped up" content more visible to the user. This post explains it all and also provides a library.
But if you want it even better, someone wrote a simple "clone" of this weather app https://github.com/MoshDev/LikeYahooWeather
They customized ViewPager, the widget is called WeatherViewPager that it's unfortunately unavailable, looks like a ViewPager with a sort of parallax
You may take a look at https://play.google.com/store/apps/details?id=com.desarrollodroide.repos
it's a collection of usable opensource libraries
e.g. Utils->Paralloid or Utils->ParallaxScroll

ScrollView screens similar to main menu in android

i am trying to add a scroll screen layout in my app just similar to main screen scroll of any android mobile. How can i Add such a screen in my activity.
Check the image below.
You can do this by using ViewPager. The ViewPager is also included in the Support library, so you can use it on HC< . It works excactly like this.
There are also custom implementations of the ViewPager, which increases its possibillities e.g.: The ViewPager from Jake Wharton.
This can be done by using "SwipeView"
A SwipeView is an Android UI view similar to the homescreens. You have several similar panes of content that you access by swiping left and right.
You can either go with Android ViewFlow or ViewPagerIndicator
Use Jack Wharton's ViewPagerIndicator, it should work for you.
https://github.com/JakeWharton/Android-ViewPagerIndicator/

Categories