Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Weight extends AppCompatActivity implements View.OnClickListener {
- public static AutoCompleteTextView userWeight;
- private Button secondPage;
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_weight);
- userWeight =(AutoCompleteTextView) findViewById(R.id.weight);
- secondPage = (Button) findViewById(R.id.toHeightPage);
- secondPage.setOnClickListener(this);
- }
- }
- private void enterWeight(){
- String weight = userWeight.getText().toString().trim();
- if(TextUtils.isEmpty(weight)){
- Toast.makeText(Weight.this,"Please Enter your weight", Toast.LENGTH_SHORT).show();
- return;
- }
- public class Main_Interface extends AppCompatActivity {
- public TextView results;
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main__interface);
- Toolbar toolbar = findViewById(R.id.toolbar1);
- setSupportActionBar(toolbar);
- results = (TextView)findViewById(R.id.results);
- }
- public void calculateBMR(){
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement