Skip to content

Commit

Permalink
[feature/common/royal_flush_edit_text]: #9 feat: 기본 Royal Flush Edit …
Browse files Browse the repository at this point in the history
…Text 틀 구현
  • Loading branch information
soopeach committed May 10, 2023
1 parent c36922b commit 00f40ba
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.ggne.feature_common.custom

import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import androidx.constraintlayout.widget.ConstraintLayout
import com.ggne.feature_common.databinding.RoyalFlushEditTextBinding

class RoyalFlushEditText(context: Context, attrs: AttributeSet): ConstraintLayout(context, attrs) {

private val binding = RoyalFlushEditTextBinding.inflate(LayoutInflater.from(context), this, true)

init {
removeAllViews()
addView(binding.root)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<selector >
<item xmlns:android="http://schemas.android.com/apk/res/android">
<shape android:shape="rectangle">
<solid android:color="#DFDBCC" />
<corners android:radius="6dp" />
</shape>
</item>
</selector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?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="60dp"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:background="@drawable/royal_flush_edit_text_background">

<EditText
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@null"
android:textSize="14sp"
android:maxLines="1"
android:inputType="text"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginHorizontal="18dp"
android:layout_marginVertical="14dp"
android:autofillHints="yes"
tools:ignore="LabelFor" />

</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit 00f40ba

Please sign in to comment.