Note that there are some explanatory texts on larger screens.

plurals
  1. POCan I put one fragment into another fragment which is in FragmentActivity
    primarykey
    data
    text
    <p>I have a FragmentActivity this activity has a Fragment this Fragment consist from widgets and fragment which is defined in xml.</p> <p>When I start the activity it crashes </p> <pre><code>10-19 13:27:57.470: E/AndroidRuntime(16701): android.view.InflateException: Binary XML file line #43: Error inflating class fragment </code></pre> <p>Is it posible to have nested fragments, or I can put fragments only in FragmentActivity?</p> <p>EDIT: this is xml of fragment which is located in FragmentActivity ViewPager</p> <p>Programm crashes in this file on inflating</p> <pre><code> &lt;com.ssbs.sw.SWE.widget.SeekBarWidget android:id="@+id/pa_outlet_characteristics_trading_stocks" android:layout_width="match_parent" android:layout_height="wrap_content" android:max="999999" android:text="@string/label_outlet_characteristics_trading_stocks" /&gt; &lt;fragment android:id="@+id/pa_outlet_characteristics_spinners" android:layout_width="match_parent" android:layout_height="wrap_content" class="com.ssbs.sw.SWE.pure.outlet.pages.characteristics.view.components.SpinnersFragment" tools:layout="@layout/pf_characteristics_custperday_spinner" /&gt; &lt;com.ssbs.sw.SWE.widget.SpinnerWidget android:id="@+id/pa_outlet_characteristics_proximity_factor" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="?spinerBackground" widget:label="@string/label_outlet_characteristics_proximity_factor" widget:popupDialogTheme="@style/ActivityDialog" widget:spinnerTemplate="@layout/widget_spinner" /&gt; </code></pre> <p><b>UPDATE</b></p> <p>Support of nested fragments was added in support library from 11 version</p> <blockquote> <p>Support Package, revision 11 (November 2012) <br/> Changes for v4 support library:<br/> User Interface <br/> Added support for nested Fragment classes.<br/> Added improvements to FragmentManager debugging.<br/> .......</p> </blockquote> <p><a href="http://developer.android.com/about/versions/android-4.2.html#NestedFragments" rel="nofollow">Nested Fragments documentation</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload