Autore Topic: Problema con le animazioni  (Letto 449 volte)

Offline oberdank

  • Utente normale
  • ***
  • Post: 287
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    Samsung Galaxy Core LTE
  • Play Store ID:
    BuzzOne
  • Sistema operativo:
    Windows 8.1
Problema con le animazioni
« il: 23 Luglio 2015, 16:36:50 CEST »
0
Ho un problema con le animazioni.

L'animazione "bounce" in res/anim NON mi funziona, quando la lancio appare la scritta "New Text" ma NON succede
nulla.

Riporto l'immagine della configurazione dell'emulatore.

Lanciando l'app quattro volte mi appaiono quattro LogCat diversi, li riporto tutti e quattro.


********** MainActivity.java **********
Codice (Java): [Seleziona]
package prove.myapplication53_animazioni;

import android.app.Activity;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.TextView;


public class MainActivity extends Activity {

    TextView messaggio;

    // Animazione
    Animation bounce;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // Caricamento dell'animazione
        bounce = AnimationUtils.loadAnimation(getApplicationContext(),
                R.anim.bounce);

        messaggio = (TextView) findViewById(R.id.messaggio);
        messaggio.startAnimation(bounce);
    }
}

********** bounce.xml **********
Codice (XML): [Seleziona]
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true" >

<alpha
   android:duration="1000"
   android:fromAlpha="0.0"
   android:interpolator="@android:anim/accelerate_interpolator"
   android:toAlpha="1.0" />

</set>

********** activity_main.xml **********
Codice (XML): [Seleziona]
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
   android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
   android:paddingRight="@dimen/activity_horizontal_margin"
   android:paddingTop="@dimen/activity_vertical_margin"
   android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">

    <TextView android:text="@string/hello_world" android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:id="@+id/textView" />

    <TextView
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:text="New Text"
       android:id="@+id/messaggio"
       android:layout_below="@+id/textView"
       android:layout_alignParentLeft="true"
       android:layout_alignParentStart="true"
       android:layout_marginTop="41dp"
       android:textSize="50dp" />

</RelativeLayout>

********** LogCat (Log level: Verbose) [1] *********
Codice: [Seleziona]
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 0 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 1 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 2 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 3 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 4 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 5 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 6 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 7 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 8 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 9 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 10 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 11 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 12 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 13 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 14 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 15 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 16 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 17 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 18 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 19 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 20 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 21 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 22 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 23 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 24 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 25 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 26 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 27 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 28 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 29 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 30 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 31 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 32 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 33 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 09:57:05.436    1863-1863/prove.myapplication53_animazioni D/dalvikvm﹕ Not late-enabling CheckJNI (already on)
07-23 09:57:06.246    1863-1863/prove.myapplication53_animazioni D/libEGL﹕ loaded /system/lib/egl/libEGL_emulation.so
07-23 09:57:06.256    1863-1863/prove.myapplication53_animazioni D/﹕ HostConnection::get() New Host Connection established 0x2a1ea928, tid 1863
07-23 09:57:06.296    1863-1863/prove.myapplication53_animazioni D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_emulation.so
07-23 09:57:06.296    1863-1863/prove.myapplication53_animazioni D/libEGL﹕ loaded /system/lib/egl/libGLESv2_emulation.so
07-23 09:57:06.378    1863-1863/prove.myapplication53_animazioni W/EGL_emulation﹕ eglSurfaceAttrib not implemented
07-23 09:57:06.397    1863-1863/prove.myapplication53_animazioni D/OpenGLRenderer﹕ Enabling debug mode 0
07-23 09:57:06.397    1863-1863/prove.myapplication53_animazioni W/ViewRootImpl﹕ Dropping event due to no window focus: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_MENU, scanCode=229, metaState=0, flags=0x8, repeatCount=0, eventTime=176454, downTime=176454, deviceId=0, source=0x101 }
07-23 09:57:07.086    1863-1863/prove.myapplication53_animazioni I/Choreographer﹕ Skipped 37 frames!  The application may be doing too much work on its main thread.
07-23 09:57:07.096    1863-1863/prove.myapplication53_animazioni D/InputEventConsistencyVerifier﹕ KeyEvent: ACTION_UP but key was not down.
    in com.android.internal.policy.impl.PhoneWindow$DecorView{416f86e0 V.E..... R.....ID 0,0-768,1184}
    0: sent at 176969000000, KeyEvent { action=ACTION_UP, keyCode=KEYCODE_MENU, scanCode=229, metaState=0, flags=0x8, repeatCount=0, eventTime=176969, downTime=176753, deviceId=0, source=0x101 }


