简体   繁体   English

Android Studio XML 有小黄方块

[英]Android Studio XML has little yellow square

I think this little square means something important but don't know what... It goes away if I double click on it, but doesn't show up on less complex layouts within my project... any ideas why it's showing or what it means?我认为这个小方块意味着一些重要的东西,但不知道是什么......如果我双击它它就会消失,但不会出现在我的项目中不太复杂的布局......任何想法为什么它会显示或什么它的意思是?

带有黄色方块的图像

<?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>

I believe the little yellow square indicates a view that is hidden by being made invisible or gone.我相信黄色的小方块表示一个被隐藏或消失的视图。

Looking into this further, it only appears to indicate gone, not invisible.进一步研究这一点,它似乎只表示消失,而不是不可见。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM