Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. public class Weight extends AppCompatActivity implements View.OnClickListener {
  2.  
  3.  
  4.  
  5.  
  6. public static AutoCompleteTextView userWeight;
  7. private Button secondPage;
  8.  
  9.  
  10. @Override
  11. protected void onCreate(Bundle savedInstanceState) {
  12. super.onCreate(savedInstanceState);
  13. setContentView(R.layout.activity_weight);
  14.  
  15. userWeight =(AutoCompleteTextView) findViewById(R.id.weight);
  16. secondPage = (Button) findViewById(R.id.toHeightPage);
  17.  
  18. secondPage.setOnClickListener(this);
  19.  
  20. }
  21.  
  22.  
  23.  
  24.  
  25. }
  26.  
  27. private void enterWeight(){
  28. String weight = userWeight.getText().toString().trim();
  29.  
  30. if(TextUtils.isEmpty(weight)){
  31. Toast.makeText(Weight.this,"Please Enter your weight", Toast.LENGTH_SHORT).show();
  32.  
  33.  
  34. return;
  35. }
  36.  
  37. public class Main_Interface extends AppCompatActivity {
  38. public TextView results;
  39.  
  40.  
  41. @Override
  42. protected void onCreate(Bundle savedInstanceState) {
  43. super.onCreate(savedInstanceState);
  44. setContentView(R.layout.activity_main__interface);
  45.  
  46. Toolbar toolbar = findViewById(R.id.toolbar1);
  47. setSupportActionBar(toolbar);
  48.  
  49. results = (TextView)findViewById(R.id.results);
  50.  
  51.  
  52.  
  53.  
  54.  
  55. }
  56. public void calculateBMR(){
  57.  
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement