本文整理汇总了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;
}