Chcę zrobić Android Viewpager as Image Slide Gallery.
I have this ( Unfortunately, I have errors.):
To moderators: Please paste code here because i can’t… I have errors.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are definitely to launch a Fragment as an Activity
Fragments are contained in Activities; you cannot launch a Fragment as an Activity – they’re not interchangable. This means that you have to make a SherlockActivity that holds your Fragment (call the Activity
MainActivity– simple and meaningful name), then you should be able to get everything launched (not guaranteeting the Fragment code is proper, there’s too much code to look at). Start with this tutorial, then move on to this tutorial. They both give you a lot of information about how to properly build android apps. Then once you’ve grasped the subject, don’t forget to change your manifest so it points to the Activity instead.Eg, in your main.xml layout, you should have: