I am working on custom PreferenceScreen
, I have created a custom screen for the settings page using PreferenceActivity
.
Below is my preference screen.
Issue:- I need to change badge of Download data dynamically. I followed this question for achieve this layout. I already tried all answer of that question but not working single answer.
Is there any other way to find View which is inside preference?
settings.xml
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<Preference android:title="@string/settings_user_profile" android:key="user_profile" android:summary="@string/settings_user_profile_desc" android:layout="@layout/setting_list"></Preference>
<Preference android:title="@string/settings_download" android:key="download_data" android:summary="@string/settings_download_desc" android:layout="@layout/setting_list"></Preference>
</PreferenceScreen>