title: Android: Dynamically add two custom checkboxes in a same line
body: <p>What should I do to use custom checkboxes if I add my checkboxes dynamically in my code? (On the java code not on the XML files.) . Like I want to add two checkbox in a single line in linear layout based on the response from server dynamically. ![This image explain my requirement][1].
  [1] :<a href="https://stackoverflow.com/66778d9f-ae68-408a-a0f9-bc0af3e99c7a">https://stackoverflow.com/66778d9f-ae68-408a-a0f9-bc0af3e99c7a</a></p>