PopoupWindow内に設置したImageViewの画像サイズをデバイスに合わせてリサイズして表示したいのですが上手くいかず困っております・・・
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" android:padding="10dp" > <ImageView android:id="@+id/iv_pop_rec" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="start" android:contentDescription="@string/iv_pop_rec" android:src="@drawable/pop_rec" /> </LinearLayout>
createScaleBirmapでpngファイルを希望の大きさにリサイズ、上記のsrc:-の部分を@nullにして、ImageViewにsetImageBitmapしてみたり色々とset・・・なメソッドを使ってみたんですがヌルポが・・・
初心者なので的外れな質問かもしれないのですがよろしくお願いいたします・・・m(_ _)m
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/11/13 21:48