Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CS123-CanteeneoAndroid
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Willard Torres
CS123-CanteeneoAndroid
Commits
f5c51e6b
Commit
f5c51e6b
authored
Nov 18, 2016
by
Tup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the cuisine filters
parent
1d28ae86
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
4 deletions
+69
-4
DishViewActivity.java
app/src/main/java/com/testapp/DishViewActivity.java
+11
-0
activity_nav_drawer.xml
app/src/main/res/layout/activity_nav_drawer.xml
+52
-1
content_dish_view.xml
app/src/main/res/layout/content_dish_view.xml
+6
-3
No files found.
app/src/main/java/com/testapp/DishViewActivity.java
View file @
f5c51e6b
package
com
.
testapp
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.support.v7.app.AppCompatActivity
;
import
android.support.v7.widget.Toolbar
;
import
android.view.MenuItem
;
import
android.widget.TextView
;
public
class
DishViewActivity
extends
AppCompatActivity
{
...
...
@@ -18,6 +20,15 @@ public class DishViewActivity extends AppCompatActivity {
getSupportActionBar
().
setDisplayShowHomeEnabled
(
true
);
setTitle
(
"Dish Pls"
);
TextView
dishStall
=
(
TextView
)
findViewById
(
R
.
id
.
dish_stall
);
}
public
void
visitStall
()
{
Intent
intent
=
new
Intent
(
this
,
StallViewActivity
.
class
);
startActivity
(
intent
);
}
@Override
...
...
app/src/main/res/layout/activity_nav_drawer.xml
View file @
f5c51e6b
...
...
@@ -110,6 +110,57 @@
android:drawableRight=
"?android:attr/listChoiceIndicatorMultiple"
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
android:typeface=
"monospace"
android:text=
"@string/drawer_4"
...
...
@@ -164,11 +215,11 @@
android:paddingLeft=
"20dp"
/>
<CheckBox
android:typeface=
"monospace"
android:text=
"@string/drawer_5_3"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:id=
"@+id/nav_zekaf"
android:typeface=
"monospace"
android:checked=
"false"
android:button=
"@null"
android:drawableRight=
"?android:attr/listChoiceIndicatorMultiple"
...
...
app/src/main/res/layout/content_dish_view.xml
View file @
f5c51e6b
...
...
@@ -56,7 +56,8 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:id=
"@+id/textView6"
android:layout_weight=
"1"
/>
android:layout_weight=
"1"
android:paddingTop=
"5dp"
/>
<TextView
android:text=
"Stall"
...
...
@@ -64,13 +65,16 @@
android:layout_height=
"wrap_content"
android:id=
"@+id/dish_stall"
android:layout_weight=
"1"
android:clickable=
"true"
/>
android:paddingTop=
"5dp"
android:clickable=
"true"
android:onClick=
"visitStall"
/>
<TextView
android:text=
"Location"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:id=
"@+id/textView8"
android:paddingTop=
"5dp"
android:layout_weight=
"1"
/>
<Button
...
...
@@ -78,7 +82,6 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:id=
"@+id/dish_favorite"
android:layout_marginTop=
"10dp"
android:layout_marginBottom=
"10dp"
android:layout_weight=
"1"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment