android - Adding button in preferencescreen added in xml folder -


this question has answer here:

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:

www.stackoverflow.com/q/2697233/1908328


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -