Deponentlanadigan materiallarning titul varag‘i


Download 217.91 Kb.
bet1/2
Sana16.06.2023
Hajmi217.91 Kb.
#1490942
  1   2
Bog'liq
07c68440f7bf164134da92fb752f23b9e6a4


Deponentlanadigan materiallarning titul varag‘i
EHM uchun dastur (Ma’lumotlar bazasi) nomi:
Magnit maydon oqimi va tokli ramkani aylantiruvchi momentni o`rganish
Huquq ega(lar)si :

  1. Qodirov Xatamjon Anvarovich

Muallif(lar):



  1. Qodirov Xatamjon Anvarovich

  2. Zaxidov Ibrohimjon Obidjonovich

  3. Tulakova Ziyodaxon Rivojidinovna

  4. Boyturayeva Gulbahor Kamoliddin qizi


EHM uchun dasturni identifikatsiya qiluvchi materiallar dastlabki matni (Dastur kodi)
package com.hyperuzprojects.magneticfieldforce.Actions;

import androidx.lifecycle.ViewModelProvider;

import android.os.Bundle;

import androidx.annotation.NonNull;


import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;


import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.Toast;

import com.hyperuzprojects.magneticfieldforce.R;


import com.hyperuzprojects.magneticfieldforce.databinding.FragmentMagneticFluxBinding;
import com.hyperuzprojects.magneticfieldforce.databinding.FragmentMagneticMomentBinding;

public class MagneticFlux extends Fragment {

private MagneticFluxViewModel mViewModel;
private FragmentMagneticFluxBinding binding;

private EditText mFEditText;


private EditText mBEditText;
private EditText mAEditText;
private EditText mSEditText;

public static MagneticFlux newInstance() {


return new MagneticFlux();
}

@Override


public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,
@Nullable Bundle savedInstanceState) {
binding = FragmentMagneticFluxBinding.inflate(inflater, container, false);
View root = binding.getRoot();

mFEditText = binding.F;


mBEditText = binding.B;
mAEditText = binding.A;
mSEditText = binding.S;

binding.Submit.setOnClickListener(new View.OnClickListener() {


@Override
public void onClick(View view) {
submit();
}
});

binding.Clear.setOnClickListener(new View.OnClickListener() {


@Override
public void onClick(View view) {
mFEditText.setText("");
mBEditText.setText("");
mSEditText.setText("");
mAEditText.setText("");
}
});

return root;

}

@Override


public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
mViewModel = new ViewModelProvider(this).get(MagneticFluxViewModel.class);

}

private void submit() {


// Get values from the EditText fields
String fString = mFEditText.getText().toString().trim();
String bString = mBEditText.getText().toString().trim();
String sString = mSEditText.getText().toString().trim();
String aString = mAEditText.getText().toString().trim();

// Parse the values to double or set to NaN if the field is empty


double f = !fString.isEmpty() ? Double.parseDouble(fString) : Double.NaN;
double b = !bString.isEmpty() ? Double.parseDouble(bString) : Double.NaN;
double s = !sString.isEmpty() ? Double.parseDouble(sString) : Double.NaN;
double a = !aString.isEmpty() ? Double.parseDouble(aString) : Double.NaN;

// Count how many fields are empty


int emptyCount = 0;
if (Double.isNaN(f)) emptyCount++;
if (Double.isNaN(b)) emptyCount++;
if (Double.isNaN(s)) emptyCount++;
if (Double.isNaN(a)) emptyCount++;

if (emptyCount > 1) {


Toast.makeText(getActivity(), "Faqat bir maydonni bo`sh qoldiring", Toast.LENGTH_SHORT).show();
} else if (emptyCount == 1) {
// Only one field is empty, calculate its value and fill it in
if (Double.isNaN(f)) {
mFEditText.setText(String.valueOf(b * s * (double) Math.round(Math.cos(Math.toRadians(a)) * 100) / 100));
mBEditText.setText("");
mSEditText.setText("");
mAEditText.setText("");
} else if (Double.isNaN(b)) {
mBEditText.setText(String.valueOf(f / (s * (double) Math.round(Math.cos(Math.toRadians(a)) * 100) / 100)));
mFEditText.setText("");
mSEditText.setText("");
mAEditText.setText("");
} else if (Double.isNaN(s)) {
mSEditText.setText(String.valueOf(f / (b * (double) Math.round(Math.cos(Math.toRadians(a)) * 100) / 100)));
mFEditText.setText("");
mBEditText.setText("");
mAEditText.setText("");
} else if (Double.isNaN(a)) {
mAEditText.setText(String.valueOf(Math.toDegrees(Math.acos(f / (b * s)))));
mFEditText.setText("");
mBEditText.setText("");
mSEditText.setText("");
}
} else {
Toast.makeText(getActivity(), "Faqat bir maydonni bo`sh qoldiring", Toast.LENGTH_SHORT).show();
}
}

}


