Skip to content

Commit

Permalink
feat: 상품 링크 도움말 액티비티 추가, 웹 뷰 연결
Browse files Browse the repository at this point in the history
  • Loading branch information
ootr47 committed Dec 7, 2023
1 parent 61609c2 commit 20e45cb
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 11 deletions.
14 changes: 3 additions & 11 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
android:supportsRtl="true"
android:theme="@style/Theme.PriceGuard"
tools:targetApi="34">

<activity
android:name=".ui.additem.link.LinkHelperWebViewActivity"
android:exported="false" />
<activity
android:name=".ui.splash.SplashScreenActivity"
android:exported="true">
Expand All @@ -24,27 +26,21 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity
android:name=".ui.intro.IntroActivity"
android:exported="false" />

<activity
android:name=".ui.login.LoginActivity"
android:exported="false" />

<activity
android:name=".ui.signup.SignupActivity"
android:exported="false" />

<activity
android:name=".ui.home.HomeActivity"
android:exported="false" />

<activity
android:name=".ui.additem.AddItemActivity"
android:exported="true">

<intent-filter>
<action android:name="android.intent.action.SEND" />

Expand All @@ -53,12 +49,10 @@
<data android:mimeType="text/plain" />
</intent-filter>
</activity>

<activity
android:name=".ui.detail.DetailActivity"
android:exported="true"
android:launchMode="singleTask">

<intent-filter>
<action android:name="android.intent.action.VIEW" />

Expand All @@ -70,11 +64,9 @@
android:scheme="priceguard" />
</intent-filter>
</activity>

<activity
android:name="com.google.android.gms.oss.licenses.OssLicensesMenuActivity"
android:theme="@style/Theme.PriceGuard.WithActionBar" />

<activity
android:name="com.google.android.gms.oss.licenses.OssLicensesActivity"
android:theme="@style/Theme.PriceGuard.WithActionBar" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package app.priceguard.ui.additem.link

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import app.priceguard.databinding.ActivityLinkHelperWebViewBinding

class LinkHelperWebViewActivity : AppCompatActivity() {

private lateinit var binding: ActivityLinkHelperWebViewBinding

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

binding = ActivityLinkHelperWebViewBinding.inflate(layoutInflater)
setContentView(binding.root)

binding.wbLinkHelper.loadUrl("https://info-kr.priceguard.app/")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ class RegisterItemLinkFragment : Fragment() {

initCollector()
initEvent()

binding.tvRegisterItemHelper.setOnClickListener {
val intent = Intent(requireActivity(), LinkHelperWebViewActivity::class.java)
startActivity(intent)
}
}

private fun setLinkText() {
Expand Down
21 changes: 21 additions & 0 deletions android/app/src/main/res/layout/activity_link_helper_web_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<layout 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">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.additem.link.LinkHelperWebViewActivity">

<WebView
android:id="@+id/wb_link_helper"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
</layout>

0 comments on commit 20e45cb

Please sign in to comment.