신기성

refactor activity name

......@@ -9,14 +9,13 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/NoActionBar">
<activity android:name=".WelcomeActivity"></activity>
<activity android:name=".OnboardingActivity" />
<activity android:name=".PushingActivity" />
<activity android:name=".InputProfilActivity"></activity>
<activity android:name=".WelcomeActivity" />
<activity android:name=".SettingActivity" />
<activity android:name=".DetailActivity" />
<activity android:name=".InfoActivity" />
<activity android:name=".FavoritesActivity" />
<activity android:name=".RecommendActivity" />
<activity android:name=".WelcomeActivity" />
<activity android:name=".SignInActivity" />
<activity android:name=".SignUpActivity" />
<activity android:name=".MainActivity" />
......
......@@ -28,7 +28,7 @@ class InfoActivity : AppCompatActivity() {
//pushing test start
InfoButtonSettings.setOnClickListener {
var intent = Intent(this, PushingActivity::class.java)
var intent = Intent(this, SettingActivity::class.java)
startActivity(intent)
}
//pushing test end
......
package com.example.vip
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class InputProfilActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_input_profil)
}
}
package com.example.vip
import android.graphics.drawable.Drawable
import android.graphics.drawable.TransitionDrawable
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.ImageButton
import android.widget.Toast
import com.google.firebase.messaging.FirebaseMessaging
import kotlinx.android.synthetic.main.activity_pushing.*
import kotlinx.android.synthetic.main.activity_setting.*
class PushingActivity : AppCompatActivity() {
class SettingActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_pushing)
setContentView(R.layout.activity_setting)
subscribeButton.setOnClickListener {
Log.d(TAG, "Subscribing to weather topic")
......@@ -35,6 +31,6 @@ class PushingActivity : AppCompatActivity() {
}
companion object {
private const val TAG = "PushingActivity"
private const val TAG = "SettingActivity"
}
}
......
<?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=".InputProfilActivity">
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".PushingActivity">
tools:context=".SettingActivity">
<Button
android:id="@+id/subscribeButton"
......@@ -17,19 +17,21 @@
android:text="Button"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0" />
<ToggleButton
android:id="@+id/toggleButton"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginEnd="126dp"
android:layout_marginBottom="98dp"
android:layout_marginEnd="72dp"
android:layout_marginBottom="620dp"
android:background="@drawable/toggle_selector"
android:text="ToggleButton"
android:textOn=""
android:textOff=""
android:background="@drawable/toggle_selector"
android:textOn=""
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
......