Android Tutorial for Beginners 22 # Fragments in Android - Part 1
11 | 1<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
11 | 1<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
11 | 1<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
11 | 1package com.example.programmingknowledge.fragmentexample; |
import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class FragmentTwo extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_fragment_two, container, false);
}
}
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class FragmentTwo extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_fragment_two, container, false);
}
}
11 | 1package com.example.programmingknowledge.fragmentexample; |
Android Tutorial for Beginners 22 # Fragments in Android - Part 1
Reviewed by Mursal Zheker
on
Jumat, Maret 20, 2015
Rating:

Tidak ada komentar: