Java Code Examples for android.widget.LinearLayout#setFitsSystemWindows()
The following examples show how to use
android.widget.LinearLayout#setFitsSystemWindows() .
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: ChildSceneLifecycleCallbacksDemoScene.java From scene with Apache License 2.0 | 6 votes |
@NonNull @Override public ViewGroup onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { LinearLayout layout = new LinearLayout(getActivity()); layout.setOrientation(LinearLayout.VERTICAL); TextView textView = new TextView(getActivity()); textView.setText(R.string.lifecycle_callback_tip); layout.addView(textView); textView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { getNavigationScene().push(EmptyScene0.class); } }); layout.setBackgroundColor(ColorUtil.getMaterialColor(getResources(), 1)); layout.setFitsSystemWindows(true); return layout; }
Example 2
Source File: ChildSceneLifecycleCallbacksDemoScene.java From scene with Apache License 2.0 | 6 votes |
@NonNull @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { LinearLayout layout = new LinearLayout(getActivity()); layout.setOrientation(LinearLayout.VERTICAL); TextView textView = new TextView(getActivity()); textView.setText(getNavigationScene().getStackHistory()); layout.addView(textView); textView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { getNavigationScene().push(EmptyScene1.class); } }); layout.setBackgroundColor(ColorUtil.getMaterialColor(getResources(), 1)); layout.setFitsSystemWindows(true); return layout; }
Example 3
Source File: ChildSceneLifecycleCallbacksDemoScene.java From scene with Apache License 2.0 | 6 votes |
@NonNull @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { LinearLayout layout = new LinearLayout(getActivity()); layout.setOrientation(LinearLayout.VERTICAL); TextView textView = new TextView(getActivity()); textView.setText(getNavigationScene().getStackHistory()); layout.addView(textView); textView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { } }); layout.setBackgroundColor(ColorUtil.getMaterialColor(getResources(), 1)); layout.setFitsSystemWindows(true); return layout; }
Example 4
Source File: Case4Scene.java From scene with Apache License 2.0 | 6 votes |
@NonNull @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { LinearLayout layout = new LinearLayout(getActivity()); layout.setOrientation(LinearLayout.VERTICAL); TextView textView = new TextView(getActivity()); textView.setText(getNavigationScene().getStackHistory()); layout.addView(textView); layout.setBackgroundColor(ColorUtil.getMaterialColor(getResources(), 1)); layout.setFitsSystemWindows(true); getNavigationScene().push(EmptyScene1.class); return layout; }
Example 5
Source File: Case4Scene.java From scene with Apache License 2.0 | 6 votes |
@NonNull @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { LinearLayout layout = new LinearLayout(getActivity()); layout.setOrientation(LinearLayout.VERTICAL); TextView textView = new TextView(getActivity()); textView.setText(getNavigationScene().getStackHistory()); layout.addView(textView); layout.setBackgroundColor(ColorUtil.getMaterialColor(getResources(), 2)); layout.setFitsSystemWindows(true); return layout; }
Example 6
Source File: Case4Scene.java From scene with Apache License 2.0 | 6 votes |
@NonNull @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { LinearLayout layout = new LinearLayout(getActivity()); layout.setOrientation(LinearLayout.VERTICAL); TextView textView = new TextView(getActivity()); textView.setText(getNavigationScene().getStackHistory()); layout.addView(textView); layout.setBackgroundColor(ColorUtil.getMaterialColor(getResources(), 3)); layout.setFitsSystemWindows(true); getNavigationScene().pop(); return layout; }
Example 7
Source File: Case0Scene.java From scene with Apache License 2.0 | 6 votes |
@NonNull @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { LinearLayout layout = new LinearLayout(getActivity()); layout.setOrientation(LinearLayout.VERTICAL); TextView textView = new TextView(getActivity()); textView.setText(getNavigationScene().getStackHistory()); layout.addView(textView); layout.setBackgroundColor(ColorUtil.getMaterialColor(getResources(), 1)); layout.setFitsSystemWindows(true); return layout; }
Example 8
Source File: Case0Scene.java From scene with Apache License 2.0 | 6 votes |
@NonNull @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { LinearLayout layout = new LinearLayout(getActivity()); layout.setOrientation(LinearLayout.VERTICAL); TextView textView = new TextView(getActivity()); textView.setText(getNavigationScene().getStackHistory()); layout.addView(textView); layout.setBackgroundColor(ColorUtil.getMaterialColor(getResources(), 2)); layout.setFitsSystemWindows(true); return layout; }
Example 9
Source File: Case5Scene.java From scene with Apache License 2.0 | 6 votes |
@NonNull @Override public ViewGroup onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { LinearLayout layout = new LinearLayout(getActivity()); layout.setOrientation(LinearLayout.VERTICAL); layout.setBackgroundColor(Color.BLACK); FrameLayout frameLayout0 = new FrameLayout(requireActivity()); frameLayout0.setId(ID_0); layout.addView(frameLayout0, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 100)); FrameLayout frameLayout1 = new FrameLayout(requireActivity()); frameLayout1.setId(ID_1); layout.addView(frameLayout1, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 100)); layout.setFitsSystemWindows(true); return layout; }
Example 10
Source File: Case5Scene.java From scene with Apache License 2.0 | 5 votes |
@NonNull @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { LinearLayout layout = new LinearLayout(getActivity()); layout.setOrientation(LinearLayout.VERTICAL); layout.setBackgroundColor(ColorUtil.getMaterialColor(getResources(), 2)); layout.setFitsSystemWindows(true); return layout; }
Example 11
Source File: Case5Scene.java From scene with Apache License 2.0 | 5 votes |
@NonNull @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { LinearLayout layout = new LinearLayout(getActivity()); layout.setOrientation(LinearLayout.VERTICAL); layout.setBackgroundColor(ColorUtil.getMaterialColor(getResources(), 3)); layout.setFitsSystemWindows(true); return layout; }