package com.hyperuzprojects.magneticfieldforce.Actions;

import androidx.lifecycle.ViewModel;

public class MagneticFluxViewModel extends ViewModel {
// TODO: Implement the ViewModel
}

package com.hyperuzprojects.magneticfieldforce.Actions;

import androidx.cardview.widget.CardView;
import androidx.fragment.app.FragmentTransaction;
import androidx.lifecycle.ViewModelProvider;

import android.annotation.SuppressLint;


import android.os.Bundle;

import androidx.annotation.NonNull;


import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;


import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.Toast;

import com.hyperuzprojects.magneticfieldforce.MainActivity;


import com.hyperuzprojects.magneticfieldforce.R;
import com.hyperuzprojects.magneticfieldforce.databinding.FragmentHomeBinding;
import com.hyperuzprojects.magneticfieldforce.databinding.FragmentMagneticMomentBinding;
import com.hyperuzprojects.magneticfieldforce.ui.dashboard.DashboardFragment;
import com.hyperuzprojects.magneticfieldforce.ui.home.HomeFragment;

public class MagneticMoment extends Fragment {

private MagneticMomentViewModel mViewModel;
private FragmentMagneticMomentBinding binding;

private EditText mMEditText;


private EditText mBEditText;
private EditText mIEditText;
private EditText mSEditText;

public static MagneticMoment newInstance() {


return new MagneticMoment();
}

@Override


public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,
@Nullable Bundle savedInstanceState) {

binding = FragmentMagneticMomentBinding.inflate(inflater, container, false);


View root = binding.getRoot();

mMEditText=binding.M;


mBEditText=binding.B;
mIEditText=binding.I;
mSEditText=binding.S;

binding.submit.setOnClickListener(new View.OnClickListener() {


@SuppressLint("SetTextI18n")
@Override
public void onClick(View view) {
submit();
}
});

binding.Clear.setOnClickListener(new View.OnClickListener() {


@Override
public void onClick(View view) {
mMEditText.setText("");
mBEditText.setText("");
mIEditText.setText("");
mSEditText.setText("");
}
});

return root;


}

@Override


public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
mViewModel = new ViewModelProvider(this).get(MagneticMomentViewModel.class);
// TODO: Use the ViewModel
}

private void submit() {


// Get values from the EditText fields
String mString = mMEditText.getText().toString().trim();
String bString = mBEditText.getText().toString().trim();
String iString = mIEditText.getText().toString().trim();
String sString = mSEditText.getText().toString().trim();

// Parse the values to double or set to NaN if the field is empty


double m = !mString.isEmpty() ? Double.parseDouble(mString) : Double.NaN;
double b = !bString.isEmpty() ? Double.parseDouble(bString) : Double.NaN;
double i = !iString.isEmpty() ? Double.parseDouble(iString) : Double.NaN;
double s = !sString.isEmpty() ? Double.parseDouble(sString) : Double.NaN;

// Count how many fields are empty


int emptyCount = 0;
if (Double.isNaN(m)) emptyCount++;
if (Double.isNaN(b)) emptyCount++;
if (Double.isNaN(i)) emptyCount++;
if (Double.isNaN(s)) emptyCount++;

if (emptyCount > 1) {


Toast.makeText(getActivity(), "Faqat bir maydonni bo`sh qoldiring", Toast.LENGTH_SHORT).show();
} else if (emptyCount == 1) {
// Only one field is empty, calculate its value and fill it in
if (Double.isNaN(m)) {
mMEditText.setText(String.valueOf(b * i * s));
mBEditText.setText("");
mIEditText.setText("");
mSEditText.setText("");
} else if (Double.isNaN(b)) {
mBEditText.setText(String.valueOf(m / (i * s)));
mMEditText.setText("");
mIEditText.setText("");
mSEditText.setText("");
} else if (Double.isNaN(i)) {
mIEditText.setText(String.valueOf(m / (b * s)));
mMEditText.setText("");
mBEditText.setText("");
mSEditText.setText("");
} else if (Double.isNaN(s)) {
mSEditText.setText(String.valueOf(m / (b * i)));
mMEditText.setText("");
mBEditText.setText("");
mIEditText.setText("");
}
} else {
Toast.makeText(getActivity(), "Faqat bir maydonni bo`sh qoldiring", Toast.LENGTH_SHORT).show();
}

}
}

