Commit b01a4e24 authored by Fabius's avatar Fabius

Text und Bild von Mensa-Button in XML statt Java

parent afea8061
...@@ -38,11 +38,6 @@ public class AsistStartFragment extends AbstractASiSTFragment { ...@@ -38,11 +38,6 @@ public class AsistStartFragment extends AbstractASiSTFragment {
listView.setAdapter(adapter); listView.setAdapter(adapter);
linearLayout = (LinearLayout) view.findViewById(R.id.linearLayoutStartFragmentCanteenButton); linearLayout = (LinearLayout) view.findViewById(R.id.linearLayoutStartFragmentCanteenButton);
ImageView imageView = (ImageView) view.findViewById(R.id.imageViewStartFragmentCanteenButton);
TextView textView = (TextView) view.findViewById(R.id.textViewStartFragmentCanteenButton);
imageView.setImageResource(R.drawable.ic_menu_mensa);
textView.setText(R.string.module_canteen_name);
linearLayout.setOnClickListener(new View.OnClickListener() { linearLayout.setOnClickListener(new View.OnClickListener() {
@Override @Override
......
...@@ -121,6 +121,7 @@ ...@@ -121,6 +121,7 @@
android:id="@+id/textViewStartFragmentCanteenButton" android:id="@+id/textViewStartFragmentCanteenButton"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/module_canteen_name"
/> />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
......
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