- Android
-
2012-05-07
Matrixを使ってImageViewを回転させます。
※ImageViewのIDをarrow、サイズを75×75とします。
ImageView imageView; imageView = (ImageView)findViewById(R.id.arrow); Matrix mtrx = new Matrix(); imageView.setScaleType(ScaleType.MATRIX); mtrx.postRotate(90.0f, imageView.getWidth()/2, imageView.getHeight()/2); imageView.setImageMatrix(mtrx); imageView.invalidate(); //再描画
上記のようにするといけると思うんですが、
リストビューを使うアプリでやると最初が表示されない。
続きを読む…»
![](https://k-sugi.sakura.ne.jp/wp-content/themes/chic_grid3/images/icon-tag.png)
18,825 views