I have two android projects 1. Main Project 2. Library project. I am referring the Library project in my Main project. I have a fragment in Main Project which should use the layout(.xml) file in library project. How can I achieve this?
if you want to use it inside your code you can refer to it like this:
com.library_package.R.layout.library_layout
so for example you can inflate layout with:
LayoutInflater.from(context).inflate(com.library_package.R.layout.library_layout, this, true);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With