I want to set background color to transparent. I've tried with this SameProblem but it doesn't work.
This is the my interface. I need the first ConstraintLayout to be transparent I used "android:background="#00000000" " but no result (background white).
This is my xml file :
<?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"
android:background="#00000000"
tools:context=".AddEditNote">
<android.support.constraint.ConstraintLayout
android:id="@+id/constraintLayout2"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="6dp"
android:layout_marginTop="26dp"
android:layout_marginEnd="6dp"
android:layout_marginBottom="26dp"
android:background="@drawable/a"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<EditText
android:id="@+id/note"
android:layout_width="343dp"
android:layout_height="487dp"
android:layout_marginBottom="44dp"
android:background="@color/cardview_shadow_start_color"
android:hint="Note"
android:inputType="textMultiLine"
android:textColorHint="@color/aidialog_background"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.509"
app:layout_constraintStart_toStartOf="parent" />
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="393dp"
android:layout_height="49dp"
android:layout_marginTop="4dp"
android:background="@drawable/circle2"
android:elevation="4dp"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.6"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>
</android.support.constraint.ConstraintLayout>
Thank you.