I want to use the sdp unit (sdp (scalable dp). It can help Android developers with supporting multiple screens) in my Android Xamarin project and it is available only on GitHub.
On github, they proposed to add sdp using build.gradle which is not available in Xamarin. So how can I integrate and use this library in my project on Visual studio (xamarin) ? Link to the library on GitHub: the library
There is no code and only "resources" in com.intuit.sdp:sdp-android, so while you could create a Xamarin.Android binding library for the sdp AAR file, it would be more efficient to just copy those resources from the GitHub project to a Xamarin.Android application/library project:
Android Studio/gradle project:
└── res
├── layout
│ ├── dp_example.xml
│ └── sdp_example.xml
├── values
│ ├── negative_sdps.xml
│ └── positive_sdps.xml
~~~~~
└── values-sw780dp
├── negative_sdps.xml
└── positive_sdps.xml
Xamarin.Android project:
└── Resources
├── layout
│ ├── dp_example.xml
│ └── sdp_example.xml
├── values
│ ├── negative_sdps.xml
│ └── positive_sdps.xml
~~~~~
└── values-sw780dp
├── negative_sdps.xml
└── positive_sdps.xml
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