parent
e01dcf059b
commit
8577dabf76
@ -1,3 +1,5 @@
|
|||||||
package fr.uca.iut.clfreville2.teaiswarm.model
|
package fr.uca.iut.clfreville2.teaiswarm.model
|
||||||
|
|
||||||
data class Owner(val id: Int, val login: String)
|
import com.squareup.moshi.Json
|
||||||
|
|
||||||
|
data class Owner(val id: Int, val login: String, @Json(name = "avatar_url") val avatarUrl: String = "")
|
||||||
|
@ -1,27 +1,57 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
||||||
android:paddingHorizontal="@dimen/row_item_margin_horizontal"
|
android:paddingHorizontal="@dimen/row_item_margin_horizontal"
|
||||||
android:paddingTop="@dimen/row_item_margin_vertical">
|
android:paddingTop="4dp"
|
||||||
|
android:orientation="vertical">
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/commit_name"
|
android:id="@+id/commit_name"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textColor="?android:textColorPrimary"
|
tools:text="Initial commit" />
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
|
||||||
|
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:id="@+id/commit_author"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="0dp"
|
android:gravity="center_vertical"
|
||||||
android:paddingVertical="@dimen/row_item_margin_vertical"
|
android:orientation="horizontal">
|
||||||
android:text="@string/unknown"
|
<LinearLayout
|
||||||
android:textSize="@dimen/repo_description_size"
|
android:layout_width="wrap_content"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/commit_name" />
|
android:layout_weight="1"
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<com.google.android.material.card.MaterialCardView
|
||||||
|
android:id="@+id/commitAuthorAvatarFrame"
|
||||||
|
android:layout_width="@dimen/profile_image_size"
|
||||||
|
android:layout_height="@dimen/profile_image_size"
|
||||||
|
app:cardCornerRadius="12dp">
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/commit_author_avatar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:contentDescription="@string/unknown"
|
||||||
|
android:layout_marginEnd="4dp"
|
||||||
|
tools:srcCompat="@tools:sample/avatars" />
|
||||||
|
</com.google.android.material.card.MaterialCardView>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/commit_author"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
tools:text="anonymous"/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/commit_sha"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="0"
|
||||||
|
android:alpha=".8"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
tools:text="3d93bf0fda"/>
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
@ -1,30 +1,37 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent"
|
||||||
|
android:gravity="center"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:fitsSystemWindows="true"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
android:padding="@dimen/fab_margin">
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
<TextView
|
||||||
app:layout_constraintTop_toTopOf="parent">
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/login_start"
|
||||||
|
android:textSize="@dimen/text_size"
|
||||||
|
android:gravity="start" />
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/username_input"
|
android:id="@+id/username_input"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:autofillHints=""
|
android:hint="@string/username"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/configure_button" />
|
android:autofillHints="username"
|
||||||
|
android:inputType="textEmailAddress" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/configure_button"
|
android:id="@+id/configure_button"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/configure" />
|
android:text="@string/login" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
|
Loading…
Reference in new issue