Android:Espresso:如何检查ConstraintLayout layout_constraintHorizo​​ntal_bias?

时间:2019-04-17 08:41:50

标签: android android-espresso

这是我的xml

   <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/traderSummaryContainer"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/mcgpalette0_100"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/jsonViewToolBar">


        <TextView
            android:id="@+id/symbolLabelTextView"
            style="@style/labelTextViewStyle"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/default_margin"
            android:layout_marginTop="@dimen/half_default_margin"
            android:text="@string/symbol"
            app:layout_constraintEnd_toStartOf="@+id/symbolValueTextView"
            app:layout_constraintHorizontal_bias="0.5"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

如您所见

app:layout_constraintHorizontal_bias="0.5"

如何通过Espresso测试检查此参数app:layout_constraintHorizontal_bias

0 个答案:

没有答案