android - ICS gui error on view size -
i building app has pop appear @ time takes ove screen , pauses background activity. on older versions of android pop view works fine, on ics top of pop cut off. have tried many things fix it, serves mess view in older versions of android. has else had such error? seems ics miscalculates size of screen , sets top of screen farther up.
viewgroup root = (viewgroup) parent.getwindow().peekdecorview(); viewgroup group = (viewgroup) root.getchildat(0); int title = 0; if (group.getchildat(0) instanceof viewgroup) title += group.getchildat(0).gettop(); this how figure out top of screen is. works in older android not ics.
i there easier way create popup. top of activity @ y = 0.
Comments
Post a Comment