Office Hours — Today, July 2

Thursday, June 27

Mark M.
has entered the room
Mark M.
turned on guest access
Jul 2
10:05 AM
Peri H.
has entered the room
Mark M.
hello, Peri!
how can I help you today?
Peri H.
Hello Mark.
It's been a while. I have a couple issues which I've not made good headway.
One is a SO post - flicker from addView to Linear Layout
10:10 AM
Peri H.
So, I'm doing a simplified version of ListView. Which begs the question "why"? That's because I could not get ListView to optially call getView. I think my layers of views are the culprit - but I need them. The net effect is that getView was called many more times than necessary. Anyway back to addView.
The sequence is to call AddView to insert a view when the user scrolls the viewport up (swipes down). As he does this, we scroll off the top of the list, so addView must be called to insert a new view "just in time". At the same moment, I need to adjust the scroll position to compensate for the shift of other views.
Follow?
Mark M.
not especially, and I can all but guarantee that I will be of no use on your question
this level of custom views is outside my areas of expertise
Peri H.
Ok, let's try question 2.
I have had trouble with Eclipse and Android SDK installations for many months. The problem is that my jar apparently doesn't exactly match the source code.
Mark M.
what JAR?
10:15 AM
Mark M.
and what source code?
10:15 AM
Peri H.
So, when I debug into Android source, the instruction pointer ends up some number of lines off the actual code.
Mark M.
oh
Peri H.
The Android JAR
Se
Mark M.
AFAIK, this will only work if you are running on an emulator (or ROM) that happens to use a framework.jar that matches whatever source you have attached
I have never attached the Android source to Eclipse, so there may be some additional tricks here of which I am unaware
Peri H.
I don't follow. Are you saying that each OEM modifies the Android source - not just the skins?
Mark M.
oh, absolutely
that's the whole point behind the CDD and CTS -- to make sure they do not screw up too badly when making such modifications
Peri H.
Is there any way to get matching source? I'm mostly using a Nexus 7.
Mark M.
I have no idea, sorry
Peri H.
What's CDD and CTS?
Mark M.
CDD = Compatibility Definition Document
CTS = Compatibility Test Suite
Peri H.
Ah. Ok, thanks for now.
Have a good day, Mark.
Mark M.
you too!
Peri H.
has left the room
11:00 AM
Mark M.
turned off guest access

Thursday, June 27

 

Office Hours

People in this transcript

  • Mark Murphy
  • Peri Hartman