allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.MrAdkhambek:PCP:$lastVersion'
}
val pcpView = findViewById<PcpView>(R.id.pcp_view)
pcpView.value // String
<mr.adkhambek.pcp.PcpView
app:hideArrow="true"
app:hideFlag="true"
app:hideCountryName="true" />
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Add this snippets with your custom colors -->
<item name="pcpTextColor">@android:color/white</item>
<item name="pcpArrowColor">@android:color/white</item>
</style>