Advertisement
Guest User

Untitled

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