У меня есть один редактор и один текст в моей линейной компоновке, и я дал такую же высоту обоим, но все равно получаю разницу в высоте.Облицовка высоты экрана макета
здесь мой XML. Пожалуйста, предложите мне, что я делаю неправильно здесь?
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:orientation="horizontal"
android:weightSum="10">
<TextView
android:id="@+id/lblKayitNo"
style="@style/NoviLabel"
android:layout_width="0dip"
android:layout_height="35dp"
android:layout_weight="4"
android:gravity="center_vertical|left"
android:text="Kayıt No" />
<EditText
android:id="@+id/txtKayitNo"
style="@style/DefaultEditTextSmall"
android:layout_width="0dip"
android:layout_height="35dp"
android:layout_gravity="center_vertical"
android:layout_weight="6"
android:enabled="false"
android:inputType="textCapCharacters"
android:singleLine="true" />
</LinearLayout>
Style Files
<style name="NoviLabel">
<item name="android:textSize">14sp</item>
<item name="android:textColor">@color/colorPrimary</item>
<item name="android:fontFamily">sans-serif-small</item>
<item name="android:background">@drawable/novitextview_border</item>
</style>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="@color/colorPrimary" />
</shape>
</item>
<item android:bottom="1dp">
<shape android:shape="rectangle">
<solid android:color="#ffffff" />
</shape>
</item>
удалить MarginTop в корне LinearLayout –
удалить тяжести осталось ... –
@LucaZiegler я попытался ур предложения и результат isthe же .. –