Android ViewPager / StackView with Pages behind each other [closed] - android

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I try to achieve an View where i have multiple "cards" behind each other and where i could move and fling the Views away and the next "Page" shows up.
It Should be like in this Screenshot:
I tried using ViewPager, but that just allows me to "Scroll" horizontal and the way i try to put the View behind each Other ( margin etc. ) doesn´t really look good.
Then i tried to use a StackView, but this doesn´t work as expected, especially the move of the items.
Is there any best practice to achieve this with an ViewPager, or do i have to build something my own?

Related

Android design like shown in images below? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want home page like this and after selecting the category this view should overlap the homepage with slide in from right animation & slide out from left on back pressed
https://developer.android.com/training/implementing-navigation/index.html
For you own sake try to learn using google. That is called a navigation drawer, the blurred part is backgroundtint and backgroundtintmode, note that those are available in later APIs.

Proper way to (animate) show/hide a view in android? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
Imagine having a panel, say an stickers panel (something like Viber or Telegram) in your app which needs to be visible and gone every now and then.
What would be the proper way of showing/hiding it? For example I used to change (animate) the height of the wrapper layout but it wasn't very performance friendly.
Should I just change the visibility and be done? Or a better way can be utilized? (Preferably an animated approach would be nice.)
Use view.setTranslationY(translationAmount), and animate with view.animate().translationY(-translationAmount).start().
translationAmount could be the height of the view, changing the sign of this measurement will invert the direction of motion.
A translation animation is much more efficient than changing the view height or other layout parameters because you don't have to traverse the view tree and re-draw everything.
you can apply animation to the view like
view.animate().translationY(distance);
applying view.setVisibility(View.VISIBLE); and view.setVisibility(View.GONE);is required to display and hide the view.
you will have a proper idea by referring this.

Android swipe view custom tabs [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to make an app in which you can swipe the fragments. The tab host should be at the bottom and instead of text I want some imageviews. Fragments should be selected by swipe or by clicking an image from the bottom. And if have have a lot of fragments I was wondering if I can add the tab host to a horizontal scrollview.
Any adivce?
Strongly recommending Jake Wharton's open project: Android ViewPageIndicator. Link is: https://github.com/JakeWharton/Android-ViewPagerIndicator
You can try the demo first. The demo link is: https://play.google.com/store/apps/details?id=com.viewpagerindicator.sample

Swipe in a listview [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a listview. And I need to make something very easy to acces on the listview. So I want to make something like the Samsung contact list.
Can somebody help me where I need to start? (Maybe a code example or some explanation where to start?)
It is just that I want to make a listview with this kind of swipe mechanic. I don't want to remove a row or add a row. I just want a event behind it to do stuff when swiped. And the animation would be cool if it was something like that.
Follow the libraries on github
listview animations
swipe to dismiss
Roman nurik's Android-SwipeToDismiss
This 'SwipeToDismissUndoList' code might help you.

How to create slider same as android inbuilt lock slider? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
i need creating slider same as like iphone or android inbuilt lock slider in home screen app. for this functionality i will use any inbuilt control or create custom layout for this. anyone has info. regarding this than pls send me any link or details.
You will have to make a custom slider:
Use a seekbar widget.
Then, on the onStopTrackingTouch listener, reset the seekbar position to ZERO unless the rightmost value has been reached. This will have a "snapping" effect. You can also code an animation to bring it back to the initial position smoothly instead of the "snapping" effect. If the rightmost value has been reached, you can do whatever you wanted to do.
You can use custom 9-patch graphics too!

Categories

Resources