List of usage examples for android.text InputType TYPE_NULL
int TYPE_NULL
To view the source code for android.text InputType TYPE_NULL.
Click Source Link
From source file:com.gigabytedevelopersinc.app.calculator.Calculator.java
public void BtnClick(final View v) { page_no = mPager.getCurrentItem();/*w w w . j av a 2s . c o m*/ unitSpinner = findViewById(R.id.units_spinner); switch (page_no) { /*case 0: result_TV = (AutoResizeTextView) findViewById(R.id.sci_result_TV); expression_TV = (EditText) findViewById(R.id.sci_expression_TV); break; case 1: result_TV = (AutoResizeTextView) findViewById(R.id.pro_result_TV); expression_TV = (EditText) findViewById(R.id.pro_expression_TV); break;*/ case 2: result_TV = (AutoResizeTextView) findViewById(R.id.curr_result_TV); expression_TV = (EditText) findViewById(R.id.curr_expression_TV); resultant_TV = (AutoResizeTextView) findViewById(R.id.curr_resultant_TV); break; case 3: case 4: result_TV = (AutoResizeTextView) findViewById(R.id.conv_result_TV); expression_TV = (EditText) findViewById(R.id.conv_expression_TV); resultant_TV = (AutoResizeTextView) findViewById(R.id.conv_resultant_TV); break; } try { result_TV.setInputType(InputType.TYPE_NULL); result_TV.setRawInputType(InputType.TYPE_CLASS_TEXT); result_TV.setTextIsSelectable(true); result = result_TV.getText().toString(); try { resultant_TV.setInputType(InputType.TYPE_NULL); resultant_TV.setRawInputType(InputType.TYPE_CLASS_TEXT); resultant_TV.setTextIsSelectable(true); } catch (Exception idk) { // } expression_TV.setInputType(InputType.TYPE_NULL); expression_TV.setRawInputType(InputType.TYPE_CLASS_TEXT); expression_TV.setTextIsSelectable(true); expression = expression_TV.getText().toString(); if (!flag) { expression_TV.setText(""); result_TV.setMaxTextSize(34); result_TV.setTextSize(34); result_TV.setText("" + 0); expression = ""; result = "" + 0; flag = true; } } catch (Exception eee) { // } //Converter from = (Spinner) findViewById(R.id.from_spinner); to = (Spinner) findViewById(R.id.to_spinner); try { from.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { evaluate(expression_TV.getText().toString()); } @Override public void onNothingSelected(AdapterView<?> parent) { } }); to.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { evaluate(expression_TV.getText().toString()); } @Override public void onNothingSelected(AdapterView<?> parent) { } }); } catch (Exception e) { // } //Currency fro = (Spinner) findViewById(R.id.fro_spinner); too = (Spinner) findViewById(R.id.too_spinner); /*LinearLayout sciFunLayout = (LinearLayout) findViewById(R.id.sci_fun_layout); final ListView constantsList = (ListView) findViewById(R.id.constants_list);*/ switch (page_no) { /*case 0: historyLayout = (LinearLayout) findViewById(R.id.sci_history_layout); memoryLayout = (LinearLayout) findViewById(R.id.sci_memory_layout); simplePad = (LinearLayout) findViewById(R.id.sci_simple_pad); historyList = (ListView) findViewById(R.id.sci_history_list); historyList.setEmptyView(findViewById(R.id.sci_empty_history)); memoryList = (ListView) findViewById(R.id.sci_memory_list); memoryList.setEmptyView(findViewById(R.id.sci_empty)); fav_List_LL = (LinearLayout) findViewById(R.id.conv_fav_layout); favList = (ListView) findViewById(R.id.conv_fav_list); favList.setEmptyView(findViewById(R.id.conv_empty_fav)); hyBtn = (Button) findViewById(R.id.sci_history_Btn); myBtn = (Button) findViewById(R.id.sci_M_Btn); favBtn = (Button) findViewById(R.id.conv_fav_Btn); break; case 1: historyLayout = (LinearLayout) findViewById(R.id.pro_history_layout); memoryLayout = (LinearLayout) findViewById(R.id.pro_memory_layout); simplePad = (LinearLayout) findViewById(R.id.pro_simple_pad); historyList = (ListView) findViewById(R.id.pro_history_list); historyList.setEmptyView(findViewById(R.id.pro_empty_history)); memoryList = (ListView) findViewById(R.id.pro_memory_list); memoryList.setEmptyView(findViewById(R.id.pro_empty)); fav_List_LL = (LinearLayout) findViewById(R.id.conv_fav_layout); favList = (ListView) findViewById(R.id.conv_fav_list); favList.setEmptyView(findViewById(R.id.conv_empty_fav)); favBtn = (Button) findViewById(R.id.conv_fav_Btn); break;*/ case 2: historyLayout = (LinearLayout) findViewById(R.id.curr_history_layout); memoryLayout = (LinearLayout) findViewById(R.id.curr_memory_layout); simplePad = (LinearLayout) findViewById(R.id.curr_simple_pad); historyList = (ListView) findViewById(R.id.curr_history_list); historyList.setEmptyView(findViewById(R.id.curr_empty_history)); memoryList = (ListView) findViewById(R.id.curr_memory_list); memoryList.setEmptyView(findViewById(R.id.curr_empty)); fav_List_LL = (LinearLayout) findViewById(R.id.curr_fav_layout); favList = (ListView) findViewById(R.id.curr_fav_list); favList.setEmptyView(findViewById(R.id.curr_empty_fav)); /*hyBtn = (Button) findViewById(R.id.curr_history_Btn); myBtn = (Button) findViewById(R.id.curr_M_Btn); favBtn = (Button) findViewById(R.id.curr_fav_Btn);*/ break; case 3: case 4: historyLayout = (LinearLayout) findViewById(R.id.conv_history_layout); memoryLayout = (LinearLayout) findViewById(R.id.conv_memory_layout); simplePad = (LinearLayout) findViewById(R.id.conv_simple_pad); historyList = (ListView) findViewById(R.id.conv_history_list); historyList.setEmptyView(findViewById(R.id.conv_empty_history)); memoryList = (ListView) findViewById(R.id.conv_memory_list); memoryList.setEmptyView(findViewById(R.id.conv_empty)); fav_List_LL = (LinearLayout) findViewById(R.id.conv_fav_layout); favList = (ListView) findViewById(R.id.conv_fav_list); favList.setEmptyView(findViewById(R.id.conv_empty_fav)); /*hyBtn = (Button) findViewById(R.id.conv_history_Btn); myBtn = (Button) findViewById(R.id.conv_M_Btn); favBtn = (Button) findViewById(R.id.conv_fav_Btn);*/ break; default: historyLayout = (LinearLayout) findViewById(R.id.conv_history_layout); memoryLayout = (LinearLayout) findViewById(R.id.conv_memory_layout); simplePad = (LinearLayout) findViewById(R.id.conv_simple_pad); historyList = (ListView) findViewById(R.id.conv_history_list); historyList.setEmptyView(findViewById(R.id.conv_empty_history)); fav_List_LL = (LinearLayout) findViewById(R.id.conv_fav_layout); memoryList = (ListView) findViewById(R.id.conv_memory_list); memoryList.setEmptyView(findViewById(R.id.conv_empty)); favList = (ListView) findViewById(R.id.conv_fav_list); favList.setEmptyView(findViewById(R.id.conv_empty_fav)); /*hyBtn = (Button) findViewById(R.id.conv_history_Btn); myBtn = (Button) findViewById(R.id.conv_M_Btn); favBtn = (Button) findViewById(R.id.conv_fav_Btn);*/ break; } /*Button funcBtn = (Button) findViewById(R.id.functions_Btn); Button constBtn = (Button) findViewById(R.id.constants_Btn); Button decBtn = (Button) findViewById(R.id.dec_Btn); Button hexBtn = (Button) findViewById(R.id.hex_Btn); Button octBtn = (Button) findViewById(R.id.oct_Btn); Button binBtn = (Button) findViewById(R.id.bin_Btn); TextView decTV = (TextView) findViewById(R.id.dec_tv); TextView hexTV = (TextView) findViewById(R.id.hex_TV); TextView octTV = (TextView) findViewById(R.id.oct_TV); TextView binTV = (TextView) findViewById(R.id.bin_TV);*/ int id = v.getId(); Button btn = (Button) findViewById(id); final String btnText = btn.getText().toString(); switch (id) { case R.id.curr_add_to_fav: case R.id.conv_add_to_fav: createFav(); break; //case R.id.sci_history_Btn: //case R.id.conv_history_Btn: //case R.id.curr_history_Btn: /*dbAdapter = new DbAdapter(this); dbAdapter.open(); fillData(); if (historyLayout.getVisibility() == View.GONE) { historyLayout.setVisibility(View.VISIBLE); hyBtn.setTextColor(primary_text_color); hyBtn.setBackgroundColor(primary_color); myBtn.setTextColor(sec_text_color); myBtn.setBackgroundColor(sec_color); memoryLayout.setVisibility(View.GONE); try { fav_List_LL.setVisibility(View.GONE); favBtn.setTextColor(sec_text_color); favBtn.setBackgroundColor(sec_color); } catch (Exception e) { // } *//*try { constantsList.setVisibility(View.GONE); constBtn.setTextColor(sec_text_color); constBtn.setBackgroundColor(sec_color); sciFunLayout.setVisibility(View.GONE); funcBtn.setTextColor(sec_text_color); funcBtn.setBackgroundColor(sec_color); } catch (Exception e) { // }*//* simplePad.setVisibility(View.GONE); } else { hyBtn.setTextColor(sec_text_color); hyBtn.setBackgroundColor(sec_color); historyLayout.setVisibility(View.GONE); simplePad.setVisibility(View.VISIBLE); } break;*/ /*case R.id.floating: if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { if (getDrawPermit()) { Intent startServiceIntent = new Intent(MainActivity.this, FloatingCalculator.class); startService(startServiceIntent); } else Toast.makeText(getApplicationContext(), "Allow permission to draw over other apps to use Floating Calculator.", Toast.LENGTH_LONG).show(); } else { Intent startServiceIntent = new Intent(MainActivity.this, FloatingCalculator.class); startService(startServiceIntent); } break; case R.id.matgraph: startActivity(new Intent(getApplicationContext(), Calculator.class).putExtra("MAIN", true)); break; case R.id.settings: startActivity(new Intent(MainActivity.this, SettingsActivity.class)); break; case R.id.report: Intent report = new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/gigabytedevelopers/CalcMate/issues")); startActivity(report); break; case R.id.about: new LibsBuilder() .withLicenseShown(true) .withVersionShown(true) .withAboutVersionShown(true) .withActivityTitle(getString(R.string.app_name)) .withAboutIconShown(true) .withListener(libsListener) .start(MainActivity.this); break;*/ case R.id.AC_Btn: createHistory(); reset(); break; case R.id.C_Btn: int start = Math.max(expression_TV.getSelectionStart(), 0); int end = Math.max(expression_TV.getSelectionEnd(), 0); if (start == end && start != 0) expression_TV.getText().replace(Math.min(start, end) - 1, Math.max(start, end), "", 0, 0); else expression_TV.getText().replace(Math.min(start, end), Math.max(start, end), "", 0, 0); evaluate(expression_TV.getText().toString()); break; //Memory case R.id.MC_Btn: dbAdapter = new DbAdapter(this); dbAdapter.open(); dbAdapter.deleteAllMemories(); Toast clearmem = Toast.makeText(Calculator.this, "Memory Cleared!", Toast.LENGTH_SHORT); clearmem.show(); fillData(); break; case R.id.MR_Btn: dbAdapter = new DbAdapter(this); dbAdapter.open(); fillData(); String mem = dbAdapter.memoryRetrieve(); if (mem.equals("xyz")) { Toast toast = Toast.makeText(Calculator.this, "No Memory Yet!", Toast.LENGTH_SHORT); toast.show(); } else insert(dbAdapter.memoryRetrieve()); break; case R.id.MS_Btn: createMemory(); Toast savemem = Toast.makeText(Calculator.this, "New Memory Saved!", Toast.LENGTH_SHORT); savemem.show(); break; //case R.id.sci_M_Btn: //case R.id.curr_M_Btn: /*case R.id.conv_M_Btn: dbAdapter = new DbAdapter(this); dbAdapter.open(); fillData(); if (memoryLayout.getVisibility() == View.GONE) { memoryLayout.setVisibility(View.VISIBLE); myBtn.setTextColor(primary_text_color); myBtn.setBackgroundColor(primary_color); try { fav_List_LL.setVisibility(View.GONE); favBtn.setTextColor(sec_text_color); favBtn.setBackgroundColor(sec_color); } catch (Exception e) { // } *//*try { constantsList.setVisibility(View.GONE); constBtn.setTextColor(sec_text_color); constBtn.setBackgroundColor(sec_color); sciFunLayout.setVisibility(View.GONE); funcBtn.setTextColor(sec_text_color); funcBtn.setBackgroundColor(sec_color); } catch (Exception e) { // }*//* simplePad.setVisibility(View.GONE); hyBtn.setTextColor(sec_text_color); hyBtn.setBackgroundColor(sec_color); historyLayout.setVisibility(View.GONE); } else { myBtn.setTextColor(sec_text_color); myBtn.setBackgroundColor(sec_color); memoryLayout.setVisibility(View.GONE); simplePad.setVisibility(View.VISIBLE); } break;*/ //case R.id.curr_fav_Btn: //case R.id.conv_fav_Btn: /*dbAdapter = new DbAdapter(this); dbAdapter.open(); fillData(); if (fav_List_LL.getVisibility() == View.GONE) { fav_List_LL.setVisibility(View.VISIBLE); try { memoryLayout.setVisibility(View.GONE); myBtn.setTextColor(sec_text_color); myBtn.setBackgroundColor(sec_color); } catch (Exception e) { // } favBtn.setTextColor(primary_text_color); favBtn.setBackgroundColor(primary_color); simplePad.setVisibility(View.GONE); hyBtn.setTextColor(sec_text_color); hyBtn.setBackgroundColor(sec_color); historyLayout.setVisibility(View.GONE); } else { fav_List_LL.setVisibility(View.GONE); favBtn.setTextColor(sec_text_color); favBtn.setBackgroundColor(sec_color); simplePad.setVisibility(View.VISIBLE); } break;*/ /*case R.id.constants_Btn: dataBaseHelper = new DataBaseHelper(this); try { dataBaseHelper.createDataBase(); } catch (IOException ioe) { throw new Error("Unable to create database"); } dataBaseHelper.openDataBase(); dataSource = new DataSource(this); dataSource.open(); if (constantsList.getVisibility() == View.GONE) { constantsList.setVisibility(View.VISIBLE); constBtn.setTextColor(primary_text_color); constBtn.setBackgroundColor(primary_color); memoryLayout.setVisibility(View.GONE); myBtn.setTextColor(sec_text_color); myBtn.setBackgroundColor(sec_color); hyBtn.setTextColor(sec_text_color); hyBtn.setBackgroundColor(sec_color); historyLayout.setVisibility(View.GONE); try { sciFunLayout.setVisibility(View.GONE); funcBtn.setTextColor(sec_text_color); funcBtn.setBackgroundColor(sec_color); } catch (Exception e) { // } simplePad.setVisibility(View.GONE); } else { constantsList.setVisibility(View.GONE); constBtn.setTextColor(sec_text_color); constBtn.setBackgroundColor(sec_color); simplePad.setVisibility(View.VISIBLE); } try { Cursor c = dataSource.getConstants(); startManagingCursor(c); String[] fro = new String[]{DataBaseHelper.COLUMN_NAME, DataBaseHelper.COLUMN_SYMBOL, DataBaseHelper.COLUMN_VALUE, DataBaseHelper.COLUMN_DIMENSION}; int[] too = new int[]{R.id.text11, R.id.text12, R.id.text21, R.id.text22}; SimpleCursorAdapter constants = new SimpleCursorAdapter(this, R.layout.constants_row, c, fro, too); constantsList.setAdapter(constants); constantsList.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Cursor obj = (Cursor) constantsList.getItemAtPosition(position); insert(obj.getString(3)); } }); } catch (Exception e) { // } break; case R.id.functions_Btn: if (sciFunLayout.getVisibility() == View.GONE) { funcBtn.setTextColor(primary_text_color); funcBtn.setBackgroundColor(primary_color); sciFunLayout.setVisibility(View.VISIBLE); memoryLayout.setVisibility(View.GONE); myBtn.setTextColor(sec_text_color); myBtn.setBackgroundColor(sec_color); hyBtn.setTextColor(sec_text_color); hyBtn.setBackgroundColor(sec_color); historyLayout.setVisibility(View.GONE); simplePad.setVisibility(View.GONE); constantsList.setVisibility(View.GONE); constBtn.setTextColor(sec_text_color); constBtn.setBackgroundColor(sec_color); } else { funcBtn.setTextColor(sec_text_color); funcBtn.setBackgroundColor(sec_color); sciFunLayout.setVisibility(View.GONE); simplePad.setVisibility(View.VISIBLE); } break;*/ case R.id.conv_swap_Btn: case R.id.curr_swap_Btn: if (page_no == 4) { int temp = from.getSelectedItemPosition(); from.setSelection(to.getSelectedItemPosition()); to.setSelection(temp); } else { SharedPreferences settings = getSharedPreferences("MyPrefs", 0); Float rate = settings.getFloat("rate", 0); SharedPreferences.Editor editor = settings.edit(); editor.putFloat("rate", 1 / rate); editor.apply(); rate = 1 / rate; result_TV.setText("1"); resultant_TV.setText(rate.toString()); int temp = fro.getSelectedItemPosition(); fro.setSelection(too.getSelectedItemPosition()); too.setSelection(temp); } break; //Operators case R.id.leftBracket_Btn: case R.id.rightBracket_Btn: case R.id.add_Btn: case R.id.sub_Btn: //case R.id.factorial_Btn: // case R.id.imagine_Btn: //Numbers case R.id.dot_Btn: case R.id.Btn_0: case R.id.Btn_1: case R.id.Btn_2: case R.id.Btn_3: case R.id.Btn_4: case R.id.Btn_5: case R.id.Btn_6: case R.id.Btn_7: case R.id.Btn_8: case R.id.Btn_9: insert(btnText); break; case R.id.div_Btn: insert("/"); break; case R.id.mul_Btn: insert("*"); break; /*//Hex case R.id.A_Btn: case R.id.B_Btn: case R.id.C_hex_Btn: case R.id.D_Btn: case R.id.E_Btn: case R.id.F_Btn: insert(btnText); break; //Functions case R.id.abs_Btn: case R.id.ceil_Btn: case R.id.cos_Btn: case R.id.cosh_Btn: case R.id.exp_Btn: case R.id.floor_Btn: case R.id.log_Btn: case R.id.log10_Btn: case R.id.log2_Btn: case R.id.sin_Btn: case R.id.sinh_Btn: case R.id.tan_Btn: case R.id.tanh_Btn: insert(btnText + "("); break; case R.id.deg_Btn: insert("*" + getResources().getString(R.string.pi) + "/180"); break; case R.id.acos_Btn: insert("acos("); break; case R.id.asin_Btn: insert("asin("); break; case R.id.atan_Btn: insert("atan("); break; case R.id.acosd_Btn: insert("acosd("); break; case R.id.acosh_Btn: insert("acosh("); break; case R.id.asind_Btn: insert("asind("); break; case R.id.sind_Btn: insert("sind("); break; case R.id.asinh_Btn: insert("asinh("); break; case R.id.cosd_Btn: insert("cosd("); break; case R.id.tand_Btn: insert("tand("); break; case R.id.atand_Btn: insert("atand("); break; case R.id.atanh_Btn: insert("atanh("); break; case R.id.root_Btn: insert("sqrt("); break; case R.id.cbrt_Btn: insert("cbrt("); break; case R.id.reciprocal_Btn: expression_TV.getText().replace(0, 0, "1/(", 0, 3); break;*/ case R.id.percent_Btn: insert("%"); break; /*case R.id.e_Btn: insert("2.7182818285"); break; case R.id.pi_Btn: insert(btnText); break;*/ case R.id.power_Btn: insert(btnText); break; case R.id.equals_Btn: done = true; evaluate(expression_TV.getText().toString()); createHistory(); try { expression_TV.setText(""); insert(result_TV.getText().toString()); result_TV.setText("0"); } catch (RuntimeException ee) { // } break; /*case R.id.dec_Btn: try { decBtn.setBackgroundColor(sec_color); decBtn.setTextColor(sec_text_color); hexBtn.setBackgroundColor(primary_color); hexBtn.setTextColor(primary_text_color); octBtn.setBackgroundColor(primary_color); octBtn.setTextColor(primary_text_color); binBtn.setBackgroundColor(primary_color); binBtn.setTextColor(primary_text_color); decTV.setBackgroundColor(sec_color); decTV.setTextColor(sec_text_color); hexTV.setBackgroundColor(primary_color); hexTV.setTextColor(primary_text_color); octTV.setBackgroundColor(primary_color); octTV.setTextColor(primary_text_color); binTV.setBackgroundColor(primary_color); binTV.setTextColor(primary_text_color); expression_TV.setText(""); insert(changeBase(expression, base, Base.DECIMAL)); base = Base.DECIMAL; } catch (SyntaxException S) { Toast.makeText(getApplicationContext(), S.toString(), Toast.LENGTH_SHORT).show(); } break; case R.id.hex_Btn: try { decBtn.setBackgroundColor(primary_color); decBtn.setTextColor(primary_text_color); hexBtn.setBackgroundColor(sec_color); hexBtn.setTextColor(sec_text_color); octBtn.setBackgroundColor(primary_color); octBtn.setTextColor(primary_text_color); binBtn.setBackgroundColor(primary_color); binBtn.setTextColor(primary_text_color); decTV.setBackgroundColor(primary_color); decTV.setTextColor(primary_text_color); hexTV.setBackgroundColor(sec_color); hexTV.setTextColor(sec_text_color); octTV.setBackgroundColor(primary_color); octTV.setTextColor(primary_text_color); binTV.setBackgroundColor(primary_color); binTV.setTextColor(primary_text_color); expression_TV.setText(""); insert(changeBase(expression, base, Base.HEXADECIMAL)); base = Base.HEXADECIMAL; } catch (SyntaxException S) { Toast.makeText(getApplicationContext(), S.toString(), Toast.LENGTH_SHORT).show(); } break; case R.id.oct_Btn: try { decBtn.setBackgroundColor(primary_color); decBtn.setTextColor(primary_text_color); hexBtn.setBackgroundColor(primary_color); hexBtn.setTextColor(primary_text_color); octBtn.setBackgroundColor(sec_color); octBtn.setTextColor(sec_text_color); binBtn.setBackgroundColor(primary_color); binBtn.setTextColor(primary_text_color); decTV.setBackgroundColor(primary_color); decTV.setTextColor(primary_text_color); hexTV.setBackgroundColor(primary_color); hexTV.setTextColor(primary_text_color); octTV.setBackgroundColor(sec_color); octTV.setTextColor(sec_text_color); binTV.setBackgroundColor(primary_color); binTV.setTextColor(primary_text_color); expression_TV.setText(""); insert(changeBase(expression, base, Base.OCTAL)); base = Base.OCTAL; } catch (SyntaxException S) { Toast.makeText(getApplicationContext(), S.toString(), Toast.LENGTH_SHORT).show(); } break; case R.id.bin_Btn: try { decBtn.setBackgroundColor(primary_color); decBtn.setTextColor(primary_text_color); hexBtn.setBackgroundColor(primary_color); hexBtn.setTextColor(primary_text_color); octBtn.setBackgroundColor(primary_color); octBtn.setTextColor(primary_text_color); binBtn.setBackgroundColor(sec_color); binBtn.setTextColor(sec_text_color); decTV.setBackgroundColor(primary_color); decTV.setTextColor(primary_text_color); hexTV.setBackgroundColor(primary_color); hexTV.setTextColor(primary_text_color); octTV.setBackgroundColor(primary_color); octTV.setTextColor(primary_text_color); binTV.setBackgroundColor(sec_color); binTV.setTextColor(sec_text_color); expression_TV.setText(""); insert(changeBase(expression, base, Base.BINARY)); base = Base.BINARY; } catch (SyntaxException S) { Toast.makeText(getApplicationContext(), S.toString(), Toast.LENGTH_SHORT).show(); } break; default: break; } try { if (v.getId() != R.id.AC_Btn) { result_TV.resizeText(); try { resultant_TV.resizeText(); } catch (Exception e) { // } } } catch (Exception eeee) { // }*/ } }