<string name="underlined_text"><u>매너온도</u></string>
android:text="@string/underlined_text"
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="16dp" />
<solid android:color="@android:color/transparent" />
</shape>
android:background="@drawable/rounded_corners"
android:clipToOutline="true"
typeImage.clipToOutline = true
<TextView
android:id="@+id/tv_DetailMBTI"
android:layout_width="70dp"
android:layout_height="30dp"
android:layout_marginEnd="10dp"
android:background="@drawable/rounded_shape_10"
android:backgroundTint="#6ECA59"
android:gravity="center"
android:text="ENTP"
android:textSize="18sp"
android:textColor="@color/white"
app:layout_constraintBottom_toBottomOf="@+id/tv_Detailname"
app:layout_constraintEnd_toStartOf="@+id/tv_Detailname"
app:layout_constraintTop_toTopOf="@+id/tv_Detailname" />
binding.tvDetailMBTI.background.setTint(
ContextCompat.getColor(
requireContext(),
MbtiManager.getCompatibilityColor(data.mbti)
)
)
android:maxLines="1"
android:ellipsize="end"
android:scrollbars="none"
오버스크롤 효과 없애고 싶을 때
android:overScrollMode="never":
이 속성은 실제 앱에서는 아무런 영향을 주지 않고 오직 개발 환경에서 도움을 주는 것
아래의 코드를 추가하면 됨
tools:listitem="@layout/home_recycler_view_item"
만약 가로로 스크롤하고 싶을 때는 아래의 코드를 추가하면 됨
tools:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
android:orientation="horizontal"
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerHorizon"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
android:orientation="horizontal"
tools:orientation="horizontal" />