I have a simple button view, and set it as content view. Is it possible to resize this view programmaticly to "wrap_content"?
Button button = new Button(getContext());
button.setText("Some text");
setContentView(button);
You can not set LayoutParams
for a view without parent.