stuff merge iewl
This commit is contained in:
@@ -11,6 +11,7 @@ import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.a1.nextlocation.R;
|
||||
import com.a1.nextlocation.data.Location;
|
||||
@@ -20,6 +21,8 @@ public class LocationDetailFragment extends Fragment {
|
||||
|
||||
private ImageButton imageButton;
|
||||
private Location location;
|
||||
private TextView titelText;
|
||||
private TextView detailText;
|
||||
|
||||
public LocationDetailFragment() {
|
||||
|
||||
@@ -38,6 +41,13 @@ public class LocationDetailFragment extends Fragment {
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||
|
||||
View view = inflater.inflate(R.layout.fragment_location_detail, container, false);
|
||||
|
||||
this.titelText = view.findViewById(R.id.detail_location_name);
|
||||
this.titelText.setText(location.getName());
|
||||
|
||||
this.detailText = view.findViewById(R.id.detail_location_text);
|
||||
this.detailText.setText(location.getDescription());
|
||||
|
||||
this.imageButton = view.findViewById(R.id.detail_location_back_button);
|
||||
this.imageButton.setOnClickListener(v -> {
|
||||
LocationFragment locationFragment = new LocationFragment();
|
||||
|
||||
Reference in New Issue
Block a user