android - Floating label animation lag while using it in a scroll view -


i have layout floating text label / text input layout. while adding scrollview layout floating label animation lags in lower end (moto g) device. animation works fine without scroll view. below layout

<scrollview 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"> <linearlayout     android:orientation="vertical"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:focusableintouchmode="true"     android:gravity="center_horizontal"     tools:context=".activities.loginactivity"     >      <include         android:id="@+id/branding_text"         layout="@layout/branding_text"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_gravity="center_horizontal"         android:layout_margintop="48dp"         />      <android.support.v7.widget.cardview         android:id="@+id/loginlayout"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_gravity="center"         android:layout_marginend="16dp"         android:layout_marginstart="16dp"         android:layout_margintop="20dp"         android:visibility="gone"         app:cardelevation="4dp"         app:cardusecompatpadding="true"         tools:visibility="visible"         >           <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"             android:orientation="vertical"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:gravity="center"             android:padding="16dp"             >              <android.support.design.widget.textinputlayout                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 style="@style/textappearance.clinicalkey.floatlabel"                 >                  <edittext                     android:id="@+id/edit_username"                     android:layout_width="match_parent"                     android:layout_height="wrap_content"                     android:layout_gravity="center"                     android:hint="@string/account_username_hint"                     android:imeoptions="actionnext"                     android:inputtype="textnosuggestions"                     android:nextfocusdown="@+id/edit_password"                     android:singleline="true"                     />              </android.support.design.widget.textinputlayout>t>              <android.support.design.widget.textinputlayout                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 style="@style/textappearance.clinicalkey.floatlabel"                 >                  <edittext                     android:id="@+id/edit_password"                     android:layout_width="match_parent"                     android:layout_height="wrap_content"                     android:layout_gravity="center"                     android:hint="@string/account_password_hint"                     android:imeoptions="actiondone"                     android:imeactionid="@+id/action_sign_in"                     android:inputtype="textpassword"                     android:singleline="true"                     />              </android.support.design.widget.textinputlayout>              <linearlayout                 android:orientation="horizontal"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 >                  <button                     style="?android:borderlessbuttonstyle"                     android:id="@+id/btregister"                     android:layout_width="wrap_content"                     android:layout_height="wrap_content"                     android:layout_gravity="end"                     android:text="@string/register"                     android:textcolor="@color/accent"                     />                  <button                     style="?android:borderlessbuttonstyle"                     android:id="@+id/btlogin"                     android:layout_width="match_parent"                     android:layout_height="wrap_content"                     android:text="@string/login"                     android:textcolor="@color/primary"                     />              </linearlayout>               <button                 android:id="@+id/btforgotpassword"                 style="?android:borderlessbuttonstyle"                 android:textcolor="?attr/coloraccent"                 android:text="@string/reset_password"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 />           </linearlayout>       </android.support.v7.widget.cardview>      <com.lsjwzh.widget.materialloadingprogressbar.circleprogressbar         android:id="@+id/progress_bar"         style="@style/centerprogressbarstyle"         tools:visibility="gone"         />  </linearlayout> </scrollview> 


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -