나는 두 개의 버튼을 가지고, 그들 중 하나, 또 다른 당김 정의 배경이 기본 스타일이 있습니다버튼 높이
그래서 기본 버튼 : 결국 버튼에서
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="4dp" />
<solid android:color="@color/green" />
</shape>
는 다음과 같이가 동일한 속성을 가지고 있지만 맞춤 배경이있는 단추보다 다소 작습니다.
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/bg_button_rounded_green"
android:text="Positive"
android:textColor="@color/white"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Negative"/>
사용자 정의 배경이 m inHeight. 이 단추를 어떻게 보이게 할 수 있습니까?
답변을 수락했습니다. 안부 –