Use your fully-qualified class name (e.g.,
com.dashman.MySuperEditTextPreference) as the element name instead of
EditTextPreference.

On Tue, May 17, 2011 at 7:01 AM, dashman <[email protected]> wrote:
> ok i've decided to go that route.
>
> i can sub-class and test the different methods.
>
> the preference activity is based on an xml file.
>
>            <EditTextPreference
>                                android:key="emp_id"
>                                android:title="@string/pref_empid"
>                                android:singleLine="true" />
>
> how do i tell it to use my EditTextPreference sub-class.
>
>
>
> On May 16, 8:24 pm, Nicholas Johnson <[email protected]> wrote:
>> I'm not a 100% on this, but I would try and extend the EditTextPreference
>> and add the encryption code there. You would have to override the Preference
>> methods such as onSetInitialValue, onBindView, persistString, etc.
>>
>> I've never done this, but that'd be my best guess.
>>
>> Nick
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 3.4 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to