Я хочу загрузить анимацию в моем приложении, но мое приложение в основном фрагментировано, и это мой код, пожалуйста, помогите мне, так как я хочу, чтобы первое, что увидит пользователь, это анимация, через некоторое время она исчезает
public class MainActivity extends AppCompatActivity implements MainFragment.OnFragmentInteractionListener,ParrablesFragment.OnParFragmentInteractionListener,TortoiseFragment.OnTorFragmentInteractionListener,AeroFragment.OnaeroFragmentInteractionListener,ValueFragment.OnvalFragmentInteractionListener,SecreteFragment.OnSecreteFragmentInteractionListener,
UglyFragment.OnUglyFragmentInteractionListener,ThreeFragment.OnThreeFragmentInteractionListener,PrincessFragment.OnPrincesFragmentInteractionListener,WiseFragment.OnWiseFragmentInteractionListener
,BadFragment.OnBadFragmentInteractionListener,BullyFragment.OnBullyFragmentInteractionListener,RashFragment.OnRashFragmentInteractionListener,SucessFragment.OnSucessFragmentInteractionListener,Page2Fragment.OnPage2FragmentInteractionListener,NewPageFragment.OnNewPFragmentInteractionListener
,Chapter2Fragment.OnChapterFragmentInteractionListener,LV1Fragment.OnLv1FragmentInteractionListener,LV2Fragment.OnLV2FragmentInteractionListener,LV3Fragment.OnLV3FragmentInteractionListener,LV4Fragment.OnLV4FragmentInteractionListener,LV5Fragment.OnLV5FragmentInteractionListener,LV6Fragment.OnLV6FragmentInteractionListener
,LV7Fragment.OnLV7FragmentInteractionListener,LV8Fragment.OnLV8FragmentInteractionListener,LV9Fragment.OnLV9FragmentInteractionListener,LV10Fragment.OnLV10FragmentInteractionListener,LV11Fragment.OnLv11FragmentInteractionListener,Lv12Fragment.OnLV12FragmentInteractionListener,LV13Fragment.OnLv13FragmentInteractionListener
,LV14Fragment.OnLV14FragmentInteractionListener,LV15Fragment.OnLV15FragmentInteractionListener,LV16Fragment.OnLV16FragmentInteractionListener,LV17Fragment.OnLV17FragmentInteractionListener,LV18Fragment.OnLV18FragmentInteractionListener,LV19Fragment.OnLV19FragmentInteractionListener,LV20Fragment.OnLV20FragmentInteractionListener
,LV21Fragment.OnLV21FragmentInteractionListener,LV22Fragment.OnLV23FragmentInteractionListener,LV23Fragment.OnLV22FragmentInteractionListener,AdventureFragment.OnADVENTUREFragmentInteractionListener,AV1Fragment.OnAV1FragmentInteractionListener,AV2Fragment.OnAV2FragmentInteractionListener,AV3Fragment.OnAV3FragmentInteractionListener
,AV4Fragment.OnAV4FragmentInteractionListener,AV5Fragment.OnAV5FragmentInteractionListener,AV6Fragment.OnAV6FragmentInteractionListener,AV7Fragment.OnAV7FragmentInteractionListener,AV8Fragment.OnAV8FragmentInteractionListener,AV9Fragment.OnAV9FragmentInteractionListener,AV1OFragment.OnAV10FragmentInteractionListener
,AV11Fragment.OnAV11FragmentInteractionListener,AV12Fragment.OnAV12FragmentInteractionListener,AV13Fragment.OnAV13FragmentInteractionListener,AV14Fragment.OnAV14FragmentInteractionListener,AV15Fragment.OnAV15FragmentInteractionListener,AV16Fragment.OnAV16FragmentInteractionListener,AV17Fragment.OnAV17FragmentInteractionListener
,AV18Fragment.OnAV18FragmentInteractionListener,AV19Fragment.OnAV19FragmentInteractionListener,AV20Fragment.OnAV20FragmentInteractionListener,AV21Fragment.OnAV21FragmentInteractionListener,AV22Fragment.OnAV22FragmentInteractionListener,Av23Fragment.OnAV23FragmentInteractionListener,AV24Fragment.OnAV24FragmentInteractionListener
,MysteryFragment.OnMysteryFragmentInteractionListener,MY1Fragment.OnMy1FragmentInteractionListener,M2Fragment.OnM2FragmentInteractionListener,M3Fragment.OnM3FragmentInteractionListener,M4Fragment.OnM4FragmentInteractionListener,M5Fragment.OnM5FragmentInteractionListener,M6Fragment.OnM6FragmentInteractionListener,M7Fragment.OnM7FragmentInteractionListener
,M9Fragment.OnM9FragmentInteractionListener,M8Fragment.OnM8FragmentInteractionListener,M10Fragment.OnM10FragmentInteractionListener,M11Fragment.OnM11FragmentInteractionListener,M12Fragment.OnM12FragmentInteractionListener,M13Fragment.OnM13FragmentInteractionListener,M14Fragment.OnM14FragmentInteractionListener
,M15Fragment.OnM15FragmentInteractionListener,M16Fragment.OnM16FragmentInteractionListener,M17Fragment.OnM17FragmentInteractionListener,M18Fragment.OnM18FragmentInteractionListener,M19Fragment.OnM19FragmentInteractionListener,M20Fragment.OnM20FragmentInteractionListener,M21Fragment.OnM21FragmentInteractionListener
,M22Fragment.OnM22FragmentInteractionListener,M23Fragment.OnM23FragmentInteractionListener,M24Fragment.OnM24FragmentInteractionListener{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
android.support.v4.app.FragmentManager manager = getSupportFragmentManager();
android.support.v4.app.Fragment fragment = manager.findFragmentById(R.id.fragment_container);
if (fragment == null) {
fragment = new MainFragment();
FragmentTransaction transaction = manager.beginTransaction();
transaction.add(R.id.fragment_container, fragment);
transaction.commit();
}
}