stuff merge iewl

This commit is contained in:
Sem van der Hoeven
2021-01-06 14:12:59 +01:00
parent 68f2855a66
commit e90582b539
2 changed files with 12 additions and 1 deletions

View File

@@ -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">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

View File

@@ -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();