DIỄN ĐÀN TIN HOC
Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.
DIỄN ĐÀN TIN HOC

BÀI VIẾT MỚINGƯỜI GỬI CUỐI

      Thảo luận nhiều nhất

      Lượt xem nhiều nhất


      You are not connected. Please login or register

      [Android] Unable to instantiate application android.app.Application: java.lang.NullPointerException when use animation

         

      nhuvannhu

      #1[Android]  Unable to instantiate application android.app.Application: java.lang.NullPointerException when use animation Empty Mon May 26, 2014 3:24 pm

      nhuvannhu
      nhuvannhu Quản lý viên

      Giới tính : Nam

      Tổng số bài gửi Tổng số bài gửi : 18

      Points Points : 57

      Like Like : 3

      status : Không có gì để nói

      [Android]  Unable to instantiate application android.app.Application: java.lang.NullPointerException when use animation AaSPG8d

      Khi bạn dùng animation để làm cho hiệu ứng đẹp hơn. Mà hiện ra lỗi này thường là trong giá trị thiết lập.
      Ví dụ :
      Code:
      <set xmlns:android="http://schemas.android.com/apk/res/android"
          android:interpolator="@android:anim/linear_interpolator"> 
        <translate
            android:fromYDelta="0%p"
            android:toYDelta="100%p"
            android:duration="500"/>
      </set>
      nếu bạn sửa lại 0%p thành giá trị nào đó thì nó sẽ sai, và giá trị khởi đầu của anim cũng rất quan trọng để không bị null.
         
            

      [Trang 1 trong tổng số 1 trang]

      Thông tin chuyên mục

      Bạn không có quyền trả lời bài viết