imageview
結局はコードで画像を画面幅の 80%に縮小して ImageView#setImageBitmap で表示するようにした。 layout.xml はこんな感じ。
実は、入り組んだレイアウトでなく、単純にこんなレイアウトにしても画像は表示されない。 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" > </relativelayout>
今までは StackOverflowで見つけたこんなコードで動いていた。 Defining a percentage width for a LinearLayout?