This is my view, and I wish to change layout_width to \"10dip\". How do I do so programmatically? Note, this is not a LinearLayout, it\'s a View.
You can set height and width like this also:
viewinstance.setLayoutParams(new LayoutParams(width, height));