package com.hyperuzprojects.magneticfieldforce.Actions;

import androidx.lifecycle.ViewModel;

public class MagneticMomentViewModel extends ViewModel {
// TODO: Implement the ViewModel
}

package com.hyperuzprojects.magneticfieldforce.ui.dashboard;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.MediaController;
import android.widget.TextView;
import android.widget.VideoView;

import androidx.annotation.NonNull;


import androidx.fragment.app.Fragment;
import androidx.lifecycle.ViewModelProvider;

import com.hyperuzprojects.magneticfieldforce.R;


import com.hyperuzprojects.magneticfieldforce.databinding.FragmentAnimationBinding;

public class DashboardFragment extends Fragment {

private FragmentAnimationBinding binding;

public View onCreateView(@NonNull LayoutInflater inflater,


ViewGroup container, Bundle savedInstanceState) {
DashboardViewModel dashboardViewModel =
new ViewModelProvider(this).get(DashboardViewModel.class);

binding = FragmentAnimationBinding.inflate(inflater, container, false);


View root = binding.getRoot();

return root;


}

@Override


public void onDestroyView() {
super.onDestroyView();
binding = null;
}
}

package com.hyperuzprojects.magneticfieldforce.ui.dashboard;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class DashboardViewModel extends ViewModel {

private final MutableLiveData mText;

public DashboardViewModel() {


mText = new MutableLiveData<>();
mText.setValue("This is dashboard fragment");
}

public LiveData getText() {


return mText;
}
}

package com.hyperuzprojects.magneticfieldforce.ui.home;


import android.os.Bundle;


import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;


import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction;
import androidx.lifecycle.ViewModelProvider;

import com.hyperuzprojects.magneticfieldforce.Actions.MagneticFlux;


import com.hyperuzprojects.magneticfieldforce.Actions.MagneticMoment;
import com.hyperuzprojects.magneticfieldforce.R;
import com.hyperuzprojects.magneticfieldforce.databinding.FragmentHomeBinding;

public class HomeFragment extends Fragment {


private FragmentHomeBinding binding;

public View onCreateView(@NonNull LayoutInflater inflater,


ViewGroup container, Bundle savedInstanceState) {

HomeViewModel homeViewModel =


new ViewModelProvider(this).get(HomeViewModel.class);
binding = FragmentHomeBinding.inflate(inflater, container, false);
View root = binding.getRoot();

binding.toMagneticFlux.setOnClickListener(new View.OnClickListener() {


@Override
public void onClick(View v) {
Fragment magneticFlux=new MagneticFlux();
FragmentTransaction transaction=getActivity().getSupportFragmentManager().beginTransaction();
transaction.replace(R.id.fragment_container, magneticFlux).commit();
}
});

binding.toMagneticMoment.setOnClickListener(new View.OnClickListener() {


@Override
public void onClick(View view) {
Fragment magneticMoment=new MagneticMoment();
FragmentTransaction transaction=getActivity().getSupportFragmentManager().beginTransaction();
transaction.replace(R.id.fragment_container, magneticMoment).commit();
}
});
return root;
}

@Override


public void onDestroyView() {
super.onDestroyView();
binding = null;
}

}


package com.hyperuzprojects.magneticfieldforce.ui.home;

import androidx.lifecycle.LiveData;


import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class HomeViewModel extends ViewModel {

private final MutableLiveData mText;

public HomeViewModel() {


mText = new MutableLiveData<>();
mText.setValue("This is home fragment");
}

public LiveData getText() {


return mText;
}
}

package com.hyperuzprojects.magneticfieldforce.ui.notifications;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;


import androidx.fragment.app.Fragment;
import androidx.lifecycle.ViewModelProvider;

import com.hyperuzprojects.magneticfieldforce.databinding.FragmentInfoBinding;

public class NotificationsFragment extends Fragment {

private FragmentInfoBinding binding;

public View onCreateView(@NonNull LayoutInflater inflater,
ViewGroup container, Bundle savedInstanceState) {
NotificationsViewModel notificationsViewModel =
new ViewModelProvider(this).get(NotificationsViewModel.class);

binding = FragmentInfoBinding.inflate(inflater, container, false);


View root = binding.getRoot();

return root;

}

@Override


public void onDestroyView() {
super.onDestroyView();
binding = null;
}
}

