![]() View view = inflater.inflate(R.agment1, container,false) ![]() public class Fragmentone extends Fragment View onCreateView(LayoutInflater inflater, ViewGroup container, Step 2: To customize a Fragment class, you need to inherit Fragment or its subclasses, override the onCreateView() method, which calls the inflater.inflate() method to load the layout file of Fragment, and then return the loaded view object. Step 1: Define the layout of fragments, which are what fragments display.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |