2016-05-07 13 views
1

を持っている私は、この小さな広場が重要なことを意味だと思うが、私はそれをダブルクリックして、私の内に少ない複雑なレイアウトで表示されない場合、それが消える何... 分かりませんプロジェクト...なぜそれが表示されているのか、それが何を意味するのか?のAndroid StudioのXMLが少し黄色の四角形

Image with yellow square

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:background="@android:color/darker_gray" 
android:orientation="vertical"> 

<android.support.v7.widget.Toolbar 
    android:id="@+id/preferences_dialog_toolbar" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:minHeight="?attr/actionBarSize" 
    android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> 


    <TextView 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:gravity="center" 
     android:text="Toolbar Title" 
     android:textSize="30sp" /> 

</android.support.v7.widget.Toolbar> 
<LinearLayout 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:paddingTop="5dp" 
    android:paddingBottom="5dp"> 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_weight="1" 
     android:text="Options:" /> 

    <RadioGroup 
     android:id="@+id/dataInputPreferenceRadioGroup" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_weight="2" 
     android:gravity="center" 
     android:orientation="horizontal"> 

     <RadioButton 
      android:id="@+id/defaultUseInput" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:layout_gravity="center_horizontal" 
      android:checked="false" 
      android:text="Option1" /> 

     <RadioButton 
      android:id="@+id/defaultUseTimeWidgets" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:layout_gravity="center_horizontal" 
      android:checked="true" 
      android:text="Option2" 
      android:visibility="gone"/> 
     <RadioButton 
      android:id="@+id/defaultUseOption3" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:layout_gravity="center_horizontal" 
      android:checked="true" 
      android:text="Option3" /> 
    </RadioGroup> 
</LinearLayout> 
+0

これはコードとは関係ありません。ドットは電話スクリーンの外にあります。アンドロイドスタジオの問題です。そして、将来、コードを投稿する予定の場合は、スクリーンショットを作成しないでください。コピーして、我々はそれをコードに関するヒントについて –

+0

おかげで何かを行うことができますので、コードを貼り付け、これを追加しました、そしてマイク・Tは、後述のように、黄色の四角は、視認性を持つフィールドが原因では – WM1

答えて

1

私は少し黄色の四角形が見えないか、なくなって行われることによって隠されているビューを示していると考えています。

この更に見ると、それだけで目に見えない、消えてはいない示すために表示されます。

+0

さえ隠されたまたは非表示「を行って」ビューはXMLになります。そして、それは電話スクリーンのプレビューの外に原因でビューとは関係がありません。 –

+1

AS問題であることを示す参考資料はありますか?面白いことに、私は、黄色の四角形を必要に応じて携帯電話の表示領域外に導入することができます。例えば。もちろん、画面の外側は、何かが見えないことを示すための非常に論理的な場所のようです。 – MikeT

+0

ちょうどそれが "論理的な場所"であると思われるからといって、それがどのようにそれをするのかを意味するものではありません。あなたが行って自分自身のために試してみると、ASが実際にそれを隠しており、画面の外にそれが隠されていることを通知していないことがわかります。唯一の表示は、そのビューを選択すると、画面の最上部に表示されます。 –

関連する問題