0
ImageButton은 다른 레이아웃에서도 작동하지만 TabLayout이 작동하지 않는 경우 작동합니다. 내 단추를 CardView에 겹쳐 쓰려고했으나 도움이되지 않습니다.TabLayout을 사용하여 RelativeLayout의 ImageButton에 파급 효과를 적용 할 수 없습니다.
<RelativeLayout
android:id="@+id/rl_tab_container"
android:layout_width="match_parent"
android:layout_height="@dimen/standard_bar_height"
>
<android.support.design.widget.TabLayout
android:id="@+id/tabs_dict"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:tabGravity="center"
app:tabSelectedTextColor="@color/colorBlack87"
app:tabTextColor="@color/colorBlack54"
app:tabIndicatorColor="@color/colorBlack87"
android:background="@color/colorPrimary"
/>
<ImageButton
android:id="@+id/button_delete_all_curr_dict"
android:layout_width="48dp"
android:layout_height="48dp"
android:src="@drawable/ic_delete"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginEnd="8dp"
android:background="?attr/selectableItemBackgroundBorderless"
/>
</RelativeLayout>
당신의 예상 출력은 무엇인가에이 시도? 이미지 주시겠습니까? – FAT