I've tried to put this code which was found here into my Class code but I couldn't get it to work. Here's the code I'm working with:
public class Details extends Fragment {
public void onCreate (Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.details, container, false);
return rootView;
}
}
If someone could guide me how/where to put the code in the Hyperlink to work with the code above in order for the Fragment to not rotate and stay in Portrait that would be extremely helpful for me to learn.
Thank you!