0
votes
1answer
19 views

How to slide a view in and out in android

I'm trying to make a view (Linear view with some buttons in - R.id.playerControl) slide in and out based on the context of other events in the activity. For this purpose I've got a selectMediaItem ...
0
votes
1answer
45 views

ListView: Prevent a view from recycling

I have a ListView wich use recycled views. I'm trying to prevent a view from recycle. So I use setHasTransientState: android.support.v4.view.ViewCompatJB.setHasTransientState(View view, boolean ...
0
votes
0answers
12 views

how to do a same translation animation for every device,TranslateAnimation, Android

What I am trying to do is to move an logo from center position : android:layout_gravity = "center" to the new position like the following Animation animation02 = new ...
0
votes
1answer
60 views

Animate ImageView

Currently I'm developing a game. This is the details of my game: User should choose the correct image object. I want the images to accelerate from left to right. and when they reach the end, they ...
0
votes
1answer
23 views

image is snapping back to old location, translate, android, xml

what I am trying to do is to animate an image from current position to the new one by following XML <?xml version="1.0" encoding="utf-8"?> <set ...
0
votes
0answers
53 views

Android animation not visible

I have the following fragment: Fragment XML <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" ...
1
vote
3answers
145 views

Android Application Stops When Animation Added

i am beginner in android and coding small game Intro screen. My problem is that when i add some basic animation to intro screen there is no output and application stops with popup like this , and ...
0
votes
3answers
50 views

Invisibility and GONE doesnt work after animation in android

i use this code to when i click on a imagebox, run an animation on another object and dissaper itself via visibility.GONE. but it doesnt work!! here is my code: againbtn.setOnClickListener(new ...
0
votes
1answer
35 views

imageview click listener still works after scale down size with tween animation

whit this tween animation instructions i change an imageview size to 0 and after that it disappers: <scale xmlns:android="http://schemas.android.com/apk/res/android" android:duration="400" ...
0
votes
1answer
41 views

avoiding to android tween animation changes position

I'm creating an animation to increase the size of TextView. this is my XML: <?xml version="1.0" encoding="utf-8"?> <scale xmlns:android="http://schemas.android.com/apk/res/android" ...
0
votes
2answers
43 views

Animation don't work with a changing of the ImageView Drawable

Hi have a problem with Animation, actually i want to fade my ImageView while it's changing it resource. It's not working, i can change the resource but without any animation. private void checkX() { ...
3
votes
1answer
2k views

Set the interpolator for android animations in Java

This seems very simple: I'm trying to set the interpolator to be used for an animation in my App. I need to set this in the Java code, not the XML (It will change according to various things). From ...
0
votes
1answer
115 views

Android Translate Animation causing Clicklistener problems

Im having a problem with my Translate Animation that I created in android after the animation runs any clicklisteners that I had set remain in the exact coordinates that they were in before causing ...
0
votes
1answer
64 views

rotating image on its center

I tried methods on http://stackoverflow.com/a/8996581/1389581 but none of them worked for me. Animation animation = AnimationUtils.loadAnimation(this, R.anim.rotate_arround_center); try { ...
0
votes
1answer
61 views

Alter canvas with a button click in the main activity

I am struggling with the logic behind this, so any tips would be appreciated. I have two classes, one in which the fragment is created and one in which my custom view is created, and I am trying to do ...
0
votes
0answers
37 views

Android - Animate ViewView or MediaController

I want to animate the displaying and hiding of a VideoView. My View is wrapped in a MediaController. My code: VideoView videoView = (VideoView) findViewById(R.id.myvideoview); mediaController = new ...
1
vote
1answer
264 views

Android: Thread.sleep( ) not working

In my android app, I want to apply an animation on some imageViews with implementing delay. When the 1st imageView is animated 50%, i want to start animation of the second imageView and goes on like ...
0
votes
0answers
92 views

Android: how to add delay between two android animation

In my Android application, I have made a scale animation xml file. I want to apply it on two imageViews with a specific delay between them. When the 1st imageView is scaled 50%, I want to start the ...
0
votes
1answer
98 views

Android onTouch animation up onTouch stopped animation back down

I'm trying to make an imageView move up when a button is touched, and when the button is released I would like it to go back down. I'm starting to write some sample code to at least get it to move up, ...
0
votes
2answers
203 views

simple in and out animation with android

i have some questions to the animations on android: first of all, does someone have good links to sites where animations for android get explained? Only XML-Animations please, i dont want to use ...
2
votes
2answers
2k views

Simple gauge view like speedmeter in android?

I want to have a simple gauge view where i will define the start value and the end value and have a pointer to show given variable value. So i can show a given value like speedmeter.For example if ...
0
votes
2answers
888 views

Android wait till animation is completed

I am moving an image and I want to play a sound file after the object's animation is completed The image moves but I tried using Threads to wait until a duration but it didn't work. Animation ...
1
vote
0answers
219 views

Translation Animations of multiple images in my layout getting cutoff in my android app

I have 3 horizontal linear layouts of cards in my app. 4 cards in first row a deck in the middle row 4 cards in the 3rd row. I am just trying to animate the movement of the cards to the deck (middle ...
0
votes
1answer
454 views

Android : Translation Animation is not working correctly

I am new to animations in android and trying to work with Property Animations. I am trying to do a sliding effect using translating the x property. but I am not getting the result i want. I have a ...
0
votes
0answers
62 views

Animation slows down whole application

So here is my problem: I have a background frame by frame animation using animation-list in a XML file. The animation works fine but it gets slower and slower as time goes by. After just 1 mn, it is ...
0
votes
1answer
212 views

Gauge Animation in Android

I'm trying to create a gauge/meter/dial animation as part of an application I'm trying to build. What I'm trying to do is to display the acceleration values that I get via the the sensors on a gauge. ...
3
votes
1answer
109 views

Cut a hole in a layout or dynamically occlude part of a view

When the activity starts, the user should see the left side i.e. the top green view is cropped such that only its bottom part is visible and the red views below are visible in an interactive way ...
0
votes
1answer
106 views

Creating launcher animations in android

I am thinking about making a launcher for android, i dont know if i'll market it. But i'm thinking like my phone is in landscape mode, and i see 4 rows of buttons, and 4 buttons on each row. Kind of ...
0
votes
2answers
683 views

Creating Unique postDelayed Runnables in a Loop

I'm emulating a Frame Animation; I have it all working spare one issue. I have a for loop in which, on every iteration, it changes the Image of an ImageView after a delay. for(int i = 1; i <13; ...
0
votes
1answer
109 views

I need to stop the timer and run a frame animation

I have a game where image Views changes on a timer. When a button is clicked (stop) the update is called to update score and spins. I need to stop when the whammy(); is called and run a frame ...

1 2 3
15 30 50 per page