android - Adding button in preferencescreen added in xml folder -
this question has answer here:
- how add button preferencescreen 9 answers
i have created preference screen below data, want add button, how can add button in preference screen. tried using button directly in code gave exception. please me out this.
<preferencecategory android:title="all numbers"> <switchpreference android:key="switch_key" android:defaultvalue="false" android:disabledependentsstate="true" android:title="block calls:"/> </preferencecategory> <preferencecategory android:title="individual numbers"> <switchpreference android:key="individual_number" android:defaultvalue="false" android:dependency="switch_key" android:title="block selected calls:"/> <edittextpreference android:title="number 1" android:dependency="individual_number" android:key="first_number" android:inputtype="number"/> </preferencecategory>
got resolution below question:
Comments
Post a Comment