-1

I am trying to manage my (native) android application code.For that reason i have been working and create modular approach in which i have already done with my library projects of db , json parser and data models. But when i am trying to do it with view adapters there is the involvment of R file for getting views id. So, is there any other way so that i can manage my android listview adapter. or there is the way to pass the R file complete.

Thanks in advance.

Danial Hussain
  • 2,488
  • 18
  • 38

1 Answers1

1

You can't pass R from app project to library it is meaningless.

You can pass to adapter id itself. adapter.setViewIds(R.layout.item, R.id.textView, R.id.title)

Or, you can create ids in library projects.

konmik
  • 3,150
  • 19
  • 15