반응형
main.xml이 너무 길어지니까 보기가 힘들어서 이렇게 변경해주었다.
<LinearLayout
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="match_parent"
android:background="#FF018786">
<include layout="@layout/test_item1"/>
<include layout="@layout/test_item2"/>
<include layout="@layout/test_item3"/>
<include layout="@layout/test_item4"/>
</LinearLayout>
item.xml
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageButton
android:id="@+id/keypadBtn"
android:layout_width="40dp"
android:layout_height="60dp"
android:layout_marginLeft="150dp"
android:layout_marginRight="150dp"
android:layout_weight="1"
android:src="@drawable/b4"
android:layout_centerInParent="true"
android:layout_gravity="center_horizontal"
android:scaleType="fitCenter" />
</LinearLayout>
</merge>
반응형
'안드로이드' 카테고리의 다른 글
Android ExoPlayer (0) | 2022.04.08 |
---|---|
Android WebView javascriptInterface (0) | 2022.04.01 |
안드로이드 버튼들 중 배경색 있는거 혹은 active 된거 체크 (0) | 2022.03.23 |
안드로이드 배경색 변경,배경 삭제,텍스트 컬러 변경 (0) | 2022.03.23 |
안드로이드 junit test / android retrofit junit test (0) | 2022.03.07 |
댓글