I found answer by trying :)
We should load stuff before inflating an xml activity :) because it only loads xml activity file . So all other stuff in xml's java file won't include. :)
So we need to load these stuff before inflating.
Like this...
Before :
if (i == 2 )
{
slidepane = inflater.inflate(R.layout.activity_settings, container, false);
}
after :
if (i == 2 )
{
// load all stuff here
// like an listview things :)
// or custom libraries stuff
// and then load them here again :)
slidepane = inflater.inflate(R.layout.activity_settings, container, false);
}