Skip to content

Commit

Permalink
Merge pull request #21 from SujungVillage/feature/rollCall
Browse files Browse the repository at this point in the history
[FEAT/#20] rollcall xml
  • Loading branch information
flora7883 authored Jul 28, 2022
2 parents 21839a8 + 9826a49 commit 244a362
Show file tree
Hide file tree
Showing 9 changed files with 285 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
android:supportsRtl="true"
android:theme="@style/Theme.SujungVillageAdmin"
tools:targetApi="31">
<activity
android:name=".RollCallActivity"
android:exported="true" />
<activity
android:name=".NoticeActivity"
android:exported="false" />
Expand Down
11 changes: 11 additions & 0 deletions app/src/main/java/kr/co/sujungvillage_admin/RollCallActivity.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package kr.co.sujungvillage_admin

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle

class RollCallActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_roll_call)
}
}
Binary file added app/src/main/res/drawable/icon_rollcall_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/icon_rollcall_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions app/src/main/res/drawable/style_rollcall_border.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">

<item> <shape> <padding android:top="0dp" android:right="0dp" android:bottom="3dp" android:left="0dp" /> <corners android:radius="20dp" /> <solid android:color="#C0C0C0C0" /> </shape> </item>
<item
android:top="-20dp">
<shape android:shape="rectangle">
<solid android:color="@color/white" />
<corners android:radius="20dp"/>
</shape>
</item>
</layer-list>
13 changes: 13 additions & 0 deletions app/src/main/res/drawable/style_rollcall_detail_border.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >

<item android:top="-2dp"
android:left="-2dp"
android:right="-2dp"
android:bottom="1dp">
<shape android:shape="rectangle">
<stroke android:width="1dp" android:color="#D9D9D9" />
<solid android:color="#FFFFFF" />
</shape>
</item>
</layer-list>
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/style_rollclall_button_border.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:top="0dp">
<shape android:shape="rectangle">
<corners android:radius="30dp"/>
<solid android:color="@color/primary"/>
</shape>
</item>
</layer-list>
110 changes: 110 additions & 0 deletions app/src/main/res/layout/activity_roll_call.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".RollCallActivity">

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout"
android:layout_width="match_parent"
android:layout_height="131dp"
android:background="@drawable/style_rollcall_border"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">

<ImageButton
android:id="@+id/imageButton4"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginStart="24dp"
android:layout_marginTop="50dp"
android:background="@color/nothing"
android:scaleType="fitCenter"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/icon_back"
tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />


<TextView
android:id="@+id/textView20"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:text="점호 확인"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />


<ImageButton
android:id="@+id/imageButton2"
android:layout_width="10dp"
android:layout_height="10dp"
android:layout_marginTop="25dp"
android:layout_marginRight="18dp"
android:background="@color/nothing"
app:layout_constraintEnd_toStartOf="@+id/textView10"
app:layout_constraintTop_toBottomOf="@+id/textView20"
tools:ignore="TouchTargetSizeCheck,SpeakableTextPresentCheck"
app:srcCompat="@drawable/icon_rollcall_left" />

<TextView
android:id="@+id/textView10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="19dp"
android:text="2022.07.01"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView20" />

<ImageButton
android:id="@+id/imageButton5"
android:layout_width="10dp"
android:layout_height="10dp"
android:layout_marginLeft="18dp"
android:layout_marginTop="25dp"
android:background="@color/nothing"
app:layout_constraintStart_toEndOf="@+id/textView10"
app:layout_constraintTop_toBottomOf="@+id/textView20"
tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck"
app:srcCompat="@drawable/icon_rollcall_right" />



</androidx.constraintlayout.widget.ConstraintLayout>

<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@+id/button2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/constraintLayout">

<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:listitem="@layout/listitem_rollcall"/>
</ScrollView>
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/button2"
android:layout_width="80dp"
android:layout_height="35dp"
android:layout_gravity="center"
android:background="@drawable/style_rollclall_button_border"
android:text="등록"
android:textColor="@color/white"
android:textSize="16dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:layout_marginBottom="20dp"
tools:ignore="TouchTargetSizeCheck" />


</androidx.constraintlayout.widget.ConstraintLayout>
126 changes: 126 additions & 0 deletions app/src/main/res/layout/listitem_rollcall.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/style_rollcall_detail_border">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:paddingHorizontal="38dp"
android:paddingVertical="20dp">

<ImageView
android:id="@+id/imageView2"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_weight="0"
tools:srcCompat="@tools:sample/avatars" />

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical">

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingHorizontal="8dp"
android:paddingVertical="2dp">

<TextView
android:id="@+id/textView8"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:text="이름: "
android:textSize="12dp" />

<TextView
android:id="@+id/textView23"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:text="김수룡"
android:textSize="12dp"/>
</LinearLayout>

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingHorizontal="8dp"
android:paddingVertical="2dp">

<TextView
android:id="@+id/textView9"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:text="학번: "
android:textSize="12dp" />

<TextView
android:id="@+id/textView24"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:text="20231234"
android:textSize="12dp"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingHorizontal="8dp"
android:paddingVertical="2dp">

<TextView
android:id="@+id/textView10"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:text="기숙사: "
android:textSize="12dp" />

<TextView
android:id="@+id/textView25"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:text="성미관 201호"
android:textSize="12dp"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingHorizontal="8dp"
android:paddingVertical="2dp">

<TextView
android:id="@+id/textView11"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:text="위치: "
android:textSize="12dp" />

<TextView
android:id="@+id/textView26"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:text="서울특별시 성북구 보문로 34다길 4"
android:textSize="12dp"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit 244a362

Please sign in to comment.