framelayout

پرسیده شده
فعالیت 1386 روز پیش
دیده شده 518 بار
1

سلام خست نباشید

ایا المنت framelayout باید تگ root باشه؟

مثلا میتونه فرزند constrainlayout باشه؟

مثل این کد

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">
    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="top|center_horizontal"/>

    </FrameLayout>
    
  </androidx.constraintlayout.widget.ConstraintLayout>
فایل پیوست

احد معصومی
احد معصومی

20 تیر 99

1
حذف شده

سلام و وقت بخیر

بله چرا نتونه! تست کنین . :)

فایل پیوست

پوریا شفیعی

توسط

پوریا شفیعی

20 تیر 99