Commit 46e5131c authored by james.clarke2's avatar james.clarke2

Delete Review.java

parent 01073248
package com.example.carrentals;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
public class Review extends AppCompatActivity {
String items[] = new String [] {"Audi, Review constant flat tire, ","Toyota, Review Good gas mileage, ","Honda, Review "};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_review);
ListView listView = (ListView) findViewById(R.id.listView2);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_2, items);
listView.setAdapter(adapter);
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Toast.makeText(Review.this, items[position], Toast.LENGTH_SHORT).show();
}
});
}
public void goToUpdateStatus(View v) {
Intent intent = new Intent(this, UpdateStatus.class);
startActivity(intent);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment