2012-05-13 1 views
-2

私は、テキストプラス画像ボタンを連続していたいと思います。私は画像ボタンを追加し、右に向かって文法的に整列、まだ私は私の携帯電話のテーマの背景色を見ることができるようになります。画像がどのように見えるかここで私のコードの間違いは何ですか

コード

<?xml version="1.0" encoding="utf-8"?> 
<TabHost xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@android:id/tabhost" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent"> 
<LinearLayout 
     android:orientation="vertical" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:padding="0dp"> 

    <TabWidget 
      android:id="@android:id/tabs" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" /> 


    <RelativeLayout 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:orientation="horizontal" 
     android:background="#041A37"> 
<TextView 
    android:id="@+id/list_item_text" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_gravity="left" 
    android:ellipsize="end" 
    android:text="All contact list" /> 


<ImageButton 
    android:id="@+id/Contact_icon" 
    android:layout_width="45dip" 
    android:layout_height="50dip" 
    android:layout_alignParentRight="true" 
    android:layout_alignParentTop="true" 
    android:src="@drawable/ic_launcher" /> 


<AutoCompleteTextView 
    android:id="@+id/autoCompleteTextView1" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_alignParentLeft="true" 
    android:layout_alignParentTop="true" 
    android:layout_toLeftOf="@+id/Contact_icon" 
    android:ems="10" 
    android:text="AutoCompleteTextView" 
    android:visibility="invisible" > 
    <requestFocus /> 
</AutoCompleteTextView> 

    </RelativeLayout> 

      <FrameLayout 
      android:id="@android:id/tabcontent" 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:padding="0dp" /> 
    </LinearLayout> 
</TabHost> 

はここで、私はそのボタンがあまりにも青の色の境界線をカバーしたいです。

+0

あなたが話しているボタンに対応するXML要素はどれですか? –

+0

私は小さな下の極端なボタンについて話しています。 – Naruto

+0

それは助けにはなりません。それを絵に描くのはいかがですか? –

答えて

1

ボタンの背景が透明に設定されているように見えます(青色の背景の上にドロイドの腕が見えます)。

android:backgroundを何らかの色に設定してみて、何が起こるかを確認してください。

もう1つの投稿では、android:background="@null"を試していると言われました。色の変更の代わりに役立つかもしれません。

+0

ありがとうバラク、それは働いた....ありがとうたくさんの... – Naruto

関連する問題