Coder Social home page Coder Social logo

Comments (3)

sganti564 avatar sganti564 commented on June 12, 2024

gradle file.

apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25"

defaultConfig {
    applicationId "com.example.android.materialdesigncodelab"
    minSdkVersion 19
    targetSdkVersion 25
    versionCode 3
    versionName "1.0"
    vectorDrawables.useSupportLibrary = true
}
buildTypes {
    debug {
        debuggable true
    }
}

}

dependencies {
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.1gravity:android-contactpicker:1.2.0'
}

from android-contactpicker.

sganti564 avatar sganti564 commented on June 12, 2024

Intent intent = new Intent(DetailActivity.this, ContactPickerActivity.class) .putExtra(ContactPickerActivity.EXTRA_THEME, R.style.AppTheme) .putExtra(ContactPickerActivity.EXTRA_CONTACT_BADGE_TYPE, ContactPictureType.ROUND.name()) .putExtra(ContactPickerActivity.EXTRA_SHOW_CHECK_ALL, true) .putExtra(ContactPickerActivity.EXTRA_SELECT_CONTACTS_LIMIT, 0) .putExtra(ContactPickerActivity.EXTRA_ONLY_CONTACTS_WITH_PHONE, false) .putExtra(ContactPickerActivity.EXTRA_CONTACT_DESCRIPTION, ContactDescription.ADDRESS.name()) .putExtra(ContactPickerActivity.EXTRA_CONTACT_DESCRIPTION_TYPE, ContactsContract.CommonDataKinds.Email.TYPE_WORK) .putExtra(ContactPickerActivity.EXTRA_CONTACT_SORT_ORDER, ContactSortOrder.AUTOMATIC.name()); startActivityForResult(intent, REQUEST_CONTACT);

from android-contactpicker.

1gravity avatar 1gravity commented on June 12, 2024

Please read the readme part about theming and define the attributes:

Theming

The library supports a dark and a light theme out-of-the-box. In order to do that, it defines a couple of custom attributes in attrs.xml. To integrate the contact picker in your app, you need to either extend one of the contact picker themes (ContactPicker_Theme_Light / ContactPicker_Theme_Dark) or define the custom attributes in your own theme.

from android-contactpicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.