Я не могу понять, почему ConstaintLayout
с идентификатором "прозрачный" остается белым.
Я также попытался использовать android: background = "# 00ffffff", сделать прозрачным всю правую сторону SlidingPanel
(id right_side).
Я хочу сделать это, как в стандартном приложении калькулятора.
![SlidingPanel is opened](https://i.stack.imgur.com/XE9dr.png)
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<android.support.constraint.ConstraintLayout
android:id="@+id/digits_area"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@id/buttons"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_weight="1.5"/>
<android.support.constraint.ConstraintLayout
android:id="@+id/buttons"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@id/digits_area"
app:layout_constraintVertical_weight="3">
<android.support.v4.widget.SlidingPaneLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/sliding_pane_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.constraint.ConstraintLayout
android:id="@+id/digits"
android:layout_width="0dp"
android:layout_height="match_parent"
android:background="@color/colorPrimary"
app:layout_constraintEnd_toStartOf="@id/operations"
app:layout_constraintHorizontal_weight="3"
app:layout_constraintStart_toStartOf="parent">
</android.support.constraint.ConstraintLayout>
<android.support.constraint.ConstraintLayout
android:id="@+id/operations"
android:layout_width="0dp"
android:layout_height="match_parent"
android:background="@color/colorAccent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toEndOf="@id/digits">
</android.support.constraint.ConstraintLayout>
</android.support.constraint.ConstraintLayout>
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--This part I want to make transparent-->
<android.support.constraint.ConstraintLayout
android:id="@+id/transparent_layout"
android:layout_width="0dp"
android:layout_height="match_parent"
app:layout_constraintEnd_toStartOf="@id/content"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toStartOf="parent" />
<android.support.constraint.ConstraintLayout
android:id="@+id/content"
android:layout_width="0dp"
android:layout_height="match_parent"
android:background="@color/secondaryLightColor"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_weight="4"
app:layout_constraintStart_toEndOf="@id/transparent_layout">
</android.support.constraint.ConstraintLayout>
</android.support.constraint.ConstraintLayout>
</android.support.v4.widget.SlidingPaneLayout>
</android.support.constraint.ConstraintLayout>
</android.support.constraint.ConstraintLayout>