AndroidにEditTextがあります。その90度を回転させたい。アニメーションクラスでできると思う。その方法を教えてください。
1212 次
1 に答える
2
ビューを回転させる方法はたくさんあります。アニメーションの使用は1つのオプションです。
EditText et = (EditText) findViewById(R.id.editText1);
Animation an = new RotateAnimation(0.0f, 90.0f, 100, 100);
an.setDuration(90);
an.setRepeatCount(0);
an.setFillAfter(true); // keep rotation after animation
et.setAnimation(an); //apply animation to EditText
于 2012-05-04T20:59:36.940 に答える