How to draw a line dynamically in Android layout
问题 What I have done: What I am looking for: I do not care about design, but I do not know how to connect buttons to Main button with lines that are similar to the second image. Note: I am creating buttons dynamically. Thus, I do not use XML file as I do not know how many lines/buttons I will have. protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.second_layout); // RelativeLayout FirstLayout = (RelativeLayout)findViewById(R.id.second