package com.hyperuzprojects.magneticfieldforce.ui.notifications;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class NotificationsViewModel extends ViewModel {

private final MutableLiveData mText;

public NotificationsViewModel() {


mText = new MutableLiveData<>();
mText.setValue("This is notifications fragment");
}

public LiveData getText() {


return mText;
}
}

package com.hyperuzprojects.magneticfieldforce;

import android.os.Bundle;
import android.view.WindowManager;

import androidx.appcompat.app.AppCompatActivity;


import androidx.navigation.NavController;
import androidx.navigation.Navigation;
import androidx.navigation.ui.AppBarConfiguration;
import androidx.navigation.ui.NavigationUI;

import com.google.android.material.bottomnavigation.BottomNavigationView;


import com.hyperuzprojects.magneticfieldforce.databinding.ActivityMainBinding;

public class MainActivity extends AppCompatActivity {

private ActivityMainBinding binding;

@Override


protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);

binding = ActivityMainBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());

getSupportActionBar().hide();

BottomNavigationView navView = findViewById(R.id.nav_view);
// Passing each menu ID as a set of Ids because each
// menu should be considered as top level destinations.
AppBarConfiguration appBarConfiguration = new AppBarConfiguration.Builder(
R.id.navigation_home, R.id.navigation_dashboard, R.id.navigation_notifications)
.build();
NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment_activity_main);
NavigationUI.setupActionBarWithNavController(this, navController, appBarConfiguration);
NavigationUI.setupWithNavController(binding.navView, navController);

}

}





android:shape="rectangle">






























android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">




android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">

android:fillColor="#0038FF"


android:pathData="M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z" />



android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">






android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
android:scaleY="0.51"
android:translateX="26.46"
android:translateY="26.46">

android:pathData="M0,0h108v108h-108z"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>

android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>






xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">



android:endX="85.84757"
android:endY="92.4963"
android:startX="42.9492"
android:startY="49.59793"
android:type="linear">
android:color="#44000000"
android:offset="0.0" />
android:color="#00000000"
android:offset="1.0" />

android:fillColor="#FFFFFF"


android:fillType="nonZero"
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
android:strokeWidth="1"
android:strokeColor="#00000000" />




xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent">

android:id="@+id/nav_view"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginBottom="20dp"
app:elevation="10dp"
android:background="@drawable/bottom_menu_bg"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:menu="@menu/bottom_nav_menu" />

android:id="@+id/nav_host_fragment_activity_main"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:defaultNavHost="true"
app:layout_constraintBottom_toTopOf="@id/nav_view"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:navGraph="@navigation/mobile_navigation" />





xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_animation_video"
tools:context=".ui.dashboard.DashboardFragment">

android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="40dp"
android:layout_marginBottom="80dp"
android:orientation="vertical"
android:gravity="center"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">


android:id="@+id/media_controller"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_marginHorizontal="36dp"
app:cardCornerRadius="20dp"
app:cardElevation="20dp">

android:layout_width="match_parent"


android:layout_height="match_parent"
android:src="@drawable/video_magnetic_flux"/>




android:id="@+id/media_controller_2"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_margin="36dp"
app:cardCornerRadius="20dp"
app:cardElevation="20dp">

android:layout_width="match_parent"


android:layout_height="match_parent"
android:src="@drawable/video_magnetic_moment"/>








xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_home"
tools:context=".ui.home.HomeFragment">


android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="40dp"
android:layout_marginBottom="80dp"
android:gravity="center"
android:orientation="vertical"
android:weightSum="2"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">

android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginHorizontal="20dp"
android:layout_marginVertical="10dp"
android:layout_weight="1"
android:background="@color/white"
app:cardCornerRadius="20dp"
app:cardElevation="5dp">

android:layout_width="match_parent"
android:layout_height="match_parent">

android:layout_gravity="center"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:weightSum="2">

android:layout_width="match_parent"
android:layout_height="140dp"
android:src="@drawable/magnetic_flux_img_src" />

android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:orientation="vertical">

android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Magnit maydon oqimi"
android:textAlignment="center"
android:textColor="@color/main_color"
android:textSize="24sp"
android:textStyle="bold" />

