Skip to content

Commit b81a061

Browse files
Implementar a interface a Tab de Owner (#32)
* Implementar a interface a Tab de Owner * Implementação dos id nos componentes IU
1 parent 39d9327 commit b81a061

File tree

3 files changed

+88
-0
lines changed

3 files changed

+88
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.devpass.githubapp.presentation
2+
3+
import android.os.Bundle
4+
import androidx.fragment.app.Fragment
5+
import android.view.LayoutInflater
6+
import android.view.View
7+
import android.view.ViewGroup
8+
import com.devpass.githubapp.R
9+
10+
class RepositoryOwnerFragment : Fragment() {
11+
12+
override fun onCreateView(
13+
inflater: LayoutInflater, container: ViewGroup?,
14+
savedInstanceState: Bundle?
15+
): View? {
16+
// Inflate the layout for this fragment
17+
return inflater.inflate(R.layout.fragment_repository_owner, container, false)
18+
}
19+
}
Loading
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:app="http://schemas.android.com/apk/res-auto"
4+
xmlns:tools="http://schemas.android.com/tools"
5+
android:layout_width="match_parent"
6+
android:layout_height="match_parent"
7+
tools:context=".presentation.RepositoryOwnerFragment">
8+
9+
<!-- TODO: Update blank fragment layout -->
10+
<com.google.android.material.card.MaterialCardView
11+
android:id="@+id/card"
12+
android:layout_width="match_parent"
13+
android:layout_height="wrap_content"
14+
app:layout_constraintEnd_toEndOf="parent"
15+
app:layout_constraintStart_toStartOf="parent"
16+
app:layout_constraintTop_toTopOf="parent">
17+
18+
<LinearLayout
19+
android:layout_width="match_parent"
20+
android:layout_height="wrap_content"
21+
android:orientation="vertical">
22+
23+
<!-- Media -->
24+
<ImageView
25+
android:id="@+id/imageOwner"
26+
android:layout_width="match_parent"
27+
android:layout_height="144dp"
28+
android:contentDescription="content_description_logo"
29+
android:scaleType="centerCrop"
30+
android:src="@drawable/image_owner" />
31+
32+
<TextView
33+
android:id="@+id/nomeOwner"
34+
android:layout_width="wrap_content"
35+
android:layout_height="wrap_content"
36+
android:layout_marginStart="14.93dp"
37+
android:layout_marginTop="11.99dp"
38+
android:text="Rodrigo Borges"
39+
android:textAppearance="?attr/textAppearanceHeadline6"
40+
android:textStyle="bold" />
41+
42+
<LinearLayout
43+
android:layout_width="match_parent"
44+
android:layout_height="wrap_content"
45+
android:layout_marginStart="14.93dp"
46+
android:layout_marginTop="11.85dp"
47+
android:layout_marginEnd="14.93dp"
48+
android:layout_marginBottom="14.39dp"
49+
android:orientation="vertical">
50+
51+
<!-- Title, secondary and supporting text -->
52+
53+
<TextView
54+
android:id="@+id/bioOwner"
55+
android:layout_width="match_parent"
56+
android:layout_height="match_parent"
57+
android:maxLines="3"
58+
android:text="Mobile Tech Lead"
59+
android:textAppearance="?attr/textAppearanceBody2"
60+
android:textColor="@color/gray" />
61+
62+
63+
</LinearLayout>
64+
65+
</LinearLayout>
66+
67+
</com.google.android.material.card.MaterialCardView>
68+
69+
</androidx.constraintlayout.widget.ConstraintLayout>

0 commit comments

Comments
 (0)