// Path: app/src/main/java/com/wanjian/sak/demo/a/fragment/with/a/very/very/very/longname/that/fragment/name/auto/scale/size/ContentFragment.java
// public class ContentFragment extends Fragment {
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//         TextView textView = new TextView(container.getContext());
//         int color = ((int) (Math.random() * Integer.MAX_VALUE)) | 0xFF000000;
//         textView.setBackgroundColor(color);
//         textView.setText(Integer.toHexString(color));
//         return textView;
//     }
// 
//     @Override
//     public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
//         super.onViewCreated(view, savedInstanceState);
//     }
// }


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;
import com.wanjian.sak.demo.a.fragment.with.a.very.very.very.longname.that.fragment.name.auto.scale.size.ContentFragment;
package com.wanjian.sak.demo;




public class SegmentFragment extends Fragment {
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return inflater.inflate(R.layout.segment_fragment, container, false);
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        view.setBackgroundColor(((int) (Math.random() * Integer.MAX_VALUE)) | 0xFF000000);
// Path: app/src/main/java/com/wanjian/sak/demo/a/fragment/with/a/very/very/very/longname/that/fragment/name/auto/scale/size/ContentFragment.java
// public class ContentFragment extends Fragment {
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//         TextView textView = new TextView(container.getContext());
//         int color = ((int) (Math.random() * Integer.MAX_VALUE)) | 0xFF000000;
//         textView.setBackgroundColor(color);
//         textView.setText(Integer.toHexString(color));
//         return textView;
//     }
// 
//     @Override
//     public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
//         super.onViewCreated(view, savedInstanceState);
//     }
// }


// Path: app/src/main/java/com/wanjian/sak/demo/SegmentFragment.java
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;
import com.wanjian.sak.demo.a.fragment.with.a.very.very.very.longname.that.fragment.name.auto.scale.size.ContentFragment;

package com.wanjian.sak.demo;




public class SegmentFragment extends Fragment {
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return inflater.inflate(R.layout.segment_fragment, container, false);
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        view.setBackgroundColor(((int) (Math.random() * Integer.MAX_VALUE)) | 0xFF000000);
        getChildFragmentManager().beginTransaction().replace(R.id.container, new ContentFragment()).commit();