Quantcast
Channel: アンドロイドアプリ開発TIP★STAR »コンポーネント|Images & Media
Browsing latest articles
Browse All 2 View Live

Image may be NSFW.
Clik here to view.

Imageを表示する

今回はImageを表示したいと思います。 画像を表示したい時に利用をします。 AndroidManifest.xmlは 変更しません。 レイアウトは(iconという名前の画像を予め用意しておきます。)特にはscaleTypeという要素で、中央寄せのサイズがいっぱいに広がる形式を選んでいます。 <ImageView         android:id="@+id/imageView1"...

View Article



Image may be NSFW.
Clik here to view.

ImageをButtonにして利用する

今回は画像をボタンにしたいと思います。 ImageButtonはクリックイベントを取得したい時などに利用をします。 AndroidManifest.xmlは 特に変更しません。 レイアウトは <ImageButton     android:id="@+id/imageButton1"     android:scaleType="fitCenter"...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images