android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:text="Ჶ=B*S*cosα: Sirtni kesib o`tayotgan magnit maydon kuch chiziqlari sonini tavsiflaydi "
android:textAlignment="center"
android:textColor="@color/main_color"
android:textSize="16sp"
android:textStyle="bold" />

android:id="@+id/toMagneticFlux"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"

android:layout_marginTop="16dp"


android:clickable="true"
android:layout_marginVertical="10dp"
android:focusable="true"
android:foreground="?attr/selectableItemBackground"
app:cardCornerRadius="16dp"
app:cardElevation="2dp">

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:paddingHorizontal="16dp"
android:paddingVertical="2dp"
android:text="Boshlash"
android:textColor="@color/main_color"
android:textSize="18sp"
android:textStyle="bold" />











android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginHorizontal="20dp"
android:layout_marginVertical="10dp"
android:layout_weight="1"
android:background="@color/white"
app:cardCornerRadius="20dp"
app:cardElevation="5dp">

android:layout_width="match_parent"
android:layout_height="match_parent">

android:layout_gravity="center"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:weightSum="2">

android:layout_width="match_parent"
android:layout_height="140dp"
android:src="@drawable/magnetic_law_img_src" />

android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:orientation="vertical">

android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Tokli ramkani aylantiruvchi moment"
android:textAlignment="center"
android:textColor="@color/main_color"
android:textSize="22sp"
android:textStyle="bold" />

android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:text="M=B*I*S: Ramka yuzasi, Magnit induksiya va Ramkadan o`tayotgan tok kuchi orqali aniqlanadi "
android:textAlignment="center"
android:textColor="@color/main_color"
android:textSize="14sp"
android:textStyle="bold" />

android:id="@+id/toMagneticMoment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="16dp"
android:clickable="true"
android:focusable="true"
android:layout_marginVertical="10dp"
android:foreground="?attr/selectableItemBackground"
app:cardCornerRadius="16dp"
app:cardElevation="2dp">

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:paddingHorizontal="16dp"
android:paddingVertical="2dp"
android:text="Boshlash"
android:textColor="@color/main_color"
android:textSize="18sp"
android:textStyle="bold" />

















xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_info"
android:gravity="center"
android:orientation="vertical"
tools:context=".ui.notifications.NotificationsFragment">

android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="80dp">

android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical">

android:layout_width="match_parent"
android:layout_height="346dp"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="20dp"
android:foreground="@drawable/info_magnetic_flux"
app:cardCornerRadius="8dp" />

android:layout_width="match_parent"
android:layout_height="360dp"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="20dp"
android:foreground="@drawable/info_magnetic_moment_1"
app:cardCornerRadius="8dp" />

android:layout_width="match_parent"
android:layout_height="500dp"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="20dp"
android:foreground="@drawable/info_magnetic_moment_2"
app:cardCornerRadius="8dp" />









xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_info"
android:gravity="center"
android:orientation="vertical"
tools:context=".Actions.MagneticFlux">

android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginVertical="100dp"
android:gravity="center"
android:orientation="vertical"
android:weightSum="5">

android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="10dp"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">

android:id="@+id/B"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/custom_input"
android:hint="B - magnit oqimi"
android:inputType="numberDecimal"
android:paddingVertical="10dp"
android:paddingLeft="10dp"
android:textSize="22sp" />




android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="10dp"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">

android:id="@+id/S"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/custom_input"
android:hint="ΔS - oqim tushayotgan sirt"
android:inputType="numberDecimal"
android:paddingVertical="10dp"
android:paddingLeft="10dp"
android:textSize="22sp" />


android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="10dp"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">

android:id="@+id/A"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/custom_input"
android:hint="α (grad) - oqim tushish burchagi"
android:inputType="numberDecimal"
android:paddingVertical="10dp"
android:paddingLeft="10dp"
android:textSize="22sp" />


android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="10dp"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">

android:id="@+id/F"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/custom_input"
android:hint="Ჶ - magnit oqimi"
android:inputType="numberDecimal"
android:paddingVertical="10dp"
android:paddingLeft="10dp"
android:textSize="22sp" />


android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="10dp"
android:layout_marginVertical="20dp"
android:layout_weight="1"
android:gravity="center"
android:orientation="horizontal">

android:id="@+id/Clear"
android:clickable="true"
android:focusable="true"
android:foreground="?attr/selectableItemBackground"
android:layout_width="120dp"
android:layout_height="50dp"
android:layout_margin="10dp"
android:backgroundTint="#FF0000"
app:cardCornerRadius="10dp">

