Skip to content

MrAdkhambek/PCP

Repository files navigation

PCP (Phone code picker)

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

Custom atributies

    <mr.adkhambek.pcp.PcpView
        app:hideArrow="true"
        app:hideFlag="true"
        app:hideCountryName="true" />

You must add this snippets your code

    <!-- 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>

Image

Image

Image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages