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

تظهر عندي مشكله في cardview

Abdullha Mohammad

السؤال

Recommended Posts

  • 0
بتاريخ 49 دقائق مضت قال بلال زيادة:

هل يمكنك إرفاق الكود الذي تتوقع أن تكون به مشكلة , حتى نستطيع مساعدتك بشكلٍ أفضل ؟ 

انا حاليا بره البيت عندي صوره بس ممكن مو واضح زين 

IMG_20211108_220659.jpg

IMG_20211108_220633.jpg

رابط هذا التعليق
شارك على الشبكات الإجتماعية

  • 0
بتاريخ الآن قال Abdullha Mohammad:

انا حاليا بره البيت عندي صوره بس ممكن مو واضح زين 

هل يمكنك إرفاق الكود بشكل كامل من غير صور ؟ لكي أستطيع الاطلاع عليه كاملاً . 

رابط هذا التعليق
شارك على الشبكات الإجتماعية

  • 0
بتاريخ 1 ساعة قال بلال زيادة:

هل يمكنك إرفاق الكود الذي تتوقع أن تكون به مشكلة , حتى نستطيع مساعدتك بشكلٍ أفضل ؟ 

تمام المسا راح ابعت لك الكود 

رابط هذا التعليق
شارك على الشبكات الإجتماعية

  • 0
بتاريخ 14 ساعات قال بلال زيادة:

هل يمكنك إرفاق الكود بشكل كامل من غير صور ؟ لكي أستطيع الاطلاع عليه كاملاً . 

?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>

رابط هذا التعليق
شارك على الشبكات الإجتماعية

  • 0
بتاريخ On 9‏/11‏/2021 at 20:56 قال Abdullha Mohammad:

?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>

بتاريخ On 9‏/11‏/2021 at 11:01 قال بلال زيادة:

هل يمكنك إرفاق الكود الذي تتوقع أن تكون به مشكلة , حتى نستطيع مساعدتك بشكلٍ أفضل ؟ 

ممكن ترد علي حضرتك 

رابط هذا التعليق
شارك على الشبكات الإجتماعية

  • 0
بتاريخ 4 ساعات قال Abdullha Mohammad:

ممكن ترد علي حضرتك 

حتى تظهر الصورة في ImageView نستخدم الخاصية src و نضع مسار الصورة التي نريد عرضها أنت لا تستخدمها حاول تعديل:

tools:srcCompat="@drawable/ic_launcher_background"

إلى

android:src="@drawable/ic_launcher_background"

ثم قم بعمل build مرة أخرى.

رابط هذا التعليق
شارك على الشبكات الإجتماعية

  • 0
بتاريخ On 11‏/11‏/2021 at 03:26 قال عبود سمير:

عندي مشكله في استخدام مكتبات android x وتصميم matarial  

انا قبل فتره كان عندي نفس المشكله وحليته بس الملف انمسح من عندي 

هذي تصميم تجريبي بس مايرضا يشتغل عندي 

 

<?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>

رابط هذا التعليق
شارك على الشبكات الإجتماعية

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...