soonmyeong2

done

......@@ -61,7 +61,7 @@ class RecommendActivity : AppCompatActivity() {
policyList.add(
PolicyItem(
ContextCompat.getDrawable(this@RecommendActivity, R.drawable.image01)!!,
memo!!.Policy,
"상시",
memo!!.Policy,
memo!!.Policy,
4.toFloat(),
......@@ -89,7 +89,7 @@ class RecommendActivity : AppCompatActivity() {
policyList.add(
PolicyItem(
ContextCompat.getDrawable(this@RecommendActivity, R.drawable.image01)!!,
memo!!.Policy,
"상시",
memo!!.Policy,
memo!!.Policy,
4.toFloat(),
......
......@@ -12,9 +12,9 @@ class ViewPagerAdapter(private val context : Context) : PagerAdapter() {
private var layoutInflater : LayoutInflater? = null
val Image = arrayOf(
R.drawable.temp_view_pager_image,
R.drawable.temp_view_pager_image,
R.drawable.temp_view_pager_image
R.drawable.image01,
R.drawable.image02,
R.drawable.image03
)
......
......@@ -12,6 +12,6 @@
android:bottom="0dp"
/>
<corners android:bottomRightRadius="13dp" android:bottomLeftRadius="13dp"
android:topLeftRadius="13dp" android:topRightRadius="13dp"/>
<corners android:bottomRightRadius="4dp" android:bottomLeftRadius="4dp"
android:topLeftRadius="4dp" android:topRightRadius="4dp"/>
</shape>
\ No newline at end of file
......
......@@ -13,5 +13,5 @@
/>
<corners android:bottomRightRadius="0dp" android:bottomLeftRadius="0dp"
android:topLeftRadius="13dp" android:topRightRadius="13dp"/>
android:topLeftRadius="5dp" android:topRightRadius="5dp"/>
</shape>
\ No newline at end of file
......
......@@ -11,6 +11,7 @@
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFF"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
......@@ -21,7 +22,6 @@
android:id="@+id/toolbar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="11dp"
android:background="#FFF"
android:elevation="5dp"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
......@@ -36,24 +36,42 @@
<androidx.viewpager.widget.ViewPager
android:id="@+id/welcomeViewPager"
android:layout_width="400dp"
android:layout_height="220dp"
android:layout_width="match_parent"
android:layout_height="262dp"
android:layout_gravity="center"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"></androidx.viewpager.widget.ViewPager>
app:layout_constraintTop_toTopOf="parent">
</androidx.viewpager.widget.ViewPager>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_weight="1"
android:foregroundGravity="center"
android:gravity="center"
android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/policyFieldRecyclerView"
android:layout_width="400dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center|center_vertical"
android:layout_gravity="center|center_horizontal"
android:layout_marginTop="11dp"
android:layout_marginBottom="11dp"
android:layout_weight="1"
android:padding="20dp"
android:background="@drawable/round_ractagle_solid"
android:foregroundGravity="center"
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
app:layout_constraintBottom_toBottomOf="@id/bottomNavigation"
app:spanCount="3"
tools:listitem="@layout/item_policyfield" />
</LinearLayout>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigation"
......@@ -61,6 +79,7 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#FFF"
android:elevation="8dp"
app:itemIconTint="#29ABE2"
app:itemTextColor="#29ABE2"
app:labelVisibilityMode="labeled"
......
......@@ -3,18 +3,18 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_margin="10dp"
android:layout_height="150dp"
android:layout_margin="7dp"
android:background="@drawable/round_ractagle_solid"
android:orientation="horizontal"
android:padding="10dp">
android:orientation="horizontal">
<ImageView
android:id="@+id/policyImage"
android:layout_width="100dp"
android:layout_width="120dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:paddingLeft="7dp"
tools:srcCompat="@tools:sample/avatars" />
<LinearLayout
......@@ -23,7 +23,7 @@
android:layout_weight="2"
android:orientation="vertical">
<LinearLayout
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="10dp"
android:layout_weight="1"
......@@ -31,44 +31,64 @@
<TextView
android:id="@+id/policyDday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="TextView" />
android:layout_width="77dp"
android:layout_height="39dp"
android:background="@drawable/broken_rectangle"
android:gravity="center"
android:text="TextView"
android:textColor="#FFF"
android:textSize="18sp" />
<ToggleButton
android:id="@+id/policyFavor"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_width="22dp"
android:layout_height="25dp"
android:layout_alignParentRight="true"
android:layout_gravity="right"
android:layout_marginTop="11dp"
android:layout_marginRight="20dp"
android:layout_weight="0"
android:background="@drawable/toggle_selector"
android:checked="false"
android:textOff=""
android:textOn="" />
</LinearLayout>
</RelativeLayout>
<TextView
android:id="@+id/policyHost"
android:layout_width="match_parent"
android:layout_height="10dp"
android:layout_weight="1"
android:gravity="center"
android:text="TextView" />
android:layout_marginLeft="14dp"
android:layout_weight="0.7"
android:gravity="bottom|left|center_vertical"
android:text="TextView"
android:textColor="#C04A4A4A"
android:textSize="13dp" />
<TextView
android:id="@+id/policyTitle"
android:layout_width="match_parent"
android:layout_height="10dp"
android:layout_marginLeft="11dp"
android:layout_weight="1"
android:gravity="center"
android:text="TextView" />
android:gravity="left|center_vertical"
android:text="TextView"
android:textColor="#000"
android:textSize="18dp" />
<RatingBar
android:id="@+id/policyScore"
android:layout_width="240dp"
android:layout_height="10dp"
android:layout_height="22dp"
android:layout_gravity="center"
android:layout_weight="1" />
android:layout_weight="1"
android:max="5"
android:rating="3.5"
android:scaleX=".5"
android:scaleY="0.5"
android:transformPivotX="0dp"
android:transformPivotY="0dp" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
......
......@@ -4,10 +4,8 @@
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_gravity="center"
android:layout_margin="10dp"
android:gravity="center"
android:orientation="vertical"
android:padding="3dp">
android:orientation="vertical">
<ImageView
......