I have created two textview and one editText in my second Custom ListView, i want to set value name , rate,quant in my custom listView one by one which is already show on Toast,also I have first listView which have 5 Value which i have to show on Second Custom listView on Button onClick() Event..
int count = lisView1.getAdapter().getCount();
for(int i=0;i<count;i++)
{
LinearLayout itemLayout = (LinearLayout)lisView1.getChildAt(i); // Find by under LinearLayout
TextView itemname = (TextView)itemLayout.findViewById(R.id.nm);
TextView rat = (TextView)itemLayout.findViewById(R.id.rat);
EditText quan = (EditText)itemLayout.findViewById(R.id.txtInput);
String rate = rat.getText().toString();
String quant = quan.getText().toString();
String name = itemname.getText().toString();
Toast.makeText(Mmnue.this,name + ", " + rate+ " , " +quant ,Toast.LENGTH_LONG).show();
}