SufficientlySecure / donations

Donations library for Android. Supports Google Play Store, Flattr, PayPal, and Bitcoin
Apache License 2.0
347 stars 91 forks source link

Make donations__google_android_market_promt_array configurable #9

Closed anegrin closed 11 years ago

anegrin commented 11 years ago

donationsgoogle_android_market_promt_array should be configurable as donationsgoogle_catalog so it should not be the donationsgoogle_android_market_promt_array in lib resources but a string-array name d donationsgoogle_catalog_labels in donations__config.xml then:

        // choose donation amount
        mGoogleSpinner = (Spinner) getActivity().findViewById(
                R.id.donations__google_android_market_spinner);
        int nameResourceID = getActivity().getResources().getIdentifier("donations__google_catalog_labels", "array",
            getActivity().getApplicationInfo().packageName);

        ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(getActivity(),
            nameResourceID,
                android.R.layout.simple_spinner_item);
dschuermann commented 11 years ago

This is now possible with the new version.

anegrin commented 11 years ago

great!!! thanx.