How to add image in front of screen - Android - java

Click to see image
How can I add images and videos like this? Is there any keyword to look for tutorials?

Related

icons are showing in full black color in android drawer bar do you know how to fix it?

icons are not showing in activity main drawer they are just showing like full black i dont know why can anyone help me? here is my xml code.
enter image description here
This is because you are using .png files which are not supported by navigation drawer. It only works with .svg or Android Vector Asset.
If you want to use these pictures, you need to convert them to .svg file from here.
How to convert ?
Scroll down and you will something like this ->
Click on Choose a file and pick the image you want.
Once you select, you will see this below it -> (I have used my image)
Click on the Generate button and wait for a while->
Once you see an image in the side, you know that it has been converted ->
Click on the Download SVG button and you will find it in your file explorer.
Once you download them, you can add it to the drawable folder. But make sure that you delete the previous png files.
Tada! Its done! You them in the navigation drawer and you get the icons too!

Recycler view add image from gallery or camera with button

I am working on an app where I have to upload images to a recycler view from either the gallery or from camera. The recycler view should have a button where I can add the image from.
The image below shows what I am trying to achieve.
My question is, is there a library for android either java or kotlin that can help me achieve this?
Any help will be highly appreciated.
You can use UltimateRecyclerView library for your purpose
This library supports different layouts and many more other useful features. You can create different layouts for images and plus button and define different code logic by checking the position of the clicked item.

Drag and Drop in Android Studio layout editor

I have a problem with adding images to my app's layout. I've searched for an answer for a while, but even when doing exactly what friendly people of the internet told me, there is still no success.
images are in PNG format in res/drawable folder.
im trying to drag'n'drop them into the content_*.xml preview.
i can add elements from the palette.
i am using RelativeLayout.
Any idea what may be the cause of this problem?
View of my android studio screen:
You must store your images on Drawables folders not in drawable
-drawable-hdpi,drawable-mdpi,drawable-xhdpi.....
You should drag an ImageView, then add the image with the src param. You can't directly drag and drop images
You can't add elements in "Palette".
RelativeLayout... Okay, whatever layout it's good
UPDATE1
To see the drawable folders you must clic on arrow (see image1) and put on "Project" (image2)
----------> see point 1.
Yes you can drag&drop that elemenst, TextViews, ImageViews, Edittext....
you should drag an ImageView, then add the image with the src param (you can do this in the right menu or with xml)

How to build a android apps like This

Now i am facing a problem with my apps.
I want to make a animated hand on my app that help user in this way how to use it.
I give blew a picture sample. Please help. http://i.stack.imgur.com/IgAMU.png
The image you provided is how Google shows off and demonstrates their new features.
Google has created the "Blue hand overlay" and the other effects you see in the picture.
You will need to create your own image as im sure Google has some sort of copyright on every thing you see.
After you have your own "guiding hand" image you will apply the image to the screen with a transparent background and a "ok" button in order to mimic what you see in the picture.

Creating endless full screen gallery

I'd like to create a full screen android gallery. In this gallery I would like to be able to swipe the image off the screen like the google gallery app, but have the same image show up again. I'd also like the next image to show up underneath the image being swiped away. Is there an easy way to do this?
You will need a CustomAdapter.
Have a look at these links:
Android Endless Adapter
Endless Gallery discussion
CommonsWare's Endless Adapter
And for the Carousel of the Image here is a nice tutorial and source available

Categories