2017-02-17 4 views

답변

1

보기를 하위보기로 다른보기에 추가 한 후. 너는 이렇게 가야 해.

public void someMethod() { 
View parentView; 

View childView = (View)findViewById(R.id.my_view); 
parentView.addView(childView); 

// Now perform your calculations here. which you want to modify for childView. after that just call the invalidate() method to take changes effect. 

parentView.invalidate(); 
} 

희망이 도움이됩니다. 대답이 예상과 다를 경우 자유롭게 말할 수 있습니다.

관련 문제