kiwix-android icon indicating copy to clipboard operation
kiwix-android copied to clipboard

Put Webview Controls in NavView

Open rgaudin opened this issue 5 years ago • 8 comments

Describe the bug There's a white line between bottom app nav and android nav

Expected behavior No space between those those navigation bars. Not that scrolling fixes it.

Steps to reproduce the behavior:

  1. Launch kiwix android
  2. launch a ZIM

Screenshots screen

Environment

  • Version of Kiwix Android : current develop branch
  • Device :
  • OS version : 5.1.1

rgaudin avatar Sep 15 '20 12:09 rgaudin

@rgaudin I can't find this bug in both my physical device and emulator. Both are running on 5.1. Do you see this bug in all 5.1.1 devices?

gouri-panda avatar Oct 04 '20 10:10 gouri-panda

I only have this device which is 5.1.1. I just checked that it's still present in current develop (though maybe #2411 could have fixed it)

rgaudin avatar Oct 05 '20 10:10 rgaudin

There is still the issue that this white line will appear when you scroll. @Frans-Lukas didn't we create a ticket to fine tune this animation further down the line? I couldn't find it searching the issues.

I mention it because it might be possible to get 2 birds with 1 stone. It might be messy but we we could put the webview controls in the bottom nav view and only show them on the reader fragment. A nasty trick but we can stop calculating heights and doing all this other stuff and this white line would be impossible and we would gain smooth animation on/off screen

macgills avatar Oct 06 '20 09:10 macgills

Basically making the bottom nav view double in height in the reader fragment? We never created a ticket, only mentioning it as a to-do. Another solution could be to make the background black behind the nav bars, but I prefer putting the controls in the nav bar.

Frans-Lukas avatar Oct 06 '20 09:10 Frans-Lukas

Ticket renamed, there will be some overhead with forwarding the events of the nav view, I imagine the readerFragment will implement some interface but overall I think we should see a decrease in lines of code, there is more than 1 ambiguous "ehhhh move the bar now" chunks about the place

macgills avatar Oct 06 '20 09:10 macgills

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

stale[bot] avatar Dec 06 '20 05:12 stale[bot]

Still there, at least on my Android6 tablet. image

kelson42 avatar Aug 30 '21 15:08 kelson42

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

stale[bot] avatar Jan 03 '22 21:01 stale[bot]

@rgaudin @macgills Inreally wonder if this big is still valid with latest code base? Even if still there, considering this is a very old version of Android, maybe this is not worse to investigate?

kelson42 avatar Jan 07 '23 17:01 kelson42

No idea. Have you tried with your android6 tablet to see if it's still present in latest release?

rgaudin avatar Jan 07 '23 18:01 rgaudin

I think it's still a valid bug. I haven't tested this but I'll test this after i get back.

gouri-panda avatar Jan 07 '23 18:01 gouri-panda

hi @kelson42 , @gouri-panda , yes this is a valid bug. I have tried to test with Nexus 10 tablet and the white line is still present there.

The white line is gone after scrolling.

Landscape Mode

Screenshot from 2023-01-10 14-28-18

Landscape mode after scolling

Screenshot from 2023-01-10 14-34-58

MohitMaliFtechiz avatar Jan 10 '23 09:01 MohitMaliFtechiz

@MohitMaliFtechiz Can you please fix it?

kelson42 avatar Jan 10 '23 09:01 kelson42

@kelson42 , yes, i'm working on it.

MohitMaliFtechiz avatar Jan 10 '23 10:01 MohitMaliFtechiz