I am displaying an image gallery consisting of 15 images with image displayed on the screen (full-screen) at a time. When the user swipes across, the image changes. I am looking at a small polka-dots style indicator at the center-bottom of the screen to show the image count and where the user currently is.
eg: If my gallery held 5 images and the user was currently on the 3rd image, then there would be 5 polka dots with 3rd dot highlighted/filled with color and the rest polka-dots be hollow.
I know the description might sound a little vague but in short, I am looking at an image count indicator! :)
Thanks!
You might check out this Android Count Indicator project: https://github.com/rupertbates/android-count-indicator
I know exactly what you want, you are looking for the PageControl that is used on iPhones with the Scroll Views. I have never seen anything like that for Android. You would have to build a custom view. It's explained here:
Building Custom Android Components
I finally found it in the Launcher code!
Related
I am making an app on android using kotlin and there's this tricky part where the admin has to load an image to the app , when that's done the background of the layout is set to that image , the image itself has these 4 or 5 red dots spread according to a blueprint. What I want to do is to detect where those dots are then put some components over them ( Button, TextView..). I know my question is a bit complex but i hope someone could help me because I don't even know where to start with this. Thank you.
Good day guys.I want to make the bottom part of my own image an curved line.Not to talk back and forth here is an image which i want to get into the application.
Important to notice that i have reached 10th result of the google and everything i came up was only some curved image not in my desired way,the whole image was curved and the lines of 4 parts were connected to single one.
So basically i want the image to be as rectangle as it comes from server and only curve the bottom part of a bitmap.Is that even possible?
Noticae the bottom line is curved,that what i want to achieve,and rest parts are rectangle.Thank you for your time.
If you are trying to change the image itself, photoshop or any editing tool is the right way to do it. besides if you are getting the image from a server somewhere then getting the image adjusted from the server, instead of modifying it on the client side(o your app) has lot of benefits.
But, if want to change the look not the image itself, then that could be achieved by creating a custom image view like answered here.
You can also use a card view hold your image view to achieve some curves, although i don't think that would be efficient or satisfactory for your case.
Sometimes, editing the image in Photoshop is the right way. This can save your android app CPU time.
I am stuck in app locker.
Pleas help me to figure out.
Here I use a background image in that there are 9 holes. I need to put images on each hold for password. I try much but each time images are not on the same places on different screens or display devices. Please give me some demo or tutorial. Thank you!
Actually I want to design like the below picture, where the background image is constant with holes, and I want to put on each hole with different pig image. But the problem is I don't know how to design layout for accurate pig position and another important thing is that if the display screen is different, does the layout design work?
See below screen I have tried to implement this animation using cover flow as we as Carousel animation but I am not getting same as represented in screen. if any body have done this type of animation please send me the code snippet,
I encountered the similar problem in my app sometime ago, Although I haven't worked on the numbers that you are displaying in bottom right corner of your image, but this link will provide you the full code for making a gallery like view with center image zoom.
You can also set the images according to the number, that you are showing in bottom right, I am doing this in my code now, but if you can understand the code for gallery, then you can also make the code for showing images according to number also or you can show the number according to image.
Here is nice solution https://github.com/davidschreiber/FancyCoverFlow.
I've tried it on Android 4.4 and 2.3.3
Edited. OK. Link below points on FancyCoverFlow lib . That provides few kinds of carousel animation of images.
Actually, I got a little problem while building my Android App. I want to create a mini-game in my app. It will works like this:
At the begining an image appears
then the app ask the user to zoom-in the picture
then a grid will appear and seperate the picture into pixels (like the one million pixel wall for example)
the user will have to choose one "pixel" of the grid and he will win (or not) some points.
It seems quite simple but i got some issues:
How can i create this grid? (GridLayout? )
How can i put an invisible Grid (opacity=0) on a picture ? (Grid Layout Option Maybe ? )
How can i use the zoom-in option to be as smooth(natural and simple) as possible?
What should i do in order to turn the Grid opacity to 1 when "the Zoom in" effect has been done ?
I know that some several questions are likely answering to the grid problem but I need some personal advices in order to build my own game. General tips and tricks are welcomed. Explanations will be great.
Thanks in advance.
P.S.: Sorry for my English. It's not really my main language but I hope that I am still understandable.
Actually i've found The GridLayout.setalpha(alpha) Option so i know now how to build a grid and to manipulate his opacity.
I just Need now some informations about how to animate this grid with the zoom-in effect and the Zoom-out effect !