soonmyeong2

change datail view

package com.example.vip
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.graphics.drawable.GradientDrawable
import android.os.Bundle
import android.util.Half.toFloat
import android.view.Menu
......@@ -104,8 +106,11 @@ class DetailActivity : AppCompatActivity() {
}
////bottom navigation view operation start 2
bottomBar=supportActionBar!!
val bottomNavigation: BottomNavigationView =findViewById(R.id.bottomNavigation)
val bottomNavigation: BottomNavigationView =findViewById(R.id.rightBottomBVW)
bottomNavigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
val bottomNavigation2: BottomNavigationView =findViewById(R.id.leftBottomBVW)
bottomNavigation2.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
////bottom navigation view operation end 2
......
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#29ABE2"/>
<stroke android:width="0dp"
android:color="#29ABE2"
/>
<padding android:left="0dp"
android:top="0dp"
android:right="0dp"
android:bottom="0dp"
/>
<corners android:bottomRightRadius="22dp" android:bottomLeftRadius="0dp"
android:topLeftRadius="0dp" android:topRightRadius="0dp"/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="10dp" />
</shape>
\ No newline at end of file
......@@ -4,6 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#fff"
tools:context=".RecommendActivity">
......@@ -23,7 +24,6 @@
android:layout_height="wrap_content"
android:layout_marginBottom="11dp"
android:background="#FFF"
android:elevation="5dp"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
......@@ -37,8 +37,13 @@
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
android:layout_weight="1">
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_weight="1"
android:elevation="5dp"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
......@@ -49,8 +54,9 @@
android:id="@+id/policyImageDetail"
android:layout_width="match_parent"
android:layout_height="200dp"
android:background="@drawable/round_ratangle"
android:scaleType="fitXY"
tools:srcCompat="@tools:sample/avatars" />
app:srcCompat="@drawable/image03" />
<LinearLayout
android:layout_width="match_parent"
......@@ -61,7 +67,7 @@
android:id="@+id/policyDdayDetail"
android:layout_width="77dp"
android:layout_height="44dp"
android:background="#9949ADF9"
android:background="@drawable/broken_rectangle"
android:gravity="center"
android:text="TextView"
android:textColor="#FFF"
......@@ -94,23 +100,55 @@
</LinearLayout>
</LinearLayout>
</ScrollView>
<FrameLayout
android:id="@+id/fragmentContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/fragmentContainer"
app:layout_constraintBottom_toBottomOf="parent"
>
app:layout_constraintBottom_toBottomOf="parent">
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigation"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#FFF"
app:itemIconTint="#29ABE2"
app:itemTextColor="#29ABE2"
app:labelVisibilityMode="labeled"
app:menu="@menu/detailpage_navigation" />
android:layout_height="match_parent"
android:elevation="5dp"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1.3"
android:orientation="horizontal">
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/leftBottomBVW"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#FFF"
app:itemIconTint="#DDDDDD"
app:labelVisibilityMode="unlabeled"
app:menu="@menu/detailpage_navigation" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="horizontal">
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/rightBottomBVW"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="@drawable/link1"
app:itemIconTint="#FFF"
app:itemTextColor="#FFF"
app:labelVisibilityMode="unlabeled"
app:menu="@menu/link_navigation" />
</LinearLayout>
</LinearLayout>
</FrameLayout>
</LinearLayout>
......
......@@ -4,19 +4,14 @@
<item
android:id="@+id/shareBtn"
android:enabled="true"
android:icon="@drawable/home"
android:icon="@drawable/heart_fill"
android:title="Share"
app:showAsAction="ifRoom" />
<item
android:id="@+id/favorBtn"
android:enabled="true"
android:icon="@drawable/wish"
android:icon="@drawable/share"
android:title="Heart"
app:showAsAction="ifRoom" />
<item
android:id="@+id/linkBtn"
android:enabled="true"
android:icon="@drawable/instagram"
android:title="Link"
app:showAsAction="ifRoom" />
</menu>
\ No newline at end of file
</menu>
......
<?xml version="1.0" encoding="utf-8"?>
<menu 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">
<item
android:id="@+id/linkBtn"
android:enabled="true"
android:icon="@drawable/link1"
android:title="사이트 바로가기"
app:showAsAction="ifRoom" />
</menu>