android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="Clear"
android:textAlignment="center"
android:textColor="@color/white"
android:textSize="22sp"
android:textStyle="bold" />



android:id="@+id/Submit"
android:clickable="true"
android:focusable="true"
android:foreground="?attr/selectableItemBackground"
android:layout_width="120dp"
android:layout_height="50dp"
android:layout_margin="10dp"
android:backgroundTint="#00FF00"
app:cardCornerRadius="10dp">

android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="Submit"
android:textAlignment="center"
android:textColor="@color/white"
android:textSize="22sp"
android:textStyle="bold" />











xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/fragment_container_magnetic_moment"
android:background="@drawable/bg_info"
android:gravity="center"
android:orientation="vertical"
tools:context=".Actions.MagneticMoment">

android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginVertical="100dp"
android:gravity="center"
android:orientation="vertical"
android:weightSum="5">

android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="10dp"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">

android:id="@+id/B"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/custom_input"
android:hint="B - magnit oqimi"
android:inputType="numberDecimal"
android:paddingVertical="10dp"
android:paddingLeft="10dp"
android:textSize="22sp" />




android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="10dp"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">

android:id="@+id/I"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/custom_input"
android:hint="I - ramkadagi tok kuchi"
android:inputType="numberDecimal"
android:paddingVertical="10dp"
android:paddingLeft="10dp"
android:textSize="22sp" />


android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="10dp"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">

android:id="@+id/S"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/custom_input"
android:hint="ΔS - ramkaning sirt yuzasi"
android:inputType="numberDecimal"
android:paddingVertical="10dp"
android:paddingLeft="10dp"
android:textSize="22sp" />


android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="10dp"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">

android:id="@+id/M"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/custom_input"
android:hint="M - aylantiruvchi moment"
android:inputType="numberDecimal"
android:paddingVertical="10dp"
android:paddingLeft="10dp"
android:textSize="22sp" />


android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="10dp"
android:layout_marginVertical="20dp"
android:layout_weight="1"
android:gravity="center"
android:orientation="horizontal">

android:id="@+id/Clear"
android:clickable="true"
android:focusable="true"
android:foreground="?attr/selectableItemBackground"
android:layout_width="120dp"
android:layout_height="50dp"
android:layout_margin="10dp"
android:backgroundTint="#FF0000"
app:cardCornerRadius="10dp">

android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="Clear"
android:textAlignment="center"
android:textColor="@color/white"
android:textSize="22sp"
android:textStyle="bold" />



android:id="@+id/submit"
android:layout_width="120dp"
android:clickable="true"
android:focusable="true"
android:foreground="?attr/selectableItemBackground"
android:layout_height="50dp"
android:layout_margin="10dp"
android:backgroundTint="#00FF00"
app:cardCornerRadius="10dp">

android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="Submit"
android:textAlignment="center"
android:textColor="@color/white"
android:textSize="22sp"
android:textStyle="bold" />













android:id="@+id/navigation_home"
android:icon="@drawable/ic_home"
android:title="@string/title_home" />

android:id="@+id/navigation_dashboard"
android:icon="@drawable/ic_animation"
android:title="@string/title_dashboard" />

android:id="@+id/navigation_notifications"
android:icon="@drawable/ic_info"
android:title="@string/title_notifications" />





xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mobile_navigation"
app:startDestination="@+id/navigation_home">

android:id="@+id/navigation_home"
android:name="com.hyperuzprojects.magneticfieldforce.ui.home.HomeFragment"
android:label="@string/title_home"
tools:layout="@layout/fragment_home" />

android:id="@+id/navigation_dashboard"
android:name="com.hyperuzprojects.magneticfieldforce.ui.dashboard.DashboardFragment"
android:label="@string/title_dashboard"
tools:layout="@layout/fragment_animation" />

android:id="@+id/navigation_notifications"
android:name="com.hyperuzprojects.magneticfieldforce.ui.notifications.NotificationsFragment"
android:label="@string/title_notifications"
tools:layout="@layout/fragment_info" />





#FFBB86FC
#FF6200EE
#FF3700B3
#FF03DAC5
#FF018786
#FF000000
#FFFFFFFF
#0088FF
#5A5A5A





16dp
16dp




Magnetic Field Force
Home
Animation
Info








// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
jcenter()
mavenCentral()


Download 217.91 Kb.

Do'stlaringiz bilan baham:
  1   2




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling