Skip to content

Commit b5b3d70

Browse files
Merge 7b76fe0 into 4585e8b
2 parents 4585e8b + 7b76fe0 commit b5b3d70

File tree

7 files changed

+64
-25
lines changed

7 files changed

+64
-25
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
tools:targetApi="31">
1616

1717
<activity
18-
android:name=".MainActivity"
18+
android:name=".HomeActivity"
1919
android:exported="true"
2020
android:theme="@style/Theme.Splash">
2121
<intent-filter>

app/src/main/java/com/viniciusjanner/android_github_actions/MainActivity.kt renamed to app/src/main/java/com/viniciusjanner/android_github_actions/HomeActivity.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ package com.viniciusjanner.android_github_actions
33
import android.os.Bundle
44
import androidx.appcompat.app.AppCompatActivity
55

6-
class MainActivity : AppCompatActivity() {
6+
class HomeActivity : AppCompatActivity() {
77

88
override fun onCreate(savedInstanceState: Bundle?) {
99
super.onCreate(savedInstanceState)
1010
Thread.sleep(1500)
11-
setTheme(R.style.Theme_Main)
12-
setContentView(R.layout.activity_main)
11+
setTheme(R.style.Theme_Home)
12+
setContentView(R.layout.activity_home)
1313
}
1414
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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=".HomeActivity">
8+
9+
<androidx.constraintlayout.widget.Guideline
10+
android:id="@+id/guideline"
11+
android:layout_width="wrap_content"
12+
android:layout_height="wrap_content"
13+
android:orientation="horizontal"
14+
app:layout_constraintGuide_percent="0.44" />
15+
16+
<ImageView
17+
android:id="@+id/imageView"
18+
android:layout_width="140dp"
19+
android:layout_height="140dp"
20+
android:layout_marginBottom="16dp"
21+
android:importantForAccessibility="no"
22+
app:layout_constraintBottom_toTopOf="@+id/guideline"
23+
app:layout_constraintEnd_toEndOf="parent"
24+
app:layout_constraintStart_toStartOf="parent"
25+
app:layout_constraintTop_toTopOf="parent"
26+
app:layout_constraintVertical_bias="1.0"
27+
app:srcCompat="@drawable/logo_github" />
28+
29+
<TextView
30+
android:id="@+id/title"
31+
android:layout_width="wrap_content"
32+
android:layout_height="wrap_content"
33+
android:text="@string/home_title"
34+
android:textSize="26sp"
35+
android:textStyle="bold"
36+
app:layout_constraintEnd_toEndOf="parent"
37+
app:layout_constraintStart_toStartOf="parent"
38+
app:layout_constraintTop_toTopOf="@+id/guideline" />
39+
40+
<TextView
41+
android:id="@+id/subtitle"
42+
android:layout_width="wrap_content"
43+
android:layout_height="wrap_content"
44+
android:layout_marginTop="12dp"
45+
android:gravity="center"
46+
android:lineSpacingExtra="4dp"
47+
android:text="@string/home_subtitle"
48+
android:textSize="18sp"
49+
app:layout_constraintBottom_toBottomOf="parent"
50+
app:layout_constraintEnd_toEndOf="@+id/title"
51+
app:layout_constraintStart_toStartOf="@+id/title"
52+
app:layout_constraintTop_toBottomOf="@+id/title"
53+
app:layout_constraintVertical_bias="0.0" />
54+
55+
</androidx.constraintlayout.widget.ConstraintLayout>

app/src/main/res/layout/activity_main.xml

Lines changed: 0 additions & 18 deletions
This file was deleted.

app/src/main/res/values-night/themes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<item name="android:windowLightStatusBar" tools:targetApi="m">true</item>
2323
</style>
2424

25-
<style name="Theme.Main" parent="Base.Theme">
25+
<style name="Theme.Home" parent="Base.Theme">
2626

2727
</style>
2828

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<resources>
22
<string name="app_name">Actions</string>
3-
</resources>
3+
<string name="home_title">GitHub Actions</string>
4+
<string name="home_subtitle">Implementação de pipeline\ncom GitHub Actions.</string>
5+
</resources>

app/src/main/res/values/themes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<item name="android:windowLightStatusBar" tools:targetApi="m">true</item>
2323
</style>
2424

25-
<style name="Theme.Main" parent="Base.Theme">
25+
<style name="Theme.Home" parent="Base.Theme">
2626

2727
</style>
2828

0 commit comments

Comments
 (0)