mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-12 12:05:08 +08:00
fix crash caused by layoutanimationcontroller
This commit is contained in:
parent
e56f078fdd
commit
bcfbfc126e
@ -72,6 +72,7 @@ Animation* AnimationUtils::loadAnimation(Context* context,const std::string&resi
|
||||
}
|
||||
|
||||
LayoutAnimationController* AnimationUtils::loadLayoutAnimation(Context* context,const std::string&resid){
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Animation* AnimationUtils::makeInAnimation(Context* c, bool fromLeft){
|
||||
|
@ -79,7 +79,7 @@ bool ViewGroup::DEBUG_DRAW = false;
|
||||
|
||||
ViewGroup::ViewGroup(Context*ctx,const AttributeSet& attrs):View(ctx,attrs){
|
||||
initGroup();
|
||||
initFromAttributes(ctx,attrs);
|
||||
initFromAttributes(ctx,attrs);
|
||||
}
|
||||
|
||||
ViewGroup::ViewGroup(int w,int h)
|
||||
@ -126,8 +126,8 @@ void ViewGroup::initGroup(){
|
||||
}
|
||||
|
||||
void ViewGroup::initFromAttributes(Context*ctx,const AttributeSet&atts){
|
||||
setClipChildren(atts.getBoolean("clipChildren",false));
|
||||
setClipToPadding(atts.getBoolean("clipToPadding",false));
|
||||
setClipChildren(atts.getBoolean("clipChildren",true));
|
||||
setClipToPadding(atts.getBoolean("clipToPadding",true));
|
||||
//setAnimationCacheEnabled
|
||||
std::string resid=atts.getString("layoutAnimation");
|
||||
setLayoutAnimation(AnimationUtils::loadLayoutAnimation(ctx,resid));
|
||||
|
@ -119,7 +119,8 @@ View& Window::setSize(int cx,int cy){
|
||||
}
|
||||
|
||||
void Window::onFinishInflate(){
|
||||
requestLayout();
|
||||
requestLayout();
|
||||
startLayoutAnimation();
|
||||
}
|
||||
|
||||
Canvas*Window::getCanvas(){
|
||||
|
Loading…
Reference in New Issue
Block a user