Heho's assistants,
I am currently studying a new layout editor for Android Studio with the new ConstraintLayout .
By the way, I hate him.
But I got a problem: if I want to specify layout_height with @dimen , it gets dp .
Has anyone else got this problem?
Android version 2.2.2 and 2.2.3.
New version of gradle.
Thanks in advance guys!
Edit:
Code example:
<?xml version="1.0" encoding="utf-8"?> <ScrollView 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="wrap_content"> <android.support.constraint.ConstraintLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <ImageView android:layout_width="wrap_content" android:layout_height="@dimen/imageViewHeight" app:srcCompat="@drawable/accept" android:id="@+id/imageView" android:layout_marginStart="16dp" app:layout_constraintLeft_toLeftOf="parent" android:layout_marginLeft="16dp" android:layout_marginTop="16dp" app:layout_constraintTop_toTopOf="parent" /> </android.support.constraint.ConstraintLayout> </ScrollView>
An external scrollview also occurs.
source share