Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
package com.softsquared.template.Garamgaebi.src.main.home

import android.content.Context
import android.graphics.Rect
import android.util.TypedValue
import android.view.View
import androidx.recyclerview.widget.RecyclerView

class HomeNetworkingItemDecoration : RecyclerView.ItemDecoration() {
class HomeSeminarItemDecoration(val context: Context, val size : Int) : RecyclerView.ItemDecoration() {
override fun getItemOffsets(
outRect: Rect,
view: View,
parent: RecyclerView,
state: RecyclerView.State
) {
super.getItemOffsets(outRect, view, parent, state)
val offset = 20
val position = parent.getChildAdapterPosition(view)

if(position == 0) {
outRect.left = 0
} else {
outRect.left = offset
}
outRect.right = offset
outRect.right = dpToPx(40)
outRect.left = dpToPx(16)



}
private fun dpToPx(dp : Int) : Int{
return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp.toFloat(), context.resources.displayMetrics).toInt()
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="252dp"
android:height="69dp"
android:viewportWidth="252"
android:viewportHeight="69">
<path
android:strokeWidth="1"
android:pathData="M0.5,22C0.5,15.65 5.65,10.5 12,10.5H19.12C20.77,10.5 22.29,9.6 23.07,8.14L26.68,1.48C27.25,0.44 28.75,0.44 29.32,1.48L33.49,9.19C33.93,10 34.77,10.5 35.69,10.5H240C246.35,10.5 251.5,15.65 251.5,22V57C251.5,63.35 246.35,68.5 240,68.5H12C5.65,68.5 0.5,63.35 0.5,57V22Z"
android:fillColor="#ffffff"
android:strokeColor="#2294FF"/>
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="252dp"
android:height="49dp"
android:viewportWidth="252"
android:viewportHeight="49">
<path
android:strokeWidth="1"
android:pathData="M0.5,22C0.5,15.65 5.65,10.5 12,10.5H19.12C20.77,10.5 22.29,9.6 23.07,8.14L26.68,1.48C27.25,0.44 28.75,0.44 29.32,1.48L33.49,9.19C33.93,10 34.77,10.5 35.69,10.5H240C246.35,10.5 251.5,15.65 251.5,22V37C251.5,43.35 246.35,48.5 240,48.5H12C5.65,48.5 0.5,43.35 0.5,37V22Z"
android:fillColor="#ffffff"
android:strokeColor="#2294FF"/>
</vector>
12 changes: 12 additions & 0 deletions Garamgaebi/app/src/main/res/drawable/ic_item_home_charged.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="35dp"
android:height="18dp"
android:viewportWidth="35"
android:viewportHeight="18">
<path
android:pathData="M4,0L31,0A4,4 0,0 1,35 4L35,14A4,4 0,0 1,31 18L4,18A4,4 0,0 1,0 14L0,4A4,4 0,0 1,4 0z"
android:fillColor="#B7FFB0"/>
<path
android:pathData="M9.209,11.476V15.568H10.841V11.476H9.209ZM13.049,11.476V15.568H14.681V11.476H13.049ZM6.941,10.636V11.92H17.009V10.636H6.941ZM11.945,4.828C9.581,4.828 7.937,5.8 7.937,7.324C7.937,8.824 9.581,9.796 11.945,9.796C14.321,9.796 15.965,8.824 15.965,7.324C15.965,5.8 14.321,4.828 11.945,4.828ZM11.945,6.1C13.409,6.1 14.321,6.532 14.321,7.324C14.321,8.104 13.409,8.536 11.945,8.536C10.493,8.536 9.569,8.104 9.569,7.324C9.569,6.532 10.493,6.1 11.945,6.1ZM20.536,10.936V13.552H22.096V10.936H20.536ZM24.052,10.924V13.552H25.612V10.924H24.052ZM17.992,13.048V14.344H28.048V13.048H17.992ZM19.12,5.176V6.436H25.336V7.612H19.144V10.744H20.728V8.86H26.92V5.176H19.12ZM19.144,10.072V11.356H27.172V10.072H19.144Z"
android:fillColor="#2294FF"/>
</vector>
12 changes: 12 additions & 0 deletions Garamgaebi/app/src/main/res/drawable/ic_item_home_closed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="81dp"
android:height="18dp"
android:viewportWidth="81"
android:viewportHeight="18">
<path
android:pathData="M4,0L77,0A4,4 0,0 1,81 4L81,14A4,4 0,0 1,77 18L4,18A4,4 0,0 1,0 14L0,4A4,4 0,0 1,4 0z"
android:fillColor="#E9F4FF"/>
<path
android:pathData="M8.435,6.772H10.595V11.596H8.435V6.772ZM6.875,12.844H12.155V5.524H6.875V12.844ZM16.799,8.644H15.191V4.492H13.607V15.532H15.191V9.952H16.799V8.644ZM17.986,5.116V6.376H21.49C21.263,7.828 19.919,9.04 17.458,9.652L18.083,10.9C21.358,10.048 23.219,8.056 23.219,5.116H17.986ZM20.663,12.328H24.719V14.164H20.663V12.328ZM19.115,15.4H26.278V11.08H19.115V15.4ZM27.743,6.88H26.278V4.48H24.694V10.636H26.278V8.176H27.743V6.88ZM37.822,4.468H36.226V12.796H37.822V4.468ZM35.566,10.036C34.762,10.108 33.91,10.168 33.058,10.204V9.124H34.99V7.864H31.162V6.4H34.918V5.14H29.578V9.124H31.474V10.264C30.502,10.288 29.542,10.288 28.666,10.288L28.87,11.548C30.898,11.548 33.37,11.5 35.674,11.164L35.566,10.036ZM31.93,14.08V12.196H30.334V15.34H38.11V14.08H31.93ZM45.903,5.44H44.379V7.3C44.379,9.184 43.791,11.164 42.171,12.148L43.119,13.336C44.115,12.736 44.763,11.68 45.147,10.456C45.495,11.572 46.083,12.508 47.019,13.084L47.883,11.86C46.383,10.864 45.903,9.028 45.903,7.24V5.44ZM48.111,8.212H46.719V9.496H48.111V15.04H49.587V4.66H48.111V8.212ZM50.355,4.48V15.532H51.855V4.48H50.355ZM53.954,5.476V12.904H59.27V5.476H53.954ZM57.71,6.724V11.656H55.514V6.724H57.71ZM60.986,4.48V15.556H62.57V4.48H60.986ZM66.373,5.524H64.789V12.82H65.749C67.357,12.82 69.133,12.724 70.969,12.34L70.813,11.044C69.266,11.344 67.766,11.464 66.373,11.5V5.524ZM74.654,8.644H73.105V4.468H71.521V15.508H73.105V9.952H74.654V8.644Z"
android:fillColor="#2294FF"/>
</vector>
12 changes: 12 additions & 0 deletions Garamgaebi/app/src/main/res/drawable/ic_item_home_scheduled.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="81dp"
android:height="18dp"
android:viewportWidth="81"
android:viewportHeight="18">
<path
android:pathData="M4,0L77,0A4,4 0,0 1,81 4L81,14A4,4 0,0 1,77 18L4,18A4,4 0,0 1,0 14L0,4A4,4 0,0 1,4 0z"
android:fillColor="#E9F4FF"/>
<path
android:pathData="M10.919,6.904V8.188H12.767V6.904H10.919ZM10.919,10.336V11.632H12.767V10.336H10.919ZM14.531,4.456V15.568H16.055V4.456H14.531ZM12.311,4.624V15.064H13.799V4.624H12.311ZM8.999,5.236C7.535,5.236 6.599,6.76 6.599,9.268C6.599,11.788 7.535,13.312 8.999,13.312C10.475,13.312 11.423,11.788 11.423,9.268C11.423,6.76 10.475,5.236 8.999,5.236ZM8.999,6.736C9.623,6.736 9.983,7.576 9.983,9.268C9.983,10.972 9.623,11.8 8.999,11.8C8.387,11.8 8.027,10.972 8.027,9.268C8.027,7.576 8.387,6.736 8.999,6.736ZM23.566,7.144V8.44H25.678V7.144H23.566ZM25.247,4.456V11.056H26.843V4.456H25.247ZM23.074,11.296C20.722,11.296 19.271,12.1 19.271,13.444C19.271,14.8 20.722,15.58 23.074,15.58C25.427,15.58 26.878,14.8 26.878,13.444C26.878,12.1 25.427,11.296 23.074,11.296ZM23.074,12.508C24.527,12.508 25.295,12.808 25.295,13.444C25.295,14.068 24.527,14.368 23.074,14.368C21.635,14.368 20.867,14.068 20.867,13.444C20.867,12.808 21.635,12.508 23.074,12.508ZM20.111,5.572V6.268C20.111,7.696 19.319,9.172 17.483,9.796L18.299,11.056C20.423,10.336 21.406,8.392 21.406,6.268V5.572H20.111ZM20.447,5.572V6.268C20.447,8.248 21.395,10.096 23.458,10.78L24.239,9.52C22.486,8.932 21.73,7.576 21.73,6.268V5.572H20.447ZM17.914,5.128V6.4H23.89V5.128H17.914ZM29.554,7.852V9.124H35.002V7.852H29.554ZM31.462,8.668V10.792H33.058V8.668H31.462ZM29.554,5.128V8.38H31.15V6.4H34.93V5.128H29.554ZM36.238,4.444V12.808H37.846V4.444H36.238ZM30.322,14.104V15.376H38.146V14.104H30.322ZM30.322,12.22V14.584H31.918V12.22H30.322ZM28.834,11.56C30.874,11.56 33.37,11.512 35.686,11.176L35.578,10.036C33.346,10.276 30.742,10.3 28.642,10.3L28.834,11.56ZM46.719,8.188V9.484H48.555V8.188H46.719ZM44.343,5.416V7.288C44.343,9.172 43.767,11.152 42.135,12.16L43.095,13.36C44.871,12.268 45.567,9.808 45.567,7.288V5.416H44.343ZM44.691,5.416V7.216C44.691,9.616 45.243,12.016 47.007,13.108L47.871,11.86C46.359,10.876 45.891,9.028 45.891,7.216V5.416H44.691ZM50.367,4.456V15.568H51.891V4.456H50.367ZM48.111,4.624V15.064H49.599V4.624H48.111ZM53.93,5.452V12.928H59.27V5.452H53.93ZM57.71,6.7V11.668H55.502V6.7H57.71ZM60.998,4.444V15.592H62.606V4.444H60.998ZM72.71,8.656V9.964H74.665V8.656H72.71ZM71.521,4.444V15.556H73.13V4.444H71.521ZM64.754,5.512V12.412H66.35V5.512H64.754ZM64.754,11.524V12.844H65.714C67.345,12.844 69.133,12.748 70.969,12.364L70.801,11.056C69.013,11.416 67.298,11.524 65.714,11.524H64.754Z"
android:fillColor="#2294FF"/>
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">

</androidx.constraintlayout.widget.ConstraintLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">

</androidx.constraintlayout.widget.ConstraintLayout>