--
このメールは Google グループのグループ「日本Androidの会」の登録者に送られています。
このグループに投稿するには、android-g...@googlegroups.com にメールを送信してください。
このグループから退会するには、android-group-j...@googlegroups.com にメールを送信してください。
詳細については、http://groups.google.com/group/android-group-japan?hl=ja からこのグループにアクセスしてください。
------------------------------------------
EGAWA Takashi
2010/7/6 Noriko Iwai <noriko.h...@gmail.com>:
こんな感じでできると思います。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ImageView
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:src="@drawable/hoge"
android:adjustViewBounds="true"
/>
</LinearLayout>
------------------------------------------
EGAWA Takashi
2010/7/6 Noriko Iwai <noriko.h...@gmail.com>:
以前、ImageViewの大きさの決まり方をソースから追っかけたことがありますが、なかなか複雑です。
( 詳細はこちら→http://fchiba.blog114.fc2.com/blog-entry-40.html )
結論から言うと
・画面の横幅より大きな画像を用意
・android:layout_width="fill_parent"
・android:layout_height="wrap_content"
・android:adjustViewBounds="true"
・android:scaleType="center_inside"
でいけるんじゃないかと思います。
小さい画像しか用意できない場合は、自分でカスタムViewを書いてしまったほうが早いかもしれません。
2010年7月6日23:39 Noriko Iwai <noriko.h...@gmail.com>:
--
千葉 史哉
f-c...@broadtai.jp