Студия Android (v 2.3.1) продолжает заменять match_parent
RelativeLayout с фиксированным dp vanue. Например, когда я набираю match_parent как ширину, он заменяет его 368dp. Когда я тестирую приложение, я вижу, что RelativeLayout действительно ошибается.
Кто-нибудь знает, как это исправить?
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="be.mawey.lamachat.LoginActivity">
<RelativeLayout
android:layout_width="match_parent" <!-- THIS IS BEING REPLACED WITH 368dp -->
android:layout_height="match_parent" <!-- THIS IS BEING REPLACED WITH 495dp -->
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="8dp">
<Button
android:id="@+id/buttonLogin"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:background="@color/colorPrimary"
android:text="Login"
android:textColor="@android:color/white"
android:textSize="18sp"
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="292dp" />
<EditText
android:id="@+id/editTextCode"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_above="@+id/buttonLogin"
android:layout_alignParentStart="true"
android:ems="10"
android:hint="Secret code here"
android:inputType="numberPassword"
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="234dp" />
<TextView
android:id="@+id/textView3"
android:layout_width="match_parent"
android:layout_height="50dp"
android:fontFamily="monospace"
android:text="example"
android:textAlignment="center"
android:textColor="@color/colorPrimaryDark"
android:textSize="36sp"
android:textStyle="italic"
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="16dp" />
</RelativeLayout>
</android.support.constraint.ConstraintLayout>