question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix slowness of upload activity

See original GitHub issue

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?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
maskaravivekcommented, Feb 3, 2019

@ShridharGoel The first step would be to investigate the causes. It would be great if you could pick up a couple of points and post the findings of your investigation here. Once we are able to identify concrete reasons, we can create separate issues and fix them. 😃

I won’t be marking the issue as assigned as this issue would benefit from insights from multiple contributors. 😃

0reactions
maskaravivekcommented, Feb 26, 2019

I think we can UI as it is. Just split it into activities

  • UploadActivity >> that receives the images ie the first screen
  • CategorySelectionActivity >> that allows you to select categories
  • LicenseSelectionActivity that lets you select the license
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix slow upload speeds - Digital Trends
Upload speeds can be much slower, though, and if yours aren't fast enough, you may be wondering how you can fix your slow...
Read more >
Why is My Upload Speed Slow? How to Increase ... - Guru99
Upload speed becomes an important factor for online activities like video chatting, ... You can fix modem issues with a quick power cycle....
Read more >
Why Is My Upload Speed So Slow? Here's How To Fix It
Check for Latency · Getting Within Range of the Router · Reset the Router · Disconnect the Devices from the Wi-Fi Network ·...
Read more >
How To Fix Slow Upload Speed [5 Quick & Easy Methods]
What Causes Slow Upload Speeds? · You have outdated router drivers and firmware. · Too many people are connected to one network at...
Read more >
5 Reasons Why Your Internet Upload Speed is Slow (& How ...
There are many reasons why your upload speed is slow, but luckily, they can all be fixed! It can be as easy as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found