Toggle navigation
Toggle navigation
This project
Loading...
Sign in
장연우
/
WELLO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
soonmyeong2
2019-11-15 00:35:50 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dc061f1fb69aea7ae79d8cd32aaafaf08e4255a2
dc061f1f
1 parent
b25a41ff
done
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
81 additions
and
44 deletions
vip/app/src/main/java/com/example/vip/RecommendActivity.kt
vip/app/src/main/java/com/example/vip/ViewPagerAdapter.kt
vip/app/src/main/res/drawable/round_ractagle_solid.xml
vip/app/src/main/res/drawable/round_ratangle.xml
vip/app/src/main/res/layout/activity_signin.xml
vip/app/src/main/res/layout/item_policy.xml
vip/app/src/main/res/layout/item_policyfield.xml
vip/app/src/main/java/com/example/vip/RecommendActivity.kt
View file @
dc061f1
...
...
@@ -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
(),
...
...
vip/app/src/main/java/com/example/vip/ViewPagerAdapter.kt
View file @
dc061f1
...
...
@@ -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
)
...
...
vip/app/src/main/res/drawable/round_ractagle_solid.xml
View file @
dc061f1
...
...
@@ -12,6 +12,6 @@
android:bottom=
"0dp"
/>
<corners
android:bottomRightRadius=
"
13dp"
android:bottomLeftRadius=
"13
dp"
android:topLeftRadius=
"
13dp"
android:topRightRadius=
"13
dp"
/>
<corners
android:bottomRightRadius=
"
4dp"
android:bottomLeftRadius=
"4
dp"
android:topLeftRadius=
"
4dp"
android:topRightRadius=
"4
dp"
/>
</shape>
\ No newline at end of file
...
...
vip/app/src/main/res/drawable/round_ratangle.xml
View file @
dc061f1
...
...
@@ -13,5 +13,5 @@
/>
<corners
android:bottomRightRadius=
"0dp"
android:bottomLeftRadius=
"0dp"
android:topLeftRadius=
"
13dp"
android:topRightRadius=
"13
dp"
/>
android:topLeftRadius=
"
5dp"
android:topRightRadius=
"5
dp"
/>
</shape>
\ No newline at end of file
...
...
vip/app/src/main/res/layout/activity_signin.xml
View file @
dc061f1
...
...
@@ -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=
"2
20
dp"
android:layout_width=
"
match_parent
"
android:layout_height=
"2
62
dp"
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>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/policyFieldRecyclerView"
android:layout_width=
"400dp"
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center|center_vertical"
android:layout_gravity=
"center"
android:layout_marginLeft=
"16dp"
android:layout_marginRight=
"16dp"
android:layout_weight=
"1"
android:padding=
"20dp"
app:layoutManager=
"androidx.recyclerview.widget.GridLayoutManager"
app:layout_constraintBottom_toBottomOf=
"@id/bottomNavigation"
app:spanCount=
"3"
tools:listitem=
"@layout/item_policyfield"
/>
android:foregroundGravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/policyFieldRecyclerView"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center|center_horizontal"
android:layout_marginTop=
"11dp"
android:layout_marginBottom=
"11dp"
android:layout_weight=
"1"
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"
...
...
vip/app/src/main/res/layout/item_policy.xml
View file @
dc061f1
...
...
@@ -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=
"
20
0dp"
android:layout_margin=
"
10
dp"
android:layout_height=
"
15
0dp"
android:layout_margin=
"
7
dp"
android:background=
"@drawable/round_ractagle_solid"
android:orientation=
"horizontal"
android:padding=
"10dp"
>
android:orientation=
"horizontal"
>
<ImageView
android:id=
"@+id/policyImage"
android:layout_width=
"1
0
0dp"
android:layout_width=
"1
2
0dp"
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"
>
<
Linear
Layout
<
Relative
Layout
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=
""
/>
</
Linear
Layout>
</
Relative
Layout>
<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=
"
10
dp"
android:layout_height=
"
22
dp"
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
...
...
vip/app/src/main/res/layout/item_policyfield.xml
View file @
dc061f1
...
...
@@ -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
...
...
Please
register
or
login
to post a comment