تابستون داره تموم میشه ها، فرصت‌ها محدودن کلی آفر جذاب در کمپین تابستون🔥👇
۰ ثانیه
۰ دقیقه
۰ ساعت
۱ احد معصومی
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>

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

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

پوریا شفیعی ۲۰ تیر ۱۳۹۹، ۱۸:۰۳