Shared Element Transition Android -


android shared element button transition cause whole screen background color button background color, shown in gif

while after removing button background transition works fine, shown in gif

am using button theme style

<style name="defaultbutton" parent="widget.appcompat.button.colored">     <item name="android:textcolor">@color/colorprimarytext</item>     <item name="colorbuttonnormal">@color/colorprimary</item> </style> 

and button code

 <button         android:id="@+id/btnlogin"         android:layout_width="0dp"         android:layout_height="66dp"         android:layout_marginend="60dp"         android:layout_marginleft="60dp"         android:layout_marginright="60dp"         android:layout_marginstart="60dp"         android:layout_margintop="55dp"         android:text="sign in"         android:textsize="22sp"         android:transitionname="@string/btnsignintransition"         android:theme="@style/defaultbutton"         app:layout_constrainthorizontal_bias="0.0"         app:layout_constraintleft_toleftof="parent"         app:layout_constraintright_torightof="parent"         app:layout_constrainttop_tobottomof="@+id/edtpassword" /> 


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -