-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from SujungVillage/feature/rollCall
[FEAT/#20] rollcall xml
- Loading branch information
Showing
9 changed files
with
285 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
app/src/main/java/kr/co/sujungvillage_admin/RollCallActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
13
app/src/main/res/drawable/style_rollcall_detail_border.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
10
app/src/main/res/drawable/style_rollclall_button_border.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |