diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index d82a8f3..4ad593b 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -15,7 +15,8 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" - android:theme="@style/Theme.NextLocation"> + android:theme="@style/Theme.NextLocation" + android:hardwareAccelerated="false"> diff --git a/app/src/main/java/com/a1/nextlocation/fragments/LocationDetailFragment.java b/app/src/main/java/com/a1/nextlocation/fragments/LocationDetailFragment.java index dc58ce3..1160e15 100644 --- a/app/src/main/java/com/a1/nextlocation/fragments/LocationDetailFragment.java +++ b/app/src/main/java/com/a1/nextlocation/fragments/LocationDetailFragment.java @@ -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();