フラグメント要素を作成しましたが、ウィジェットをどこにでも配置することはできません。ウィジェットは左上の角度に固定されています。フラグメント上に配置できない要素
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:context="layout.BlankFragment">
<!-- TODO: Update blank fragment layout -->
<ProgressBar
style="?android:attr/progressBarStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/progressBar5" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/hello_blank_fragment" />
<ProgressBar
style="?android:attr/progressBarStyle"
android:layout_width="282dp"
android:layout_height="259dp"
android:id="@+id/progressBar4" />
</FrameLayout>
なぜこの問題?これは私の最初のAndroidアプリケーションですが、通常のアクティビティを使用している場合は、そのポジションが機能します。
あなたのXMLを共有できます – AtaerCaner
はい、投稿されたXML =) – user3477026