Mike Herasimov
Mike Herasimov

Reputation: 1359

Android usage PreferenceFragment in old platforms

In my app I need provide this screen for tablets.

enter image description here

So when I choose Setings from ListFragment I need add appropriative fragment to activity e.g. PreferenceFragment, but there is no PreferenceFragment in support library.

Is there any "legal" way to use PreferenceFragment in platforms olter than 11 API level? Of cause there are projects on GitHub, which adding PreferenceFragment to android.support.v4.app.. For example that.

But usage of project like this is a good idea or not? Is there a better way to accomplish this?

EDIT

However I use sw to provide differend screens and it starts from the 3.2 version e.g. API level 13 and PreferenceFragment starts from API level 11. So as far as I see I think that will be enought provide PreferenceFragment for tablets and PreferenceActivity for handsets.

Upvotes: 0

Views: 61

Answers (1)

M. Erfan Mowlaei
M. Erfan Mowlaei

Reputation: 1436

I guess these are what you might be looking for:

PreferenceFragment-Compat

Android-support-v4-preferencefragment

Upvotes: 1

Related Questions