Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #14 #21

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Issue #14 #21

wants to merge 2 commits into from

Conversation

selahattinkole
Copy link

No description provided.

@@ -47,6 +47,9 @@ dependencies {
testImplementation(TestLibraries.jUnit)
androidTestImplementation(TestLibraries.runnner)
androidTestImplementation(TestLibraries.espressoCore)

//Third Party Libraries

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could delete this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets keep it. there are other comments like this in this file.

Copy link

@mertceyhan mertceyhan Jan 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can delete all comments in the file. naming is clear enough, we don't need to comments.

var eventID = args.eventID

viewModel.getEvent(eventID)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could delete unnecessary spaces.

@@ -0,0 +1,166 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all dp values can coming from dimens folder

android:layout_width="match_parent"
android:layout_height="match_parent">

<androidx.constraintlayout.widget.ConstraintLayout
Copy link

@mertceyhan mertceyhan Jan 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using ConstraintLayout in ConstraintLayout isn't recommended situation. Is there any better way?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If ConstrainsLayout is used somewhere, we shouldn't need another layout type. That's because you can position any view wherever you want. ConstraintLayout provides this functionality with its powerful attributes.

app/src/main/res/values/colors.xml Show resolved Hide resolved
buildSrc/src/main/java/Dependencies.kt Show resolved Hide resolved
@@ -28,5 +29,8 @@ class EventListFragment : Fragment() {
val eventID = (0..99999999).random()
navigate(EventListFragmentDirections.actionEventListFragmentToUserListFragment(eventID))
}

// val event:Event = Event()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could delete this if It's unnecessary


@Serialization
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you don't need to use it. Moshi provides that

buildSrc/src/main/java/Dependencies.kt Show resolved Hide resolved
Comment on lines +45 to +50
//TODO need event photo link
// Glide.with(context)
// .load(event.)
// .transition(DrawableTransitionOptions.withCrossFade())
// .skipMemoryCache(true)
// .into(ivImage)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm I checked the api and seems like we are not able to get the image from the api so we need to remove the image and move the rest of the page up

Comment on lines +41 to +43
btnCheckIn.setOnClickListener {
//TODO attendees page
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please do. navigate to UserListFragment and use safe args to pass eventid.

Comment on lines +49 to +86
<com.google.android.material.textview.MaterialTextView
android:id="@+id/txtEventName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="24dp"
android:fontFamily="@font/nunito_extrabold"
android:textColor="@color/dark_grey_blue"
android:textSize="16sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="GDG DevFest Istanbul 2019" />

<com.google.android.material.textview.MaterialTextView
android:id="@+id/txtEventDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:fontFamily="@font/nunito_semibold"
android:textColor="@color/text_color"
android:textSize="12sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/txtEventName"
tools:text="24 Aug, 2pm" />

<com.google.android.material.textview.MaterialTextView
android:id="@+id/txtEventVenue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:fontFamily="@font/nunito_semibold"
android:textColor="@color/text_color"
android:textSize="12sp"
app:layout_constraintStart_toStartOf="@id/txtEventDate"
app:layout_constraintTop_toBottomOf="@id/txtEventDate"
tools:text="Kolektif House Maslak" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use or add text styles defined in app/src/main/res/values/type.xml

@@ -47,6 +47,9 @@ dependencies {
testImplementation(TestLibraries.jUnit)
androidTestImplementation(TestLibraries.runnner)
androidTestImplementation(TestLibraries.espressoCore)

//Third Party Libraries
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets keep it. there are other comments like this in this file.

txtEventDate.text = event.localDate
txtEventVenue.text = event.venue?.name

txtAttendee.text = "${event.yesRsvpCount} Attendees"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use strings.xml

Comment on lines 15 to +16
const val moshiConverter = "com.squareup.retrofit2:converter-moshi:2.5.0"
const val glide = "com.github.bumptech.glide:glide:4.10.0"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Versions should be defined in the separated class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants