droidkiranmai / openintents

Automatically exported from code.google.com/p/openintents
0 stars 0 forks source link

OI Notepad: Marquee feature does not work properly #405

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In OI Notepad, turn on Marquee in settings.
2. Enter a few notes with long titles.

What is the expected output? What do you see instead?
* In Android 4.0 emulator everything works as expected, there is only one issue:
* If you switch to settings, change the marquee setting, and press back, the 
change is not visible immediately. One has to leave the application and start 
OI Notepad again.

* In Android 2.3.3, on the emulator and on a Nexus One 2.3.6 the marquee text 
black, on black background, and can't be seen. (see issue 266 for a 
screenshot). It seems this can not be reproduced by all.

Possible solutions:
* Find out why this fails.
* If there is no solution (link to web sites where this problem is discussed, 
without solution), then there is always the solution to deactivate the feature.

The final feature should be tested in various Android versions (1.6, 2.x, 3.x, 
4.0).

See issue 266.

Original issue reported on code.google.com by peli0...@googlemail.com on 23 Nov 2011 at 1:44

GoogleCodeExporter commented 9 years ago
This might be the problem, or something similar to it:

[From a Google I/O 2010 presentation on listviews]

Gotcha

My list turns black?!

• Very useful optimization

– When scrolling views are cached in bitmaps

– Opaque bitmaps to avoid blending

• Solution

– android:cacheColorHint=”#00000000”

– android:cacheColorHint=”@color/myBackgroundColor”

Original comment by aviraldg on 30 Nov 2011 at 2:59

GoogleCodeExporter commented 9 years ago
I would like to work on this for a task in Google Code In:
http://www.google-melange.com/gci/task/view/google/gci2011/7134322

Original comment by dtvri...@gmail.com on 28 Dec 2011 at 6:58

GoogleCodeExporter commented 9 years ago
I just confirmed that it works properly also on Android 3.2, so it seems to be 
a problem of Android 2.3.x and below.

Also, in order to reproduce this, one may need a long list of notes and start 
scrolling. I had an incidence where I first could see the note titles, but when 
I started scrolling up and down repeatedly, more and more note titles vanished 
(in Android 2.3.6, Nexus One).

Original comment by peli0...@googlemail.com on 31 Dec 2011 at 6:14

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r3965.

The first problem mentioned for Android 4.0 is solved:

The issue is mentioned in the page of issue #405:
"If you switch to settings, 
change the marquee setting, and press back, the change is not visible 
immediately. One has to leave the application and start OI Notepad again."

Steps to reproduce the problem:

Open notepad application
- create one note with longer title
- menu-> settings -> enable/or disable marquee setting 
- Hit Back, view switch to notepad again from setting
 - look at the title of the note, marquee setting is not take effect, 
- but if you close notepad application and open it again, marquee is observed 
for note title.

Root cause:
Marquee handling for title is in constructor, but the constructor is not 
getting called when the view is changed back from Settings to the notepad 
application. This causes the 
 marquee setting to not take effect after switching back from Settings to the notepad view.

Solution:
Move the marquee handling constructor to hasFocus(), which is called whenever 
the notepad view gets focus.

Verification:

1. Enable/disable marquee from Settings, go back to the notepad view, marquee 
enable/disable should be observed on title
2. Enable/disable marquee from Settings, close notepad application, open 
notepad application again, marquee enable/disable should be observed on title

Original comment by peli0...@googlemail.com on 1 Jan 2012 at 7:22