Haha yeah I wont be using display once I have running what I want this was just a POC for something larger. Anyway I found the issue seems that even though I was trying to resize a LinearLayout because it was inside a FrameLayout my layout params had to be of type FrameLayout.... seems weird to me but I guess it makes sense in the measure child up the calls stack deal.
Tom On Feb 28, 7:42 pm, Mark Murphy <[email protected]> wrote: > Loki117 wrote: > > public void onAnimationEnd(Animation animation) > > { > > if(arrowUP){ > > > > arrow.setBackgroundResource(R.drawable.arrowdown); > > arrowUP = false; > > Display display = ((WindowManager) > > getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay(); > > mapHolder.setLayoutParams(new > > LinearLayout.LayoutParams(0,arrow.getHeight()-display.getHeight())); > > Ick. Do you really have to use Display? > > Since you didn't include a stack trace, I have no idea what the > ClassCastException would be on this last line. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

