-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #557 from HackIllinois/aditya/home-page
Home Page + Scanner Page + Splash Screen Page 2025
- Loading branch information
Showing
53 changed files
with
20,682 additions
and
143 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
app/src/main/java/org/hackillinois/android/database/entity/Cart.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.hackillinois.android.database.entity | ||
|
||
import androidx.room.Entity | ||
import androidx.room.PrimaryKey | ||
|
||
@Entity(tableName = "cart") | ||
data class Cart( | ||
@PrimaryKey val userId: String, | ||
val items: Map<String, Int> // Maps itemId to quantity | ||
) |
3 changes: 3 additions & 0 deletions
3
app/src/main/java/org/hackillinois/android/model/scanner/QRCode.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package org.hackillinois.android.model.scanner | ||
|
||
data class QRCode(val QRCode: String) |
2 changes: 1 addition & 1 deletion
2
app/src/main/java/org/hackillinois/android/model/scanner/UserEventPair.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package org.hackillinois.android.model.scanner | ||
|
||
data class UserEventPair(val attendeeJWT: String, val eventId: String) | ||
data class UserEventPair(val eventId: String, val attendeeQRCode: String) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...c/main/java/org/hackillinois/android/view/scanner/buttons/ModerateOrangeAnimatedButton.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package org.hackillinois.android.view.scanner.buttons | ||
|
||
import android.content.Context | ||
import android.util.AttributeSet | ||
import android.view.MotionEvent | ||
import org.hackillinois.android.R | ||
|
||
class ModerateOrangeAnimatedButton : androidx.appcompat.widget.AppCompatButton { | ||
constructor(context: Context?) : super(context!!) {} | ||
constructor(context: Context?, attrs: AttributeSet?) : super(context!!, attrs) {} | ||
constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context!!, attrs, defStyle) { | ||
} | ||
|
||
override fun onTouchEvent(event: MotionEvent?): Boolean { | ||
if (event != null) { | ||
val scale = resources.displayMetrics.density | ||
val dpAsPixels20 = (20 * scale + 0.5f).toInt() | ||
val dpAsPixels30 = (30 * scale + 0.5f).toInt() | ||
if (event.action == MotionEvent.ACTION_DOWN) { | ||
setPadding(0, dpAsPixels30, 0, dpAsPixels20) | ||
setBackgroundResource(R.drawable.moderateorange_scanner_button_pressed) | ||
} else if (event.action == MotionEvent.ACTION_UP || event.action == MotionEvent.ACTION_CANCEL) { | ||
setPadding(0, dpAsPixels20, 0, dpAsPixels30) | ||
setBackgroundResource(R.drawable.moderateorange_scanner_button) | ||
} | ||
} | ||
return super.onTouchEvent(event) | ||
} | ||
} |
Oops, something went wrong.