Skip to content

Commit 90edd79

Browse files
committed
Replace root LinearLayout with merge in arrival_info_view.xml
1 parent 6a5b878 commit 90edd79

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

feature/stopdetail/src/main/java/com/chaeny/busoda/stopdetail/ArrivalInfoView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ArrivalInfoView @JvmOverloads constructor(
1313
) : LinearLayout(context, attrs, defStyleAttr) {
1414

1515
private val layoutInflater = LayoutInflater.from(context)
16-
private var binding = ArrivalInfoViewBinding.inflate(layoutInflater, this, true)
16+
private var binding = ArrivalInfoViewBinding.inflate(layoutInflater, this)
1717

1818
internal fun bindArrivalInfo(arrivalInfo: BusArrivalInfo?, position: Int) {
1919
if (arrivalInfo != null) {

feature/stopdetail/src/main/res/layout/arrival_info_view.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<LinearLayout
2+
<merge
33
xmlns:android="http://schemas.android.com/apk/res/android"
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
66
android:layout_height="wrap_content"
77
android:orientation="horizontal"
8-
tools:background="?attr/colorPrimary">
8+
tools:background="?attr/colorPrimary"
9+
tools:parentTag="LinearLayout">
910

1011
<TextView
1112
android:id="@+id/text_info_title"
@@ -48,4 +49,4 @@
4849
android:textSize="14sp"
4950
tools:text="매우혼잡" />
5051

51-
</LinearLayout>
52+
</merge>

0 commit comments

Comments
 (0)