Android: How to resize a custom view programmatically?
Posted
by herbertD
on Stack Overflow
See other posts from Stack Overflow
or by herbertD
Published on 2010-06-03T03:28:32Z
Indexed on
2010/06/03
3:34 UTC
Read the original article
Hit count: 348
Hi all!
I am coding a custom view, extended from RelativeLayout, and I want to resize it programmatically, How can I do?
the custom view Class is something like:
public ActiveSlideView(Context context, AttributeSet attr){
super(context, attr);
LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
if(inflater != null){
inflater.inflate(R.layout.active_slide, this);
}
© Stack Overflow or respective owner