Skip to content

Commit

Permalink
#62 [chore] activity, screen 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
KWY0218 committed Jul 16, 2022
1 parent 0481b0a commit c2eea87
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@
android:supportsRtl="true"
android:theme="@style/Theme.HousAos"
tools:targetApi="31">
<activity
android:name=".EditRulesActivity"
android:exported="false" />
<activity
android:name=".ui.newrules.NewRuleActivity"
android:exported="true" >
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand All @@ -27,9 +30,7 @@
</activity>
<activity
android:name=".ui.main.MainActivity"
android:exported="true">

</activity>
android:exported="true"></activity>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.hous.hous_aos.ui.editrules

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.hous.hous_aos.databinding.ActivityEditRulesBinding

class EditRulesActivity : AppCompatActivity() {
private lateinit var binding: ActivityEditRulesBinding
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
binding = ActivityEditRulesBinding.inflate(layoutInflater)
setContentView(binding.root)
binding.cvEditRuleScreen.setContent { EditRulesScreen() }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.hous.hous_aos.ui.editrules

import androidx.compose.runtime.Composable

@Composable
fun EditRulesScreen() {
}
14 changes: 14 additions & 0 deletions app/src/main/res/layout/activity_edit_rules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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_height="match_parent"
tools:context=".ui.editrules.EditRulesActivity">

<androidx.compose.ui.platform.ComposeView
android:id="@+id/cv_edit_rule_screen"
android:layout_width="match_parent"
android:layout_height="match_parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit c2eea87

Please sign in to comment.