Skip to content

Commit

Permalink
#74 [chore] drawable 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
KWY0218 committed Jul 18, 2022
1 parent 5ae7853 commit e583e7f
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<uses-permission android:name="android.permission.INTERNET" />

<application
android:usesCleartextTraffic="true"
android:name=".App"
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
Expand All @@ -16,7 +15,11 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.HousAos"
android:usesCleartextTraffic="true"
tools:targetApi="31">
<activity
android:name=".SettingActivity"
android:exported="false" />
<activity
android:name=".ui.newrules.NewRuleActivity"
android:exported="false" />
Expand All @@ -40,4 +43,4 @@
</activity>
</application>

</manifest>
</manifest>
12 changes: 12 additions & 0 deletions app/src/main/java/com/hous/hous_aos/ui/profile/SettingActivity.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.hous.hous_aos.ui.profile

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

class SettingActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_setting)
}
}
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/ic_alarmoff_red.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="48dp"
android:height="48dp"
android:viewportWidth="48"
android:viewportHeight="48">
<path
android:pathData="M17,22a6.908,6.908 0,0 1,3.491 -6.053A6.81,6.81 0,0 1,24 15c1.275,0 2.444,0.316 3.509,0.947a6.809,6.809 0,0 1,2.544 2.544A6.81,6.81 0,0 1,31 22v9L17,31v-9zM33,31h-4v-2h4v2zM15,29h4v2h-4v-2zM25.737,32c0.246,0.468 0.316,0.936 0.21,1.404a1.942,1.942 0,0 1,-0.701 1.157A1.929,1.929 0,0 1,24 35c-0.468,0 -0.883,-0.146 -1.246,-0.439a2.061,2.061 0,0 1,-0.701 -1.157c-0.106,-0.468 -0.036,-0.936 0.21,-1.404h3.474zM22,16c0,-0.363 0.088,-0.696 0.263,-1 0.187,-0.304 0.433,-0.544 0.737,-0.72 0.316,-0.186 0.65,-0.28 1,-0.28 0.363,0 0.696,0.094 1,0.28 0.304,0.176 0.544,0.416 0.72,0.72 0.186,0.304 0.28,0.637 0.28,1v1.263c-1.064,-0.175 -1.731,-0.263 -2,-0.263 -0.269,0 -0.936,0.088 -2,0.263L22,16z"
android:fillColor="#FFDEDE"/>
</vector>
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/ic_alarmon_red.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="48dp"
android:height="48dp"
android:viewportWidth="48"
android:viewportHeight="48">
<path
android:pathData="M17,22a6.908,6.908 0,0 1,3.491 -6.053A6.81,6.81 0,0 1,24 15c1.275,0 2.444,0.316 3.509,0.947a6.809,6.809 0,0 1,2.544 2.544A6.81,6.81 0,0 1,31 22v9L17,31v-9zM33,31h-4v-2h4v2zM15,29h4v2h-4v-2zM25.737,32c0.246,0.468 0.316,0.936 0.21,1.404a1.942,1.942 0,0 1,-0.701 1.157A1.929,1.929 0,0 1,24 35c-0.468,0 -0.883,-0.146 -1.246,-0.439a2.061,2.061 0,0 1,-0.701 -1.157c-0.106,-0.468 -0.036,-0.936 0.21,-1.404h3.474zM22,16c0,-0.363 0.088,-0.696 0.263,-1 0.187,-0.304 0.433,-0.544 0.737,-0.72 0.316,-0.186 0.65,-0.28 1,-0.28 0.363,0 0.696,0.094 1,0.28 0.304,0.176 0.544,0.416 0.72,0.72 0.186,0.304 0.28,0.637 0.28,1v1.263c-1.064,-0.175 -1.731,-0.263 -2,-0.263 -0.269,0 -0.936,0.088 -2,0.263L22,16z"
android:fillColor="#F66"/>
</vector>
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/ic_next.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="48dp"
android:height="48dp"
android:viewportWidth="48"
android:viewportHeight="48">
<path
android:pathData="M31,22.268c1.333,0.77 1.333,2.694 0,3.464l-9,5.196c-1.333,0.77 -3,-0.192 -3,-1.732V18.804c0,-1.54 1.667,-2.502 3,-1.732l9,5.196z"
android:fillColor="#C8C8C8"/>
</vector>
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/sel_setting_alarm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ic_alarmoff_red" android:state_selected="false" />
<item android:drawable="@drawable/ic_alarmon_red" android:state_selected="true" />
</selector>
9 changes: 9 additions & 0 deletions app/src/main/res/layout/activity_setting.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?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.profile.SettingActivity">

</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit e583e7f

Please sign in to comment.