soonmyeong2

change datail view

1 package com.example.vip 1 package com.example.vip
2 2
3 import android.app.Activity 3 import android.app.Activity
4 +import android.content.Context
4 import android.content.Intent 5 import android.content.Intent
6 +import android.graphics.drawable.GradientDrawable
5 import android.os.Bundle 7 import android.os.Bundle
6 import android.util.Half.toFloat 8 import android.util.Half.toFloat
7 import android.view.Menu 9 import android.view.Menu
...@@ -104,8 +106,11 @@ class DetailActivity : AppCompatActivity() { ...@@ -104,8 +106,11 @@ class DetailActivity : AppCompatActivity() {
104 } 106 }
105 ////bottom navigation view operation start 2 107 ////bottom navigation view operation start 2
106 bottomBar=supportActionBar!! 108 bottomBar=supportActionBar!!
107 - val bottomNavigation: BottomNavigationView =findViewById(R.id.bottomNavigation) 109 + val bottomNavigation: BottomNavigationView =findViewById(R.id.rightBottomBVW)
108 bottomNavigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener) 110 bottomNavigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
111 + val bottomNavigation2: BottomNavigationView =findViewById(R.id.leftBottomBVW)
112 + bottomNavigation2.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
113 +
109 ////bottom navigation view operation end 2 114 ////bottom navigation view operation end 2
110 115
111 116
......
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<shape xmlns:android="http://schemas.android.com/apk/res/android">
3 + <solid android:color="#29ABE2"/>
4 +
5 + <stroke android:width="0dp"
6 + android:color="#29ABE2"
7 + />
8 +
9 + <padding android:left="0dp"
10 + android:top="0dp"
11 + android:right="0dp"
12 + android:bottom="0dp"
13 + />
14 +
15 + <corners android:bottomRightRadius="22dp" android:bottomLeftRadius="0dp"
16 + android:topLeftRadius="0dp" android:topRightRadius="0dp"/>
17 +</shape>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<shape xmlns:android="http://schemas.android.com/apk/res/android"
3 + android:shape="rectangle">
4 + <corners android:radius="10dp" />
5 +</shape>
...\ No newline at end of file ...\ No newline at end of file
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
4 xmlns:tools="http://schemas.android.com/tools" 4 xmlns:tools="http://schemas.android.com/tools"
5 android:layout_width="match_parent" 5 android:layout_width="match_parent"
6 android:layout_height="match_parent" 6 android:layout_height="match_parent"
7 + android:background="#fff"
7 tools:context=".RecommendActivity"> 8 tools:context=".RecommendActivity">
8 9
9 10
...@@ -23,7 +24,6 @@ ...@@ -23,7 +24,6 @@
23 android:layout_height="wrap_content" 24 android:layout_height="wrap_content"
24 android:layout_marginBottom="11dp" 25 android:layout_marginBottom="11dp"
25 android:background="#FFF" 26 android:background="#FFF"
26 - android:elevation="5dp"
27 android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" 27 android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
28 app:popupTheme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> 28 app:popupTheme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
29 29
...@@ -37,8 +37,13 @@ ...@@ -37,8 +37,13 @@
37 <ScrollView 37 <ScrollView
38 android:layout_width="match_parent" 38 android:layout_width="match_parent"
39 android:layout_height="match_parent" 39 android:layout_height="match_parent"
40 - android:fillViewport="true" 40 + android:layout_marginStart="8dp"
41 - android:layout_weight="1"> 41 + android:layout_marginLeft="8dp"
42 + android:layout_marginEnd="8dp"
43 + android:layout_marginRight="8dp"
44 + android:layout_weight="1"
45 + android:elevation="5dp"
46 + android:fillViewport="true">
42 47
43 <LinearLayout 48 <LinearLayout
44 android:layout_width="match_parent" 49 android:layout_width="match_parent"
...@@ -49,8 +54,9 @@ ...@@ -49,8 +54,9 @@
49 android:id="@+id/policyImageDetail" 54 android:id="@+id/policyImageDetail"
50 android:layout_width="match_parent" 55 android:layout_width="match_parent"
51 android:layout_height="200dp" 56 android:layout_height="200dp"
57 + android:background="@drawable/round_ratangle"
52 android:scaleType="fitXY" 58 android:scaleType="fitXY"
53 - tools:srcCompat="@tools:sample/avatars" /> 59 + app:srcCompat="@drawable/image03" />
54 60
55 <LinearLayout 61 <LinearLayout
56 android:layout_width="match_parent" 62 android:layout_width="match_parent"
...@@ -61,7 +67,7 @@ ...@@ -61,7 +67,7 @@
61 android:id="@+id/policyDdayDetail" 67 android:id="@+id/policyDdayDetail"
62 android:layout_width="77dp" 68 android:layout_width="77dp"
63 android:layout_height="44dp" 69 android:layout_height="44dp"
64 - android:background="#9949ADF9" 70 + android:background="@drawable/broken_rectangle"
65 android:gravity="center" 71 android:gravity="center"
66 android:text="TextView" 72 android:text="TextView"
67 android:textColor="#FFF" 73 android:textColor="#FFF"
...@@ -94,23 +100,55 @@ ...@@ -94,23 +100,55 @@
94 </LinearLayout> 100 </LinearLayout>
95 </LinearLayout> 101 </LinearLayout>
96 </ScrollView> 102 </ScrollView>
103 +
97 <FrameLayout 104 <FrameLayout
105 + android:id="@+id/fragmentContainer"
98 android:layout_width="match_parent" 106 android:layout_width="match_parent"
99 android:layout_height="wrap_content" 107 android:layout_height="wrap_content"
100 - android:id="@+id/fragmentContainer" 108 + app:layout_constraintBottom_toBottomOf="parent">
101 - app:layout_constraintBottom_toBottomOf="parent"
102 - >
103 109
104 - <com.google.android.material.bottomnavigation.BottomNavigationView 110 + <LinearLayout
105 - android:id="@+id/bottomNavigation"
106 android:layout_width="match_parent" 111 android:layout_width="match_parent"
107 - android:layout_height="wrap_content" 112 + android:layout_height="match_parent"
108 - android:layout_gravity="bottom" 113 + android:elevation="5dp"
109 - android:background="#FFF" 114 + android:orientation="horizontal">
110 - app:itemIconTint="#29ABE2" 115 +
111 - app:itemTextColor="#29ABE2" 116 + <LinearLayout
112 - app:labelVisibilityMode="labeled" 117 + android:layout_width="match_parent"
113 - app:menu="@menu/detailpage_navigation" /> 118 + android:layout_height="match_parent"
119 + android:layout_weight="1.3"
120 + android:orientation="horizontal">
121 +
122 + <com.google.android.material.bottomnavigation.BottomNavigationView
123 + android:id="@+id/leftBottomBVW"
124 + android:layout_width="wrap_content"
125 + android:layout_height="wrap_content"
126 + android:layout_gravity="bottom"
127 + android:background="#FFF"
128 + app:itemIconTint="#DDDDDD"
129 + app:labelVisibilityMode="unlabeled"
130 + app:menu="@menu/detailpage_navigation" />
131 + </LinearLayout>
132 +
133 + <LinearLayout
134 + android:layout_width="match_parent"
135 + android:layout_height="match_parent"
136 + android:layout_weight="1"
137 + android:orientation="horizontal">
138 +
139 + <com.google.android.material.bottomnavigation.BottomNavigationView
140 + android:id="@+id/rightBottomBVW"
141 + android:layout_width="match_parent"
142 + android:layout_height="wrap_content"
143 + android:layout_gravity="bottom"
144 + android:background="@drawable/link1"
145 + app:itemIconTint="#FFF"
146 + app:itemTextColor="#FFF"
147 + app:labelVisibilityMode="unlabeled"
148 + app:menu="@menu/link_navigation" />
149 + </LinearLayout>
150 + </LinearLayout>
151 +
114 </FrameLayout> 152 </FrameLayout>
115 153
116 </LinearLayout> 154 </LinearLayout>
......
...@@ -4,19 +4,14 @@ ...@@ -4,19 +4,14 @@
4 <item 4 <item
5 android:id="@+id/shareBtn" 5 android:id="@+id/shareBtn"
6 android:enabled="true" 6 android:enabled="true"
7 - android:icon="@drawable/home" 7 + android:icon="@drawable/heart_fill"
8 android:title="Share" 8 android:title="Share"
9 app:showAsAction="ifRoom" /> 9 app:showAsAction="ifRoom" />
10 <item 10 <item
11 android:id="@+id/favorBtn" 11 android:id="@+id/favorBtn"
12 android:enabled="true" 12 android:enabled="true"
13 - android:icon="@drawable/wish" 13 + android:icon="@drawable/share"
14 android:title="Heart" 14 android:title="Heart"
15 app:showAsAction="ifRoom" /> 15 app:showAsAction="ifRoom" />
16 - <item
17 - android:id="@+id/linkBtn"
18 - android:enabled="true"
19 - android:icon="@drawable/instagram"
20 - android:title="Link"
21 - app:showAsAction="ifRoom" />
22 -</menu>
...\ No newline at end of file ...\ No newline at end of file
16 +</menu>
17 +
......
1 +<?xml version="1.0" encoding="utf-8"?>
2 +
3 +<menu xmlns:android="http://schemas.android.com/apk/res/android"
4 + xmlns:app="http://schemas.android.com/apk/res-auto"
5 + xmlns:tools="http://schemas.android.com/tools">
6 + <item
7 + android:id="@+id/linkBtn"
8 + android:enabled="true"
9 + android:icon="@drawable/link1"
10 + android:title="사이트 바로가기"
11 + app:showAsAction="ifRoom" />
12 +</menu>
13 +