신기성

design 1

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.*
......@@ -13,7 +17,6 @@ class PushingActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_pushing)
subscribeButton.setOnClickListener {
Log.d(TAG, "Subscribing to weather topic")
// [START subscribe_topics]
......@@ -28,6 +31,7 @@ class PushingActivity : AppCompatActivity() {
}
// [END subscribe_topics]
}
}
companion object {
......
......@@ -60,7 +60,7 @@ class RecommendActivity : AppCompatActivity() {
memo!!.Policy,
memo!!.Policy,
4.toFloat(),
"0"
""
)
)
......@@ -93,7 +93,7 @@ class RecommendActivity : AppCompatActivity() {
memo!!.Policy,
memo!!.Policy,
4.toFloat(),
"0"
""
)
)
......
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
android:top="1dp">
<shape android:shape="rectangle" >
<stroke
android:width="1dp"
android:color="#dcdcdc" />
<solid android:color="#FFF" />
</shape>
</item>
</layer-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="false"
android:drawable="@drawable/heart_stroke" />
<item android:state_checked="true"
android:drawable="@drawable/heart_fill" />
</selector>
\ No newline at end of file
......@@ -19,4 +19,19 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ToggleButton
android:id="@+id/toggleButton"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginEnd="126dp"
android:layout_marginBottom="98dp"
android:text="ToggleButton"
android:textOn=""
android:textOff=""
android:background="@drawable/toggle_selector"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......
......@@ -39,6 +39,7 @@
android:id="@+id/policyRecyclerView"
android:layout_width="match_parent"
android:layout_height="500dp"
android:layout_weight="1"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/item_policy" />
......
......@@ -45,20 +45,16 @@
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/policyFieldRecyclerView"
android:layout_width="match_parent"
android:layout_width="400dp"
android:layout_height="wrap_content"
android:layout_gravity="center|center_vertical"
android:layout_weight="1"
android:padding="20dp"
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
app:spanCount="3"
app:layout_constraintBottom_toBottomOf="@id/bottomNavigation"
app:spanCount="3"
tools:listitem="@layout/item_policyfield" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:id="@+id/fragmentContainer"
/>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigation"
android:layout_width="match_parent"
......@@ -68,7 +64,7 @@
app:itemIconTint="#29ABE2"
app:itemTextColor="#29ABE2"
app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
app:menu="@menu/bottom_nav_menu" />
</LinearLayout>
......
......@@ -3,58 +3,70 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="100dp"
android:orientation="horizontal">
android:layout_height="200dp"
android:layout_margin="10dp"
android:background="@drawable/edgemaking"
android:orientation="horizontal"
android:padding="10dp">
<ImageView
android:id="@+id/policyImage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="100dp"
android:layout_height="match_parent"
android:layout_weight="1"
tools:srcCompat="@tools:sample/avatars" />
<LinearLayout
android:layout_width="match_parent"
android:layout_width="200dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="horizontal">
android:layout_weight="2"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:layout_height="10dp"
android:layout_weight="1"
android:orientation="horizontal">
<TextView
android:id="@+id/policyDday"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="TextView" />
<TextView
android:id="@+id/policyHost"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="TextView" />
<TextView
android:id="@+id/policyTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="TextView" />
<RatingBar
android:id="@+id/policyScore"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<ToggleButton
android:id="@+id/policyFavor"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_weight="0"
android:background="@drawable/toggle_selector"
android:textOff=""
android:textOn="" />
</LinearLayout>
<TextView
android:id="@+id/policyFavor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/policyHost"
android:layout_width="match_parent"
android:layout_height="10dp"
android:layout_weight="1"
android:gravity="center"
android:text="TextView" />
<TextView
android:id="@+id/policyTitle"
android:layout_width="match_parent"
android:layout_height="10dp"
android:layout_weight="1"
android:gravity="center"
android:text="TextView" />
<RatingBar
android:id="@+id/policyScore"
android:layout_width="240dp"
android:layout_height="10dp"
android:layout_gravity="center"
android:layout_weight="1" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
......
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_gravity="center"
android:layout_margin="20dp"
android:gravity="center">
android:layout_margin="10dp"
android:gravity="center"
android:orientation="vertical"
android:padding="3dp">
<ImageView
android:id="@+id/fieldIcon"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:adjustViewBounds="true"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:adjustViewBounds="true"
android:layout_gravity="center"/>
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/fieldIconText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:textSize="20sp"
app:layout_constraintTop_toBottomOf="@+id/fieldIcon"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
android:layout_gravity="center"/>
app:layout_constraintTop_toBottomOf="@+id/fieldIcon" />
</LinearLayout>
\ No newline at end of file
......
......@@ -9,5 +9,6 @@
android:id="@+id/imageview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
tools:srcCompat="@tools:sample/avatars" />
</LinearLayout>
\ No newline at end of file
......
......@@ -8,7 +8,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'com.android.tools.build:gradle:3.5.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.2'
// NOTE: Do not place your application dependencies here; they belong
......