MainActivity =====================lista de livros
lstBook = new ArrayList<>();
lstBook.add(new Book,"","","","","","","")
lstBook.add(new Book,"","","","","","","")
lstBook.add(new Book,"","","","","","","")
lstBook.add(new Book,"","","","","","","")
lstBook.add(new Book,"","","","","","","")
BookActivity
tvtitle = (TextView) findViewById(R.id.txttitle);
tvdescription = (TextView) findViewById(R.id.txtDesc);
tvdescription01 = (TextView) findViewById(R.id.txtDesc01);
tvdescription02 = (TextView) findViewById(R.id.txtDesc02);
tvdescription03 = (TextView) findViewById(R.id.txtDesc03);
tvdescription04 = (TextView) findViewById(R.id.txtDesc04);
tvdescription05 = (TextView) findViewById(R.id.txtDesc05);
tvdescription06 = (TextView) findViewById(R.id.txtDesc06);
tvcategory = (TextView) findViewById(R.id.txtCat);
img = (ImageView) findViewById(R.id.bookthumbnail);
editsearch = (SearchView) findViewById(R.id.search);
// Recieve data
Intent intent = getIntent();
String Title = intent.getExtras().getString("Title");
String Description = intent.getExtras().getString("Description");
String Description01 = intent.getExtras().getString("Description01");
String Description02 = intent.getExtras().getString("Description02");
String Description03 = intent.getExtras().getString("Description03");
String Description04 = intent.getExtras().getString("Description04");
String Description05 = intent.getExtras().getString("Description05");
String Description06 = intent.getExtras().getString("Description06");
int image = intent.getExtras().getInt("Thumbnail");
// Setting values
tvtitle.setText(Title);
tvdescription.setText(Description);
tvdescription01.setText(Description01);
tvdescription02.setText(Description02);
tvdescription03.setText(Description03);
tvdescription04.setText(Description04);
tvdescription05.setText(Description05);
tvdescription06.setText(Description06);
img.setImageResource(image);
}
}
Tem o Adapter Book
como faço pra setar o editsearch na Book_Activity , ele é feito através de input da main_activity
String Description06 = intent.getExtras().getString(“Description06”); queria pesquisar aqui tenho que setar e estou pesquisando , comecei hoje.