You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I have to do to set margin to a LinearLayout?
I tried something like sample in your project:
FlowLayout.LayoutParams params = new FlowLayout.LayoutParams(FlowLayout.LayoutParams.wrap_content,FlowLayout.LAyoutParams.wrap_Content);
params.rightMargin = 10;
LinearLayout.setLayoutParams(params)
but nothing happened. If I use LinearLayout.LayoutParams it return a cast exception.
Can u please give me an help?
Thanks.
The text was updated successfully, but these errors were encountered:
If I have structure like this:
FlowLayout [ LinearLayout->TextView + ImageView]
What I have to do to set margin to a LinearLayout?
I tried something like sample in your project:
FlowLayout.LayoutParams params = new FlowLayout.LayoutParams(FlowLayout.LayoutParams.wrap_content,FlowLayout.LAyoutParams.wrap_Content);
params.rightMargin = 10;
LinearLayout.setLayoutParams(params)
but nothing happened. If I use LinearLayout.LayoutParams it return a cast exception.
Can u please give me an help?
Thanks.
The text was updated successfully, but these errors were encountered: