макет недвижимости Android - PullRequest
       1

макет недвижимости Android

0 голосов
/ 11 августа 2011

У меня есть несколько компонентов вида в макете.большинство из них имеют видимость = ушел, и они включаются только на основе определенных условий, и это делается программно.Все это работает нормально, но хотя видимость = пропала, в этой области есть пустое место.как мне удалить это>

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout android:weightSum="1" android:layout_height="wrap_content"
    android:background="@drawable/subheader_gradient" android:orientation="horizontal"
    android:layout_width="fill_parent" android:id="@+id/_searchLayout">
    <EditText android:layout_width="fill_parent" android:id="@+id/_search"
        android:layout_height="wrap_content" android:textColor="@color/black"
        android:layout_gravity="center" android:background="@color/white"
        android:layout_alignParentTop="true" android:layout_margin="10dp"
        style="@style/formValue" android:singleLine="true"
        android:inputType="textNoSuggestions|textVisiblePassword|textCapCharacters"
        android:autoText="false" android:lines="1"
        android:hint="@string/_Text_searchBy" android:maxLines="1"
        android:textColorHint="@color/light_gray" android:textScaleX="1"
        android:textSize="7pt" />
</LinearLayout>


<TextView style="@style/SubHeaderText" android:text="@string/_Heading_searchResults"
    android:id="@+id/_HeadingsearchResults"
    android:layout_height="wrap_content" android:layout_width="fill_parent"
    android:background="@drawable/subheader_gradient" android:visibility="gone"></TextView>


<TextView android:layout_width="fill_parent"
    android:visibility="gone" android:id="@+id/_HeadingsearchResultsNull"
    android:layout_height="wrap_content" android:text="@string/_Text_noSymbolsFounds"
    android:textColor="@color/light_gray" style="@style/formLabel"
    android:layout_gravity="center" android:background="@color/white" />
<LinearLayout android:layout_height="wrap_content"
    android:orientation="horizontal" android:layout_width="fill_parent"
    android:id="@+id/_progressLayout" android:background="@color/white"
    android:visibility="gone">
    <ProgressBar style="@android:style/Widget.ProgressBar.Small.Inverse"
        android:layout_height="wrap_content" android:layout_width="wrap_content"
        android:layout_gravity="left" android:id="@+id/_progress"
        android:padding="5dip"></ProgressBar>
    <TextView android:id="@+id/_progressText"
        android:text="@string/_Heading_searching"
        android:gravity="center|center_vertical" android:layout_height="wrap_content"
        android:layout_width="wrap_content" android:padding="5dip"
        android:textColor="@color/black" android:textSize="15dp"
        android:layout_gravity="center_vertical|center" />
</LinearLayout>

<ListView android:fadeScrollbars="true" android:scrollbars="vertical"
    android:id="@+id/_searchSymbol_list" android:layout_width="match_parent"
    android:layout_height="wrap_content" android:visibility="gone"
    android:scrollbarAlwaysDrawVerticalTrack="true" android:background="@color/white"
    android:cacheColorHint="@color/white" />

<TextView style="@style/SubHeaderText" android:text="@string/_Heading_recentResults"
    android:id="@+id/_recentResults" android:layout_height="wrap_content"
    android:layout_width="fill_parent" android:background="@drawable/subheader_gradient"></TextView>


<ListView android:fadeScrollbars="true" android:scrollbars="vertical"
    android:id="@+id/_recentQuotes_list" android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:scrollbarAlwaysDrawVerticalTrack="true" android:background="@color/white"
    android:cacheColorHint="@color/white" />

Space right above recent results

1 Ответ

1 голос
/ 11 августа 2011

Попробуйте отправить свой макет XML.Или, если вы хотите определить, какой макет вызывает проблемы, установите разные цвета фона для каждого, а затем вы можете попробовать разные параметры для размера макета.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...