Trying to make my application give a cooler look am thinking of this. The user clicks a button on an xml and as a result of this a dynamic image gallery viewer comes in front of the user. Like we have in iphone for changing songs. It could include an arrow to the left and right for the user to see the next or previous picture or the user can just use the finger to move to the next picture. I hope am sketching the right picture to the experts here. is it possible to have such a view in android?can i get any running examples?
you can use the gallery option or view flipper
for gallery try this link
http://mobisoftinfotech.com/android-gallery-widget-example-and-tutorial/
for viewflipper
http://javatechig.com/android/android-viewflipper-example/
Related
I am hoping to build an image selector/de-selector in an Android app.
So far I have been able to use an image view, and display the selected image, and put a button next to the image view to deselect the image.
However I am hoping to overlay some sort of a remove button, to make it look pretty and concise, however I am trying to avoid an overlay button as such.
Any ideas please.
Secondly, I would like to filter out only certain file types.
Thanks
I have list of images. what i want that when user clicks on one of the images then it should appear similar like following picture. user can see big image with blur background, and user can change this image by swiping finger(same like activity change). when user press back button it should be cancel. Is it possible in Android? I hope you understand my problem.
yes,you must define a customize dialog, and then open it when you want.
you can code for swipe finger or anything else you are looking for.
making and showing custom dialog here and as some guidance to you, use image view and you must use gesture detector here or here
enough ??
I use a Gallery view to display set of images in the header part of my application's main page. Now I need to make the Gallery full screen when user click on any gallery image. In the full screen mode it should have the Gallery functionality (Should be able to move between images...). Finally, in the full screen mode, when user click the image, it should go back to normal screen.
It this possible with Android? Please help me.
Unfortunately you haven't told us what you've tried or haven't and thus it's hard to pick a starting point...
How I would do it, might be a little over kill using an added activity but I prefer the organization, but launch a new activity on view click and pass the strings of the paths in a bundle and the index of the one selected. Then create a bitmap or imageview, however you want to do it but make sure it can have a setOnTouchListener. This way you can use the MotionEvent to see if they swiped left or right and navigate through the list of images you passed to the activity as strings.
If you don't feel like doing bundles, you can make a static class that holds all the image information..
I want to develop an application with a custom camera with one button over it. when i click on that button the picture should be clicked. once the picture is clicked there should be two buttons 'save' and 'retake'. If i click on save button the captured image should be saved to specified directory. if i click on retake button it should navigate to previous screen(camera with button).
I have gone through many sites and links.but nothing helped me.please help me..
Follow this link. You'll get a basic idea as to how to go about creating a custom camera app. Once you've assigned the image capture intent to the capture button, then you can go ahead. Suggest you to take one step at a time if you're new to Android. You can find more info on building Camera apps here.
I am trying to make a really easy xml layout and I can't seem to get it to look the way I want.
I attached a picture of what I want it to look like:
Basically, I have a static background image in my imagebutton at the top. Below that I have a picture the user snapped in the Photo Box. I assume I need an image view for that, but would it be possible for me to instead pass the pic to the background of an image button too so I can make the size easier to manage?
Based on what the user chooses in the options before this layout, an option photo is shown based on what they select. The photo would display to the right of the centered image, if that option is selected.
Below that would be a centered text view, with another separate one below that. Finally, I would have two buttons on top of each other at the very bottom.
Could someone show me a good way to get this layout and also tell me if it is possible to take a picture that is snapped and make it the background of an image button - or if that is a bad idea?
Thanks so much!
Seems like for the most part, you just want a simple LinearLayout. For the part with the photo, you could use an embedded LinearLayout or RelativeLayout.
As for the picture - you can easily set the background of any view or view group to any image (any view has an option to set the drawable for the background).
The only thing you should consider - for the purposes of making the UI more intuitive - is to slightly modify the image for the different states (focused, selected, etc), so that the user gets visual feedback when selecting the button via the trackpad, or when clicking on the button. A "drawable" has built-in support for multiple images for each state.