I want to implement a design as visible in the following picture:
In the main you can see the small views. When you click one it maximizes to full sceen.
How do I implement this in Android?
There are multitude of ways you can implement this.
one way is to have the 4 contents as imageButton and when you click on it , it open a new activity which shows the content in fullscreen.
or you can use a tableLayout instead of imageButton
You could do it with images on the main screen, within say a gallery or grid view, that when each is touched, opens a new activity based on the image touched.
Links are to google android developers pages, showing information on the available view types and how to open an activity.
Related
I often put user registration on one xml file with scroll view.
I have learned when a user sees too many fields they opt out of the app so I am planning to upgrade the layout to look like the one for gmail when you sign up on android app. It appears to be using tabbed view but not tabs available and user navigates to the next view by clicking next (refer to attached images).
First page
second page
MY QUESTION
My question is how do I create this views, do I need many xml layout files or put all stuff on one file and use visibility as in once it is filled and user presses next hide the inputs and reveal the next inputs. Note: Gmail appears to be scrolling to another page the way it would appear when using tabs.
You can use one activity to host multiple fragments. The new Android Studio update has Navigation Editor which you can use to achieve similar results.
it is totally up to you how you want to design this but the best thing is you use Fragment and viewpager instead of using two separate layouts.
See Here how to use fragment with viewpager
There are many ways to do this, If you have less content then play with visibility otherwise ViewFipper ( https://abhiandroid.com/ui/viewflipper ) Or can use Fragments
My layout file currently displays an image, but I would like clicking certain parts of the image to call different things, such as changing the content view/switching activities. Is there a way to make an onClickListener for certain parts of the screen?
Try creating an image map or you can use this link
I want to make it such that when a person clicks an image, it opens up in full screen.
What is the most effective way to do this in Android?
The simplest way I can think of is creating an activity, with a layout with the ImageView filling the whole screen. But I think there's some way to directly open just the layout or the ImageView with an Intent?
The Best way to do this is..
When you click on image open a full screen Custom dialog with the image in it having attributes fill parent. You don't need to go in another activity your purpose will be solved in 1 activity itself thereby increasing performance and also lesser activities will be in stack.
I already had buttons on my original app but now I created an image on canvas in Android and have combined the two together, however I cannot view the buttons on the page but can only see the image on the page. These buttons were designed to move to different pages. Does anyone know how this can be done. I have also used extend Activity instead of View/SurfaceView is that ok or will that be causing the problem?
Thanks.
i want to create screen in android like the image below(click on the hyperlink) but i am not getting the idea that how to create this screen just provide me solution for my problem.click to see image
I agree with sahhhm on the ListView. In addition, to display the cinema info you will need a custom list-item view which is going to contain an image view to display the left-hand image, four different text views to display the text and another image view for the right-hand image. You'll also have to accommodate the location in a view and the control bar at the top is possibly a custom control displayed in an activity which has the attribute android:theme="#android:style/Theme.NoTitleBar" in the android manifest file so that the title bar is not shown.
You will want to take a look at ListView. Here are a couple of basic tutorials (Android Developer Tutorial and Android People Tutorial) that will help get you started. Afterwards, you should be able to search for and find more specific examples of what you want.