Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to add views to linear layout?

It is possible to add views to Linear Layout one after another in upward direction.

if any one working on that,please help me

like image 349
kiran Avatar asked Apr 20 '11 13:04

kiran


1 Answers

You can add it programmatically with:

LinearLayout layout = (LinearLayout) findViewById(R.id.layout);
layout.addView(newView, index);

You just have to add always with index = 0

Is this the answer to your question?

like image 114
neteinstein Avatar answered Oct 08 '22 17:10

neteinstein