AndroidスタジオのAndroidアプリで作業していて、xmlファイルを使用してプロジェクトにアニメーションを追加する必要があります。res/animatorディレクトリを作成し、アクティビティ内Android Studioブロックでのアニメーターファイルの作成
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"android:ordering="together">
</set>
、pulsation.xmlせずにアプリケーションを実行しているSharedPreferences object.Whenに保存されているいくつかの値へのアプリのアクセス:コードここでは、何もしないpulsation.xmlと呼ば res/animatorディレクトリのファイル.xmlを入力すると、プログラムは問題なく必要な値を取得します。ファイル内res/animatorプログラムは何も取得できません。この奇妙な動作の原因はわかりません。ここでアプリがSharedPreferencesからデータを取得するコードの一部オブジェクト:
SharedPreferences pref = getSharedPreferences("ballan.emmanuele.hellpuzzle.PUNTEGGI",MODE_PRIVATE);
SharedPreferences.Editor editor = pref.edit();
do
{
next = pref.getInt(R.id.liv1+"next",R.id.liv2);
TextView punt = (TextView) findViewById(pref.getInt(next+"punt",R.id.punt1));
punt.setText(pref.getInt(next+"punteggio",0)+"");
TextView num = (TextView) findViewById(pref.getInt(next+"num",R.id.num1));
num.setText(pref.getInt(next+"numero_sequenza",0)+"");
LinearLayout lay =(LinearLayout)findViewById(pref.getInt(next+"riga",R.id.riga1));
lay.setVisibility(View.VISIBLE);
}while (next != ultimo);
は私が助けるために11.Thanks最小SDKのバージョンを設定します。
あなたは 'res/anim'ディレクトリを意味しますか? – Shaishav
プロパティアニメーションディレクトリの$ res/animatorディレクトリ – Emmanuele
ああ...私の怒って...謝罪! – Shaishav