🔥 ۴۰ درصد تخفیف ثبت‌نام دوره‌ها قبل از افزایش قیمت‌ها
۰ ثانیه
۰ دقیقه
۰ ساعت
۱ استاد افروزه نامور
framelayout
جامعه جاوا (اندروید) ایجاد شده در ۲۰ تیر ۱۳۹۹

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

ایا المنت 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>

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

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

مهندس رستم دیباج ۲۰ تیر ۱۳۹۹، ۱۸:۰۳