Help with android layout - android

I want to create a UI similar to the images shown in the links given below.
http://www.4shared.com/photo/EU1KsEPC/device1.html
http://www.4shared.com/photo/tcQMx75T/device2.html
The requirement is, when I swipe to the right, it should go to the 2nd, 3rd pages and so on. And swiping to the left should go to the previous page.
How can I create such a UI? What layout should I use?
Any help in this regard would be well appreciated with points.
Best Regards,
Rony

I think you should look into a GridView.
http://developer.android.com/guide/tutorials/views/hello-gridview.html
http://developer.android.com/resources/tutorials/views/index.html
Perhaps your looking for this answer?
Implementing Swipe action on ViewFlipper with multiple GridViews

Related

Android Nested Fragments or Simple Layouts?

I'm extremely new to java and coding for Android (new to programming in general). I haven't programmed much before so I wasn't able to think about this and whether or not I'd be able to implement when I first started designing this app. I would really appreciate some help or guidance, or at least pointers. I'm sorry if this is a really stupid question and thanks in advance for all answers.
Mockup
Here is a mockup of the layout I want to create. It mainly cosists of a List, which displays information and images. (Should be ScrollView so that it can go up and down?)
Below is a button which will send information to another Fragment or Activity.
Both these layouts need to be part of an ImageView, able to be swiped left and right. Also need to add circle indicators (I've seen libraries that are capable of helping me achieve this)
There is also a Navigation Drawer at the top left which I will try to use RecyclerView with.
And lastly, there is a bottom navigation bar, which I'm currently able to do by using a library from com.roughike:bottom-bar:2.3.1 and navigating between different Fragments.
Please give me some advice on what to do or some pointers on how I might go about creating this sort of layout.
Thank you!

How to give animation to layouts in single activity?

I have one single activity, within which I've combined severel layouts.
The thing i want to achieve is that,
when I'll open activity, the layout should come one after another from the botton and take there position below the above one.
(Like in windows 8)
How should i achieve this??
Please guide me.
Thanks you
Did you check the Google animation Guide?
General information about animation
https://developer.android.com/preview/material/animations.html
Sample app with layout animation within an activity
http://developer.android.com/shareables/training/Animations.zip
I hope this helps. Good luck ;)

How to swipe images in Android?

I am working on Android. I kept images in GridView. Now when I click on any image that image should display in seperate screen and from there the remaining images should also open while swiping. How can I achieve that task? Please help me in this regard.
Use a ViewPager.
The official tutorial is here: Using ViewPager for Screen Slides
Since you didn't actually explained so there can be no specific answer and here is a links you might use
1-using PageAdapter
or you can use GestureDetector witch you can search in here
hope it would be helpful .

Swipe animation when switching layouts android

I wanted to ask how i can create a good swipe animation when switching from one xml layout to an other in android?
It would be very kind if somebody could gibve me an example code. Thank you very much!
You're looking for the ViewPager. It's been asked in many other questions before. Read this blog post for more information.

Swipe among activities in android

i have 4 activities in which i have to swipe them right, left and if i am in last activity and swipe to the left then again first activity should be shown.
can anybody have any idea how i can achieve this? or some sample code?
thanks a lot.
you can achieve it by animaton..
But it will show as a Gallery view and you can swipe as well...
OnTouchEvent on every activity you can call another activity using intents by
overridePendingTransition(R.anim.act_back_slide_enter, R.anim.act_back_slide_leave);
//overridePendingTransition("animation for activity which enters", "animation for activity which leaves");
I have not yet tried this... but we can make it in this form.. If you get success let me know.
#sajjoo Here goes your answer in deezapps widget with the questions below pointing at it
How to show multiple screens with right/left slide Gesture
How to create a slider screen (As in Tweetdeck) in Android?
and many more linked questions..
I recently posted a question that covers a lot of this (my question is about using Swipe together with ScrollView, the Swipe gesture by itself works just fine):
Swipe/Fling tab-changing in conjunction with ScrollView?
If you read the sources I have listed and use the code I've provided then you should be able to do it.
It's work fine... just must to delete the redundant R.java file...!
http://www.codeshogun.com/blog/2009/04/16/how-to-implement-swipe-action-in-android/

Categories

Resources