اذهب إلى المحتوى

Abdullha Mohammad

الأعضاء
  • المساهمات

    89
  • تاريخ الانضمام

  • تاريخ آخر زيارة

كل منشورات العضو Abdullha Mohammad

  1. انا اعيش في السعودية حاولت بعده طرق إثبات الهويه لم ينجح معي جرب الاقامه و الجواز أيضا رخصه السواقه بعد عدت محاوله ظهر لي هذا الصفحه؟
  2. هل في طريقه اخرا غير shared preferences اني احفظ فيه الصفحه واخليه يعرضه لي عند تشغيل التطبيق؟
  3. عرفت الإسم والمفتاح لوكل داخل Fragment 1 وثم في Main activity داخل onStart استدعيته بس نفس المشكله عند التشغيل يطلع شاشه ابيض
  4. سويت مثل ما قلت بس طلع لي activity فاضي عند التشغيل هذا كود الشاشه الرئيسية وفي Fragment حطيت الأكواد هذا بس غيرت في قيمه الاسم والمفتاح علي حسب الشاشه ا او ٢ او ٣ الخ... في كل Fragment
  5. طيب الحين انا ابيه يعرض لي آخر شاشه كنت فيه بعد ما أعيد فتح التطبيق ، اول شي احفظه اعمله editor.getString و ثمه اروح اسوي preferences.getString. احط كود الارتجاع في onPause و لا onStart او اتبع طريقه الأول الي علمتني فيه اعمل class و اعمل فيه return لل Fragment
  6. ليش يطلع لي خطئ عند استدعاء editor.getString
  7. Class initialActivityClass اعمل لك كلاس جديد ولا اقدر احطه داخل Main activity
  8. الحين اسوي حق كل Fragment داخله shared preferences ولا اسويه مره وحده في Main activity عشان يستديعه لما افتح التطبيق؟ ولا اسوي كل الأكواد داخل Main activity?
  9. مثلا عندي تطبيق وداخله ١٠ شاشه من نوع Fragments وقبل ما اطلع من التطبيق اكون فاتح الشاشه رقم ٨ مثلا فبعد ما افتح التطبيق مره ثاني ابيه يفتح لي دايركت علي الصفحه الي كنت فيه قبل ما اسكر التطبيق
  10. هذي تصميم تجريبي بس مايرضا يشتغل عندي <?xml version="1.0" encoding="utf-8"?> <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:id="@+id/rv_main" android:layout_height="match_parent" android:orientation="vertical" tools:context=".MainActivity"> <com.google.android.material.appbar.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:fitsSystemWindows="true" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" > <androidx.appcompat.widget.Toolbar android:layout_width="match_parent" android:layout_height="?actionBarSize" app:layout_collapseMode="pin" app:popupTheme="@style/Theme.AppCompat.Light"/> </com.google.android.material.appbar.AppBarLayout> <androidx.core.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/scroll" android:clipToPadding="false" app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" > <LinearLayout android:layout_margin="@dimen/activity_horizontal_margin" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <androidx.recyclerview.widget.RecyclerView android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/main_rv"/> </LinearLayout> </androidx.core.widget.NestedScrollView> <com.google.android.material.floatingactionbutton.FloatingActionButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|end" android:layout_margin="@dimen/main_fab_margin" android:background="@color/design_default_color_primary" android:src="@drawable/ic_launcher_foreground" tools:ignore="SpeakableTextPresentCheck" > </com.google.android.material.floatingactionbutton.FloatingActionButton> </androidx.coordinatorlayout.widget.CoordinatorLayout>
  11. ?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <androidx.cardview.widget.CardView app:cardCornerRadius="20dp" app:cardElevation="20dp" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="16dp" > <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:gravity="center" > <ImageView android:id="@+id/add" android:layout_width="match_parent" android:layout_height="250dp" android:layout_gravity="center" tools:srcCompat="@drawable/ic_launcher_background" /> <TextView android:id="@+id/textView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="16dp" android:text="cardview" android:textSize="30sp" /> </LinearLayout> </androidx.cardview.widget.CardView> </LinearLayou t>
  12. انا حاليا بره البيت عندي صوره بس ممكن مو واضح زين
  13. حطيت كل اكواد الازمه لما اشغل التطبيق ما يظهر لي الصوره
  14. تظهر هذا الشكل عند تحميل ملفات android x لا اعلم اين المشكله
  15. كلمت واحد قالي عندك مشكله في تثبيت sdk 8 يقولي ما ثبته زين عند تشغيل اندرويد استوديو
×
×
  • أضف...