android.support.v7.widget.ContentFrameLayout Java Examples

The following examples show how to use android.support.v7.widget.ContentFrameLayout. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProxyActivity.java    From FastWaiMai with MIT License 5 votes vote down vote up
private void initContainer(@Nullable Bundle savedInstanceState){
    final ContentFrameLayout container = new ContentFrameLayout(this);
    container.setId(R.id.delegate_container);
    setContentView(container);
    if(savedInstanceState == null){
        DELEGATE.loadRootFragment(R.id.delegate_container, setRootDelegate());
    }
}
 
Example #2
Source File: HomeActivity.java    From ClassSchedule with Apache License 2.0 5 votes vote down vote up
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    @SuppressLint("RestrictedApi")
    ContentFrameLayout contentFrameLayout = new ContentFrameLayout(this);
    setContentView(contentFrameLayout);

    ActivityUtil.replaceFragmentToActivity(getSupportFragmentManager(),
            HomeFragment.newInstance(), android.R.id.content);
}
 
Example #3
Source File: ProxyModeFragmentActivity.java    From SoftKeyboardUtil with Apache License 2.0 5 votes vote down vote up
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    final ContentFrameLayout container = new ContentFrameLayout(this);
    container.setId(R.id.delegate_container);
    setContentView(container);

    FragmentManager fragmentManager = getSupportFragmentManager();
    FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
    ExampleFragment fragment = new ExampleFragment();
    fragmentTransaction.replace(R.id.delegate_container, fragment);
    fragmentTransaction.commit();

    mFragmentOnTouchMng = FragmentOnTouchMng.newInstance();
}
 
Example #4
Source File: AppCompatv7DSL.java    From anvil with MIT License 4 votes vote down vote up
public static BaseDSL.ViewClassResult contentFrameLayout() {
  return BaseDSL.v(ContentFrameLayout.class);
}
 
Example #5
Source File: AppCompatv7DSL.java    From anvil with MIT License 4 votes vote down vote up
public static Void contentFrameLayout(Anvil.Renderable r) {
  return BaseDSL.v(ContentFrameLayout.class, r);
}
 
Example #6
Source File: AppCompatv7DSL.java    From anvil with MIT License 4 votes vote down vote up
public static Void attachListener(ContentFrameLayout.OnAttachListener arg) {
  return BaseDSL.attr("attachListener", arg);
}