Permalink
Browse files

preparations for displaying allergies

  • Loading branch information...
1 parent b5603af commit 16dcffcb8c52821c1fd90d3256ba21df4cf59672 @vIiRuS committed Feb 17, 2012
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -51,7 +51,7 @@
android:textSize="14dp"
android:textStyle="bold"
android:typeface="serif" />
-
+
<ImageView
android:id="@+id/bioImageView"
android:layout_width="17dp"
@@ -65,9 +65,17 @@
android:layout_width="17dp"
android:layout_height="17dp"
android:layout_alignParentTop="true"
- android:layout_marginLeft="14dp"
android:layout_toLeftOf="@+id/bioImageView" />
+ <ImageView
+ android:id="@+id/allergyImageView"
+ android:layout_width="17dp"
+ android:layout_height="17dp"
+ android:layout_alignParentTop="true"
+ android:layout_marginLeft="14dp"
+ android:src="@drawable/allergisch_siegel"
+ android:layout_toLeftOf="@+id/veganVegetarianImageView" />
+
<ListView
android:id="@+id/additionsListView"
android:layout_width="match_parent"
View
@@ -105,4 +105,7 @@
<string name="save">Save</string>
<string name="bio">Bio</string>
<string name="fish">MSC certified fish</string>
+ <string name="allergies">Allergies</string>
+ <string name="selectAllergies">Select the allergies you have.</string>
+ <string-array name="allergiesNames"></string-array>
</resources>
@@ -135,8 +135,10 @@ public View getAmazingView(int position, View convertView, ViewGroup parent) {
veganVegetarianImageView.setVisibility(View.VISIBLE);
veganVegetarianImageView.setImageResource(m);
} else {
- veganVegetarianImageView.setVisibility(View.GONE);
+ veganVegetarianImageView.setVisibility(View.INVISIBLE);
}
+
+ res.findViewById(R.id.allergyImageView).setVisibility(View.GONE);
List<String> additionList = meal.getAdditions();
if (!additionList.isEmpty()) {
AdditionAdapter additionAdapter = new AdditionAdapter(context, R.layout.addition_list_item, additionList);

0 comments on commit 16dcffc

Please sign in to comment.