stuff merge iewl
This commit is contained in:
@@ -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" />
|
||||
|
||||
@@ -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