سلام دوستان
ایا با این کتابخانه کار کردید ؟
https://github.com/ihsanbal/SlidingIntoView
من اومدم داخل ماین اکتیویتی دستورات زیر رو نوشتم
IntroView mIntroView; mIntroView=findViewById(R.id.intro_view);
mIntroView.init(getSupportFragmentManager(),
getResources().getStringArray(R.array.titles),
getResources().getStringArray(R.array.texts),
R.drawable.istanbul_wp, R.drawable.rize_wp, R.drawable.diyarbekir_wp, R.drawable.izmir_wp);
و داخل لایوتش :
<com.ihsanbal.introview.IntroView android:id="@+id/intro.view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:paddingTextLeft="14dp"
app:paddingTextRight="14dp"
app:paddingTitleLeft="14dp"
app:paddingTitleRight="14dp"
app:paddingTitleTop="30dp"
app:scaleType="center"
app:scrollDelay="5000"
app:scrollDuration="5"
app:textColor="#fc2f2f"
app:textSize="7sp"
app:titleTextColor="#ffffff"
app:titleTextSize="13sp" />
اما متاسفانه وقتی برنامه اجرا میشه بسته میشه و خطای زیر ظاهر میشه :
Fragment com.ihsanbal.introview.FragmentPage must be a public static class to be properly recreated from instance state
ممنون میشوم در اینباره راهنمایی کنید..انگار بایستی یک فرگمنت استاتیک ایجاد کنم اما هرکار کردم نتونستم