How to create slider same as android inbuilt lock slider? [closed] - android

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
i need creating slider same as like iphone or android inbuilt lock slider in home screen app. for this functionality i will use any inbuilt control or create custom layout for this. anyone has info. regarding this than pls send me any link or details.

You will have to make a custom slider:
Use a seekbar widget.
Then, on the onStopTrackingTouch listener, reset the seekbar position to ZERO unless the rightmost value has been reached. This will have a "snapping" effect. You can also code an animation to bring it back to the initial position smoothly instead of the "snapping" effect. If the rightmost value has been reached, you can do whatever you wanted to do.
You can use custom 9-patch graphics too!

Related

how to make animation like notification drawer icon movement and size change during drag down 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 3 years ago.
Improve this question
I know how to animate translate, zoom and also value animator. But I'm wondering how to achieve the animation like notification drawer, the icon and button move and scale change as we drag down the notification drawer.
Please point out the tips and step to do the animation like this.
Thanks.
It would be better if you can give more details about what you want to achieve.
But I think you can try to using Motion Layout, it's now is available since Constraint Layout 2.0.
You can read more here
And also refer to vector icon animation here

How do I add an android pop screen in Unity3D [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
I'm doing an android project with unity3D now.
I want to pop a small screen when I touch the button on the screen like the image below.
How could I implement this?
(My reputation is too low to post the picture)
http://i.stack.imgur.com/9SoLr.png
Design your popup with GUILabels and GUITextures. Create an empty gameobject called Popup, and place all these gameobjects under its hierarchy, and disable it in the inspector.
Make a new script attached to the button. In this script, create a public GameObject variable for your popup called popUp, and create a new function called OnMouseDown().
Within this function place the code
popUp.SetActive(true);
Finally, in the inspector, drag and drop the disabled gameobejct into the popup variable of your script, and it should work as you want.

Android ViewPager / StackView with Pages behind each other [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 7 years ago.
Improve this question
I try to achieve an View where i have multiple "cards" behind each other and where i could move and fling the Views away and the next "Page" shows up.
It Should be like in this Screenshot:
I tried using ViewPager, but that just allows me to "Scroll" horizontal and the way i try to put the View behind each Other ( margin etc. ) doesn´t really look good.
Then i tried to use a StackView, but this doesn´t work as expected, especially the move of the items.
Is there any best practice to achieve this with an ViewPager, or do i have to build something my own?

xml layout 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'm having some issues with getting my application to look the way i want it to.
So the first issue i'm having is, i want to have small icons on the left side which is always visable to the end user. And they have the option to take it out (pull the icons to the right), and look what they do (i'll add text on the left side of the icons). What kind of view would i have to use?
Also whenever i try to make icons they always get a grey background eventhough i have transparent background in ps.
finally, how do i get a photo to show up from a website? i'll have my own database of photos i want to be shown, but how do i get those to appear? i tried things such as imageview, but that's something different..
Thanks in advance
For partially visible navigation drawer, follow the link : Android - How to implement a NavigationDrawer that is partially visible at all times?
For clickable icons, you are probably using android:src for ImageButton. Instead set image as android:background
For images to be loaded from the web, use WebView and simply using <img src="example.com/xyz.jpg"> will do the work.

How can I get multiple onclick event on a single backgound image? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
hello Hello everyone i ,I have a problemwith finding , I wish to find a solution...
I have developed a background image so it fits in all types of phone or and tablet types.
my image looks like a multiple joint button
now i I want multiple onclick events on that button(that is a part of image) look on that image
can anybody help me??
thanks in advance.....
in this image i want click events on about/stats/offers/help and also in middle tag
put buttons layouts or whatever you wish on the image set that as invisible(visibility.invisible) put on click for the invisible obj
Used multiple layouts in one screen and used the contents from
http://developer.android.com/reference/android/widget/Button.html

Categories

Resources