0

I need to get values from views such as textview , imageview, integer variable those views are in xml file integrated to iys activity java file , i need these values to be added to recycler view but as objects with values

For example textview + textview + textview + imageview aligned horizontally to each others. And all these aligned views to be considered as one item in the recycler or list to be able to add as many lines as i need

To be honest i searched the web and tried a lot of tutorials handling listviews and recycles but failed .. .. thanks in advance

  • What you have tried so far? – Arnold Brown Feb 19 '18 at 04:32
  • Are you asking, how to design an item xml for recycler adapter? – Arnold Brown Feb 19 '18 at 04:33
  • Thanks for replying back to me but am asking about how to implement it . I mean. I need to fill a recyclerview by data from another xml file.. – Bassam Kassem Feb 19 '18 at 09:12
  • What is from another xml file(what data in xml file)? – Arnold Brown Feb 19 '18 at 09:33
  • Values from three textview s and one imageview – Bassam Kassem Feb 19 '18 at 11:24
  • @Arnold Brown , I have tried a lot of methods and the one i think it will work is using a recyclerview and inside it i added a cardview then i added the needed textviews and imageview inside this cardview . And i can intent data from another activities to the desired one but i still not sure if the desired approach can be done or not – Bassam Kassem Feb 19 '18 at 14:13
  • For my fellows whom asked me what i have tried to work this out.. I tried this as workaround but it is not the best practice however it still has issues .. https://stackoverflow.com/questions/48876223/i-need-to-intent-imageview-resource-file-that-is-originally-passed-from-another – Bassam Kassem Feb 20 '18 at 01:16
  • Through intent what type of data are you passing ?.Did you receive the data at another end? – Arnold Brown Feb 20 '18 at 03:34
  • Amoung all your explanation you have to show some code snippet to show your issue even more clear... – Arnold Brown Feb 20 '18 at 03:37
  • Yes u received the String data but not the i.age one.. but this us just a workaround. – Bassam Kassem Feb 20 '18 at 09:04

0 Answers0