Когда я загружаю данные в счетчик из веб-сервиса с помощью «Дооснащения», он увеличивает высоту счетчика и меняет цвет текста. В чем проблема? Как я могу это исправить?Почему размер счетчика изменяется после загрузки данных и цвета текста?
Красная отмеченная прядильщик является стандартным размером без загрузки каких-либо данных.
Планировка:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_monthly_target_ad"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.nitolniloygroup.operating.view.activity.MonthlyTargetADActivity">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true">
<Spinner
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:background="@android:drawable/btn_dropdown"
android:textColor="@android:color/holo_blue_bright"
android:id="@+id/spinnerZone" />
<Spinner
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:background="@android:drawable/btn_dropdown"
android:textColor="@android:color/holo_blue_bright"
android:id="@+id/spinnerSubZone" />
<Spinner
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:background="@android:drawable/btn_dropdown"
android:textColor="@android:color/holo_blue_bright"
android:id="@+id/spinnerBranch" />
<Spinner
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:background="@android:drawable/btn_dropdown"
android:textColor="@android:color/holo_blue_bright"
android:id="@+id/spinnerFieldOfficer" />
<Spinner
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:background="@android:drawable/btn_dropdown"
android:textColor="@android:color/holo_blue_bright"
android:id="@+id/spinnerFieldOfficeraaa" />
<Button
android:text="Search"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:drawable/btn_default"
android:onClick="onClickSearch"
android:id="@+id/button4" />
</LinearLayout>
</RelativeLayout>
проверить ответ .. добавил – rafsanahmad007