I need to implement Dialog for my Android app through Java code, so I can't use XML.
I have root LinearLayout
where I implement range seek bar, then I have another LinearLayout
under root layout, with horizontal orientation, where I want to add two buttons in same row. So I need to set weight to 1, and width to FILL_PARENT
and height to WRAP_CONTENT
.
How I can do that with Java code?