Skip to content

Commit

Permalink
Adds ShowRecipes dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
dieechtenilente committed Aug 22, 2018
1 parent 2c61ead commit 0106c22
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ private void updateMixtures() {
public void addCustomMixture() {
final Dialog dialog = new Dialog(this);
dialog.setContentView(R.layout.dialog_create_recipe);

/*
dialog.setTitle(R.string.add_Mixture);
final TextView title = (TextView) dialog.findViewById(android.R.id.title);
Expand Down
31 changes: 28 additions & 3 deletions app/src/main/res/layout/dialog_create_recipe.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"


<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">

</android.support.constraint.ConstraintLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">

<ImageView
android:id="@+id/image3"
android:layout_width="81dp"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:layout_weight="1"
android:contentDescription="@string/image"
android:cropToPadding="true"
android:gravity="center"
android:src="@mipmap/custom" />
</LinearLayout>

</LinearLayout>
</ScrollView>

0 comments on commit 0106c22

Please sign in to comment.