Skip to content

Instantly share code, notes, and snippets.

@kalvian1060
Created May 20, 2017 07:58
Show Gist options
  • Save kalvian1060/15b999885fd50faf95847fbed450b770 to your computer and use it in GitHub Desktop.
Save kalvian1060/15b999885fd50faf95847fbed450b770 to your computer and use it in GitHub Desktop.
Contoh Fragment 1 Tutorial
package id.kalviansofian.belajarfragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* Created by root on 20/05/17.
*/
public class ContohFragment1 extends Fragment{
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment1,container,false);
}
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment