Skip to content

Commit d84db04

Browse files
committed
feat: HomeActivity 추가
1 parent 10a1ac4 commit d84db04

3 files changed

Lines changed: 39 additions & 5 deletions

File tree

app/src/main/AndroidManifest.xml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@
2121
android:roundIcon="@mipmap/ic_launcher_round"
2222
android:supportsRtl="true"
2323
android:theme="@style/Theme.Hackseoulandroid"
24-
tools:targetApi="31"
25-
android:usesCleartextTraffic="true">
26-
<activity
24+
android:usesCleartextTraffic="true"
25+
tools:targetApi="31">
26+
<activity
27+
android:name=".view.HomeActivity"
28+
android:exported="false" />
29+
<activity
2730
android:name=".view.LoginActivity"
2831
android:exported="false" />
2932
<activity
@@ -42,8 +45,8 @@
4245
<category android:name="android.intent.category.BROWSABLE" />
4346

4447
<data
45-
android:scheme="hackseoul-seogaemo"
46-
android:host="item" />
48+
android:host="item"
49+
android:scheme="hackseoul-seogaemo" />
4750
</intent-filter>
4851
</activity>
4952
<activity
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.seogaemo.hackseoul_android.view
2+
3+
import android.os.Bundle
4+
import androidx.activity.enableEdgeToEdge
5+
import androidx.appcompat.app.AppCompatActivity
6+
import androidx.core.view.ViewCompat
7+
import androidx.core.view.WindowInsetsCompat
8+
import com.seogaemo.hackseoul_android.R
9+
10+
class HomeActivity : AppCompatActivity() {
11+
override fun onCreate(savedInstanceState: Bundle?) {
12+
super.onCreate(savedInstanceState)
13+
enableEdgeToEdge()
14+
setContentView(R.layout.activity_home)
15+
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
16+
val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
17+
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
18+
insets
19+
}
20+
}
21+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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:id="@+id/main"
6+
android:layout_width="match_parent"
7+
android:layout_height="match_parent"
8+
tools:context=".view.HomeActivity">
9+
10+
</androidx.constraintlayout.widget.ConstraintLayout>

0 commit comments

Comments
 (0)