Change Preference Summary

In Today’s post we are going to look at How to Change Summary of Edit Text Preference. But before moving ahead, if you want to know more about Preferences click here. First create a preference screen with only one preference EditTextPreference as show below in xml. Let us call this xml as setttings.xml <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="" > <EditTextPreference android:dialogTitle="Enter Name" android:key="name" android:summary="Enter Your Name" android:title="Edit Text Preference" /> </PreferenceScreen> As shown above we are creating EditTextPreference with key “name”.

Android Preferences

Most of applications have some setting which user can/needs to configure, and to do this setting a screen needs to be designed along with code to read the data and display and update the data back. In Android we can do this with minimum efforts via Preferences. Another advantage of using Android preference for application setting helps Android user because it will be uniform across the applications. In this article we will look at the standard Preference available i.