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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -