mirror of
https://github.com/xoureldeen/Vectras-VM-Android.git
synced 2026-04-29 06:49:52 +00:00
V2.1
V2.1 stable
This commit is contained in:
parent
df34043cfe
commit
512140534c
450 changed files with 64666 additions and 0 deletions
|
|
@ -0,0 +1,46 @@
|
|||
package com.vectras.vm.Fragment;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.fragment.app.Fragment;
|
||||
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import com.google.android.material.navigation.NavigationView;
|
||||
import com.vectras.vm.R;
|
||||
|
||||
public class DialogSettingsFragment extends Fragment {
|
||||
|
||||
public View view;
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
}
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
// Inflate the layout for this fragment
|
||||
view = inflater.inflate(R.layout.content_settings_dialog, container, false);
|
||||
|
||||
NavigationView navView = view.findViewById(R.id.navView);
|
||||
View fragment = view.findViewById(R.id.fragment);
|
||||
navView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {
|
||||
|
||||
// This method will trigger on item Click of navigation menu
|
||||
@Override
|
||||
public boolean onNavigationItemSelected(MenuItem menuItem) {
|
||||
//Check to see which item was being clicked and perform appropriate action
|
||||
int id = menuItem.getItemId();
|
||||
if (id == R.id.uiInterface) {
|
||||
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return view;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue