My custom FragmentSettings()
extends android.preference.PreferenceFragment
and I simply add it in my activity.
I want to inflate (add) as well the layout.logo
which has gravity:bottom. However with my code the inflated layout.logo
is not visible. I guess because I use inflate()
with getFragmentManager()
? How can I correctly add a layout in this case?
public class ActivitySettings extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
FragmentSettings details = new FragmentSettings();
details.setArguments(getIntent().getExtras());
getFragmentManager().beginTransaction().add(android.R.id.content, details).commit();
getLayoutInflater().inflate(R.layout.logo, null );
}
}
PS: R.layout.logo
is an ImageView.