I'm adding a fragment called ZipInputFragment within the XML file of one of my activity's.
<fragment android:id="@+id/zipCodeFragment" android:layout_gravity="center_horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" class="com.markf.application.ZipInputFragment" tools:layout="@layout/fragment_zip_input" />
This runs fine. The issue is that I have a separate package called non_activity where all of my fragments are stored. So when I place the ZipInputFragment in this package, my application crashes. I know that it's because of this line of code in my widget:
class="com.markf.application.ZipInputFragment"
The issue is that it's not acknowledging the fact that my Fragment is now in a separate package. Does anyone the syntax that would include my non_activity package in the widget? Thank you.
No comments:
Post a Comment