********** LogCat (Log level: Verbose) [2] *********
Codice: [Seleziona]
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 0 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 1 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 2 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 3 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 4 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 5 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 6 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 7 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 8 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 9 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 10 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 11 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 12 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 13 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 14 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 15 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 16 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 17 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 18 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 19 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 20 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 21 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 22 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 23 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 24 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 25 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 26 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 27 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 28 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 29 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 30 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 31 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 32 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.936    1954-1954/prove.myapplication53_animazioni W/dalvikvm﹕ PR_CAPBSET_DROP 33 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
07-23 10:03:51.946    1954-1954/prove.myapplication53_animazioni D/dalvikvm﹕ Not late-enabling CheckJNI (already on)
07-23 10:03:52.807    1954-1954/prove.myapplication53_animazioni D/libEGL﹕ loaded /system/lib/egl/libEGL_emulation.so
07-23 10:03:52.807    1954-1954/prove.myapplication53_animazioni D/﹕ HostConnection::get() New Host Connection established 0x2a1eaa80, tid 1954
07-23 10:03:52.827    1954-1954/prove.myapplication53_animazioni D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_emulation.so
07-23 10:03:52.837    1954-1954/prove.myapplication53_animazioni D/libEGL﹕ loaded /system/lib/egl/libGLESv2_emulation.so
07-23 10:03:52.887    1954-1954/prove.myapplication53_animazioni W/EGL_emulation﹕ eglSurfaceAttrib not implemented
07-23 10:03:52.897    1954-1954/prove.myapplication53_animazioni D/OpenGLRenderer﹕ Enabling debug mode 0

********** LogCat (Log level: Verbose) [3] *********
Codice: [Seleziona]
07-23 10:07:47.106    2036-2036/prove.myapplication53_animazioni D/libEGL﹕ loaded /system/lib/egl/libEGL_emulation.so
07-23 10:07:47.116    2036-2036/prove.myapplication53_animazioni D/﹕ HostConnection::get() New Host Connection established 0x2a1eab80, tid 2036
07-23 10:07:47.170    2036-2036/prove.myapplication53_animazioni D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_emulation.so
07-23 10:07:47.176    2036-2036/prove.myapplication53_animazioni D/libEGL﹕ loaded /system/lib/egl/libGLESv2_emulation.so
07-23 10:07:47.346    2036-2036/prove.myapplication53_animazioni W/EGL_emulation﹕ eglSurfaceAttrib not implemented
07-23 10:07:47.366    2036-2036/prove.myapplication53_animazioni D/OpenGLRenderer﹕ Enabling debug mode 0
07-23 10:07:48.026    2036-2036/prove.myapplication53_animazioni I/Choreographer﹕ Skipped 36 frames!  The application may be doing too much work on its main thread.


********** LogCat (Log level: Verbose) [4] *********
Codice: [Seleziona]
07-23 10:19:54.586    2197-2197/prove.myapplication53_animazioni D/libEGL﹕ loaded /system/lib/egl/libEGL_emulation.so
07-23 10:19:54.607    2197-2197/prove.myapplication53_animazioni D/﹕ HostConnection::get() New Host Connection established 0x2a1ead60, tid 2197
07-23 10:19:54.707    2197-2197/prove.myapplication53_animazioni D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_emulation.so
07-23 10:19:54.707    2197-2197/prove.myapplication53_animazioni D/libEGL﹕ loaded /system/lib/egl/libGLESv2_emulation.so
07-23 10:19:54.806    2197-2197/prove.myapplication53_animazioni W/EGL_emulation﹕ eglSurfaceAttrib not implemented
07-23 10:19:54.817    2197-2197/prove.myapplication53_animazioni D/OpenGLRenderer﹕ Enabling debug mode 0


Post unito: 23 Luglio 2015, 16:37:59 CEST
Ecco l'immagine