Commit f5c51e6b authored by Tup's avatar Tup

Added the cuisine filters

parent 1d28ae86
package com.testapp; package com.testapp;
import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.support.v7.app.AppCompatActivity; import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar; import android.support.v7.widget.Toolbar;
import android.view.MenuItem; import android.view.MenuItem;
import android.widget.TextView;
public class DishViewActivity extends AppCompatActivity { public class DishViewActivity extends AppCompatActivity {
...@@ -18,6 +20,15 @@ public class DishViewActivity extends AppCompatActivity { ...@@ -18,6 +20,15 @@ public class DishViewActivity extends AppCompatActivity {
getSupportActionBar().setDisplayShowHomeEnabled(true); getSupportActionBar().setDisplayShowHomeEnabled(true);
setTitle("Dish Pls"); setTitle("Dish Pls");
TextView dishStall = (TextView) findViewById(R.id.dish_stall);
}
public void visitStall() {
Intent intent = new Intent(this, StallViewActivity.class);
startActivity(intent);
} }
@Override @Override
......
...@@ -110,6 +110,57 @@ ...@@ -110,6 +110,57 @@
android:drawableRight="?android:attr/listChoiceIndicatorMultiple" android:drawableRight="?android:attr/listChoiceIndicatorMultiple"
android:paddingLeft="20dp" /> android:paddingLeft="20dp" />
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:text="Cuisine"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textView4"
android:textSize="14sp"
android:textColor="#000000"
android:fontFamily="monospace"
android:typeface="monospace"
android:paddingBottom="5dp"
android:paddingLeft="10dp" />
<CheckBox
android:text="American"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/cuisine_american"
android:typeface="monospace"
android:checked="false"
android:button="@null"
android:drawableRight="?android:attr/listChoiceIndicatorMultiple"
android:paddingLeft="20dp" />
<CheckBox
android:text="Japanese"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/cuisine_japanese"
android:typeface="monospace"
android:checked="false"
android:button="@null"
android:drawableRight="?android:attr/listChoiceIndicatorMultiple"
android:paddingLeft="20dp" />
<CheckBox
android:text="Chinese"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/cuisine_chinese"
android:typeface="monospace"
android:checked="false"
android:button="@null"
android:drawableRight="?android:attr/listChoiceIndicatorMultiple"
android:paddingLeft="20dp" />
</LinearLayout>
<TextView <TextView
android:typeface="monospace" android:typeface="monospace"
android:text="@string/drawer_4" android:text="@string/drawer_4"
...@@ -164,11 +215,11 @@ ...@@ -164,11 +215,11 @@
android:paddingLeft="20dp" /> android:paddingLeft="20dp" />
<CheckBox <CheckBox
android:typeface="monospace"
android:text="@string/drawer_5_3" android:text="@string/drawer_5_3"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:id="@+id/nav_zekaf" android:id="@+id/nav_zekaf"
android:typeface="monospace"
android:checked="false" android:checked="false"
android:button="@null" android:button="@null"
android:drawableRight="?android:attr/listChoiceIndicatorMultiple" android:drawableRight="?android:attr/listChoiceIndicatorMultiple"
......
...@@ -56,7 +56,8 @@ ...@@ -56,7 +56,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:id="@+id/textView6" android:id="@+id/textView6"
android:layout_weight="1" /> android:layout_weight="1"
android:paddingTop="5dp" />
<TextView <TextView
android:text="Stall" android:text="Stall"
...@@ -64,13 +65,16 @@ ...@@ -64,13 +65,16 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:id="@+id/dish_stall" android:id="@+id/dish_stall"
android:layout_weight="1" android:layout_weight="1"
android:clickable="true"/> android:paddingTop="5dp"
android:clickable="true"
android:onClick="visitStall"/>
<TextView <TextView
android:text="Location" android:text="Location"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:id="@+id/textView8" android:id="@+id/textView8"
android:paddingTop="5dp"
android:layout_weight="1" /> android:layout_weight="1" />
<Button <Button
...@@ -78,7 +82,6 @@ ...@@ -78,7 +82,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:id="@+id/dish_favorite" android:id="@+id/dish_favorite"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp" android:layout_marginBottom="10dp"
android:layout_weight="1" /> android:layout_weight="1" />
......
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