I am using an "include" layout that is part of a fragment. Here is where I inflate the layout that includes the "include" (and below it is the layout itself):
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.hourly_fragment, null);
return v;
}
hourly_fragment.xml
<include
android:id="@+id/visualization"
style="@style/Visualization"
android:layout_width="match_parent"
layout="@layout/visualization_with_spinner" />
<include
android:layout_width="match_parent"
android:layout_height="match_parent"
layout="@layout/list_fragment" />
<include
android:id="@+id/hourly_amazon_details"
android:layout_width="match_parent"
android:layout_height="match_parent"
layout="@layout/amazon_details" />
I can access the items in the other 2 included layouts, but not from the "amazon_details" layout....any ideas why?