-1

フルスクリーンの Imagebutton を作成しようとしています。しかし、私は灰色の境界線を取得し続けました。

<ImageButton
        android:id="@+id/StartButton"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"        
        android:src="@drawable/startscreen" />

日食で写真を全画面表示に伸ばしてみましたが、写真の周りにまだ灰色の境界線が表示されています。

私の設定の解像度または画像の解像度が原因であると思っていました。ギャラクシーノートをやっています。

4

2 に答える 2

2

これで灰色の境界線が削除されます

<ImageButton
        android:id="@+id/StartButton"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"        
        android:src="@drawable/startscreen" 
        android:background="#000000"/>
于 2012-05-05T18:08:50.440 に答える
0

@Proxy32 のアイデアはおそらく最高のものです。または、android:src属性ではなくandroid:background. Button代わりに、背景をドローアブルに設定して単純なものを使用し、テキストを除外することもできます。

于 2012-05-05T18:13:16.927 に答える