Skip to content

Fix slowness of upload activity #2402

Open
@maskaravivek

Description

@maskaravivek

I am using a decent Android phone and expect the app to run smoothly. But on the upload screen, I experience a noticeable lag in UI rendering. PFA the video:

https://drive.google.com/file/d/1ZMUt4RkxMlPFZcN1oKxxN5TacIYL_GOn/view?usp=sharing

The upload experience should be as smooth as possible. How can we improve the UI rendering?

  • Is there too much nesting of elements ie. too many View elements making the UI slow?
  • Is the keyboard forced to hide/show too many times? In the video its apparent that the lag is while changing the focus of EditText
  • The bottom card uses HeightLimitedRecyclerView which internally overrides onMeasure. Is it causing issues?
  • The background of the screen is rendering a full size Bitmap. Is it causing performance issues?
  • The screen uses Viewflipper and has a total of 4 child views. Would it be better to have individual activities/fragments for each of them?
  • Is the EditText for Title and Description attached to too many event listeners?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions