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 ??
Related
I am new to Android development, I need to show user manual like Flip-kart app on start-up of app.
Please refer the image below, You will get an idea about, What actually I want to achieve....
Is there any standard way to achieve this?
You can do the whole stuff manually.
Or use a prebuilt library called ShowcaseView.
You'll find details, code and guide here http://www.xda-developers.com/android/create-holo-themed-demo-overlays-with-showcaseview/
Here is my suggestion
Get the semi-transparent images of manual pages. Keep the Images in your res/drawable.
Use sharedpreference to maintain the status whether this manual is shown to user on startup or not (Depending on your requirement). Check the status when the app is launched, to decide whether to show this to user or bypass it.
Use a fragment or Activity to display this manual images in sequence one after another.
for this you can use viewpager, swipe animation or simple buttons.
just use one Gallery view and skip button on it.Show that gallery on the first installation.For that you can set flag value in sharedpreference.Also shows a button for virtrual tour in Left drawer,
Cant find any relevant advice while googling, so came here.
So - what Im trying to make:
A dynamic gridded layout, where user on long-press in empty space can choose what image to add to that particular place, and that image itself becomes a button with specific function. If I long click an existing image button, I can move it and it auto snaps to invisible grid.
Any help on how to accomplish this? Any good tutorials you may know?
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/
I'm using a GridView following this tutorial.
In my app, each image in the grid acts as a button that takes the user to another screen. That's all fine and dandy.
What I'm having trouble with is finding some way to darken the image once a user clicks down, and then lighten it again when the user releases it. onItemClickListener doesn't have an onItemDownClick function built in. What would be the best/most pain free way to create this functionality, or a similar function?
instead of CLICK use the TOUCH events (which have down and up and a lot of other stuff) and for the darkening and lightening I would use a semi opaque colored box that you show/hide depending on the situation.
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.