本文整理匯總了Java中android.preference.PreferenceActivity.Header方法的典型用法代碼示例。如果您正苦於以下問題:Java PreferenceActivity.Header方法的具體用法?Java PreferenceActivity.Header怎麽用?Java PreferenceActivity.Header使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.preference.PreferenceActivity
的用法示例。
在下文中一共展示了PreferenceActivity.Header方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onBuildHeaders
import android.preference.PreferenceActivity; //導入方法依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
public void onBuildHeaders(List<PreferenceActivity.Header> target)
{
loadHeadersFromResource(R.xml.pref_headers, target);
}
示例2: onBuildHeaders
import android.preference.PreferenceActivity; //導入方法依賴的package包/類
@Override
public void onBuildHeaders(List<PreferenceActivity.Header> target) {
loadHeadersFromResource(R.xml.pref_headers, target);
}
示例3: onBuildHeaders
import android.preference.PreferenceActivity; //導入方法依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
public void onBuildHeaders(List<PreferenceActivity.Header> target) {
loadHeadersFromResource(R.xml.pref_headers, target);
}
示例4: onBuildHeaders
import android.preference.PreferenceActivity; //導入方法依賴的package包/類
@Override
public void onBuildHeaders(List<PreferenceActivity.Header> target) {
loadHeadersFromResource(R.xml.pref_main_headers, target);
}
示例5: shouldLoadHeadersFromResourcesOnBuildingHeaders
import android.preference.PreferenceActivity; //導入方法依賴的package包/類
@Test public void shouldLoadHeadersFromResourcesOnBuildingHeaders(
@Mocked List<PreferenceActivity.Header> target) {
whenBuildingHeaders(target);
thenShouldLoadHeadersFromResources(target);
}
示例6: thenShouldLoadHeadersFromResources
import android.preference.PreferenceActivity; //導入方法依賴的package包/類
private void thenShouldLoadHeadersFromResources(final List<PreferenceActivity.Header> target) {
new Verifications() {{
mPreferenceActivity.loadHeadersFromResource(R.xml.pref_headers, target);
}};
}
示例7: whenBuildingHeaders
import android.preference.PreferenceActivity; //導入方法依賴的package包/類
private void whenBuildingHeaders(List<PreferenceActivity.Header> target) {
uut.onBuildHeaders(target);
}
示例8: PreferenceListAdapter
import android.preference.PreferenceActivity; //導入方法依賴的package包/類
public PreferenceListAdapter(List<PreferenceActivity.Header> headers, Context con){
mHeaders = headers;
context = con;
}
示例9: onBuildHeaders
import android.preference.PreferenceActivity; //導入方法依賴的package包/類
@Override
public void onBuildHeaders(List<PreferenceActivity.Header> target) {
MyLog.entry();
loadHeadersFromResource(R.xml.preference_headers, target);
MyLog.exit();
}
示例10: onBuildHeaders
import android.preference.PreferenceActivity; //導入方法依賴的package包/類
@TargetApi(11)
public void onBuildHeaders(List<PreferenceActivity.Header> paramList) {
if (!isSimplePreferences(this))
loadHeadersFromResource(R.xml.settings_headers, paramList);
}
示例11: onBuildHeaders
import android.preference.PreferenceActivity; //導入方法依賴的package包/類
@Override
public void onBuildHeaders(List<PreferenceActivity.Header> target)
{
loadHeadersFromResource(R.xml.preferences, target);
mHeaders = target;
}