I am Learning android development on my own, I am working on a quiz app, in this app, I want to add 100 questions (1 screen for 1 question)
user can go to the next question by swiping so how can I do it?
should I use 100 fragments for each question with the help of viewpager or any other method is available to do it?
You need to use ViewPage2 for swiping.
Related
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? )
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
Is it a good idea to mix Fragments and Activities? In my app, few windows need to be Fragments because they should have ViewPager. Other screens are normal.
So my question is, when you started using Fragments, do you use Fragments everywhere? Whether it is needed or not? My app should support 5 inch to 4 inch screen only anyway.
TL;DR version:
I want to add multiple instances of the same activity in my app and swipe through them.
I'm creating a home replacement app and I would like to know how to set up multiple home screens. I checked out the sample app provided in the SDK but it has only one screen.
I have almost everything set up but now realised that I couldn't figure out how to add multiple home screens and swipe through them. I'm just guessing that since the home screen is an activity, launchers add the same activity multiple times and let the user swipe through them. Is this correct?
What I can't figure out is how it does so and how it lets the user select the number of screens he/she wants and add/remove those activities again.
Can someone please help me out. Thanks a lot.
I think you want to use fragments. Checkout http://developer.android.com/guide/components/fragments.html
If you have specific queries on use of fragments, would love to help.
This question already has an answer here:
Custom Lock Screen Implementation Techniques
(1 answer)
Closed 7 years ago.
I need to put my app on the lock screen (android 2.2)!
I think there are two options for do this:
Develop an app to replace android's lock screen. This app whould be called when the off button is pressed.
Insert my app button into android's actual lockscreen, so, my app would work, even if the screen is locked, and eventually, my app could unlock the screen.
I don't know how to do it, but I do know it is possible, since some music players can be downloaded and the music player options are in the lockscreen.
Can anybody help me out?
thanks.
(1) is totally feasible and there are many lockscreen alternatives apps available.
(2) will depend on what lockscreen are you talking about and what is what your app does. Firmware lockscreens do not allow usually widgets in them. At most, they have a method to interact with the call/sms log and the music player, but that's it.
So, unless your app does one of those two, your only option is pretty much (1).