توسط
esmail Nosrati
سلام روزتون بخیر.
موقع طراحی ui هر المانی رو کد نویسی یا درگ میکنم ارور میده و ارورش با اضافه کردن این تکه کد غیر فعال میشه :
tools:ignore="MissingConstraints"
دلیلش رو میدونید؟
دوتا پروژه ساختم توی هردو مشکل همین بود!
سورس صفحه :
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<View
android:background="@color/colorPrimary"
android:id="@+id/view3"
android:layout_width="match_parent"
android:layout_height="200dp"
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="0dp"
/>
<ImageView
android:id="@+id/imageView"
android:layout_width="100dp"
android:layout_height="100dp"
app:srcCompat="@drawable/logo"
tools:layout_editor_absoluteX="142dp"
tools:layout_editor_absoluteY="25dp"
tools:ignore="MissingConstraints" />
</android.support.constraint.ConstraintLayout>
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .