Category : android-constraintlayout

This is how I want TextInputLayout of Custom DialogFragment to be appear And here’s it’s xml layout fragment_passcode_layout.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.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:id="@+id/main_CL" android:layout_width="match_parent" android:layout_height="match_parent" android:theme="@style/Theme.MaterialComponents.Light.NoActionBar" tools:context=".fragments.PasscodeDialogFragment"> <com.google.android.material.textfield.TextInputLayout android:id="@+id/enter_passcode_TIL" style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" android:layout_width="0dp" android:layout_height="wrap_content" android:hint="Enter Passcode" app:layout_constraintWidth_percent="0.6" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.3" app:passwordToggleEnabled="true"> <com.google.android.material.textfield.TextInputEditText android:id="@+id/enter_passcode_TIET" android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="number"/> </com.google.android.material.textfield.TextInputLayout> </androidx.constraintlayout.widget.ConstraintLayout> It’s PasscodeDialogFragment.java has ..

Read more

<?xml version=”1.0″ encoding=”utf-8″?> <androidx.constraintlayout.widget.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=”wrap_content”> <androidx.appcompat.widget.Toolbar android:id=”@+id/myToolbar” android:layout_width=”match_parent” android:layout_height=”wrap_content” app:layout_constraintEnd_toEndOf=”parent” app:layout_constraintStart_toStartOf=”parent” app:layout_constraintTop_toTopOf=”parent”> <LinearLayout android:layout_width=”match_parent” android:layout_height=”wrap_content” android:background=”#019032″ android:padding=”20dp” android:gravity=”center_horizontal”> <ImageView android:layout_width=”25dp” android:layout_height=”25dp” android:layout_marginLeft=”0dp” android:paddingLeft=”0dp” android:src=”@drawable/menu” /> <TextView android:layout_width=”0dp” android:layout_height=”match_parent” android:layout_gravity=”center” android:textAlignment=”center” android:layout_weight=”1″ android:textStyle=”bold” android:textSize=”18dp” android:text=”Falesie in Italia” /> <ImageView android:layout_width=”25dp” android:layout_height=”25dp” android:src=”@drawable/menu” /> </LinearLayout> </androidx.appcompat.widget.Toolbar> </androidx.constraintlayout.widget.ConstraintLayout> I’m trying to add a Toolbar ..

Read more

I’ve this layout: <androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/myLayout" android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:id="@+id/text1" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toStartOf="@id/text2" android:text="Left" android:textSize="20sp" app:layout_constraintTop_toTopOf="parent"/> <TextView android:id="@+id/text2" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" android:text="Center" android:textSize="20sp" app:layout_constraintTop_toTopOf="parent"/> <TextView android:id="@+id/text3" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/text2" android:text="Right" android:textSize="20sp" app:layout_constraintTop_toTopOf="parent"/> </androidx.constraintlayout.widget.ConstraintLayout> When I change the visibility of the center and left textviews to gone, The right textview still remains on the ..

Read more

I am attempting to set up a recycler view, with the elements being displayed by it using a ConstraintLayout. I used the layout from this example by Google as a guideline. However, despite specifying android:layout_width="match_parent" all the way down, the result being finally displayed on screen is more akin to wrap_content. What I have tried ..

Read more

What is the equivalent of : <Transition motion:constraintSetEnd="@id/end" motion:constraintSetStart="@id/start" motion:duration="1500" motion:motionInterpolator="linear"> <OnSwipe motion:dragDirection="dragUp" motion:touchAnchorId="@id/view1" motion:touchAnchorSide="top" /> </Transition> On MotionLayout for Compose ? I do not see the answear on both of those links : https://github.com/androidx/constraintlayout/wiki/Introduction-to-MotionLayout-in-Compose https://github.com/androidx/constraintlayout/wiki/Compose-MotionLayout-JSON-Syntax I would like to animate my scene only if I manually scroll, not by clicking on a button like ..

Read more