Floating image in an activity - android - [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I would like to create a picture/button that is displayed over the content of an activity and I can move it anywhere on the screen. Example of functionality: If I move it close to the left side of the screen I would like the image to move to the edge when the user drops the object.

You can either use a draggable view library like DraggableView or you can implement your own onTouch handling to handle touch events for dragging image view. Here's an article for reference.

Related

How do I create an custom "Drop-Up"-Menu in AndroidStudio [Java] [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to crate an dropdown menu which opens form down to top when I click an icon on an circle fixed in the left-bottom corner.
Which Elements should I combine (no code answers necessary)
Example draft
Creating a Spinner near the bottom of an activity should force it to open upwards, given there isn't enough space to list downwards. A way of forcing using this would be to add a margin to the top of your spinner to force it down so it will list upwards.
Source

How to create this gesture effect animation? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
How I can create this type of sweep animation using gesture or other method in android studing using java.
Effect: https://ibb.co/hKJjen
So for the swiping cards you'll have to use this library
https://github.com/flschweiger/SwipeStack
When user will touches/swipes the cards there will be a white dot which acts as a pointer just like how you'r attached example shows. Click the below link and you'll get the right code implementation for it!
http://android-er.blogspot.in/2015/05/android-custom-touch-view-with-callback.html

How to create "god rays"? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I would like to create "god rays" effect/lighting on a 3D shape. If I have a Box, I would like to have a light source behind it that will create "god rays" around it. Below, is an image I found showing the idea (imagine the window as an opaque box and the rays coming around all sides):
I tried setting a PointLight source, but all lights illuminate "solid" objects, so you can't see the effect around them. My guess would be to fill the area around the shape with some sort of air-like, partially transparent material, that engulfs the shape; and that the light can reflect from.
How would I go about creating "god rays?

Customize size of a button widget in android [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
So i have this idea to create an activity that have only buttons which split the screen as presented in the picture:
I was thinking about creating some functions for each button. those functions will be dependent on the y and x axis of the screen.
Can you guys give me a direction on how to do this in a manner of using the Button and imageButton widgets in my activity.java file?

Identificate an object by the camera and react [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Let's assume that the camera is turned into a wall and all it sees is white. Once I turn off the light on my room the camera will see black.
I would like to know how can I react to such a change, is there any kind of a listener?or other way to do that?
If you are only wanting to detect brightness as in the example you gave, you might want to look at the "Light Sensor". A lot (most) android devices have a light sensor for adjusting the brightness of the screen. Try looking here: http://developer.android.com/guide/topics/sensors/sensors_overview.html

Categories

Resources