package com.my.newproject2; import android.app.Activity; import android.app.*; import android.os.*; import android.view.*; import android.view.View.*; import android.widget.*; import android.content.*; import android.content.res.*; import android.graphics.*; import android.graphics.drawable.*; import android.media.*; import android.net.*; import android.text.*; import android.text.style.*; import android.util.*; import android.webkit.*; import android.animation.*; import android.view.animation.*; import java.io.*; import java.util.*; import java.util.regex.*; import java.text.*; import org.json.*; import android.widget.LinearLayout; import com.google.android.material.textfield.*; import android.widget.Button; import android.view.View; import android.app.Fragment; import android.app.FragmentManager; import android.app.DialogFragment; public class MainActivity extends Activity { private LinearLayout linear1; private LinearLayout linear2; private LinearLayout linear3; private LinearLayout linear4; private LinearLayout linear5; private LinearLayout linear6; private TextInputLayout textinputlayout4; private Button button3; @Override protected void onCreate(Bundle _savedInstanceState) { super.onCreate(_savedInstanceState); setContentView(R.layout.main); initialize(_savedInstanceState); initializeLogic(); } private void initialize(Bundle _savedInstanceState) { linear1 = findViewById(R.id.linear1); linear2 = findViewById(R.id.linear2); linear3 = findViewById(R.id.linear3); linear4 = findViewById(R.id.linear4); linear5 = findViewById(R.id.linear5); linear6 = findViewById(R.id.linear6); textinputlayout4 = findViewById(R.id.textinputlayout4); button3 = findViewById(R.id.button3); button3.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View _view) { } }); } private void initializeLogic() { } @Deprecated public void showMessage(String _s) { Toast.makeText(getApplicationContext(), _s, Toast.LENGTH_SHORT).show(); } @Deprecated public int getLocationX(View _v) { int _location[] = new int[2]; _v.getLocationInWindow(_location); return _location[0]; } @Deprecated public int getLocationY(View _v) { int _location[] = new int[2]; _v.getLocationInWindow(_location); return _location[1]; } @Deprecated public int getRandom(int _min, int _max) { Random random = new Random(); return random.nextInt(_max - _min + 1) + _min; } @Deprecated public ArrayList getCheckedItemPositionsToArray(ListView _list) { ArrayList _result = new ArrayList(); SparseBooleanArray _arr = _list.getCheckedItemPositions(); for (int _iIdx = 0; _iIdx < _arr.size(); _iIdx++) { if (_arr.valueAt(_iIdx)) _result.add((double)_arr.keyAt(_iIdx)); } return _result; } @Deprecated public float getDip(int _input) { return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, _input, getResources().getDisplayMetrics()); } @Deprecated public int getDisplayWidthPixels() { return getResources().getDisplayMetrics().widthPixels; } @Deprecated public int getDisplayHeightPixels() { return getResources().getDisplayMetrics().heightPixels; } }