How to dynamically inject LinearLayout multiple times (Android)?

Okay, I made a XML Layout file containing a + and - button, and a textView, I was able to inject it into my LinearLayout by using:\[code\] LinearLayout myLayout = (LinearLayout)findViewById(R.id.linearLayout2); View injecterLayout = getLayoutInflater().inflate(R.layout.newplayerlayout, myLayout, false); myLayout.addView(injecterLayout);\[/code\]But I would like to be able to inject it multiple times, so I have several +, -, and textView's is there any way to do that?
 
Back
Top