1
私のコードでは、色を変更したいいくつかのボーダーレスボタンがあります。私は彼らのスタイルをstyle="?android:buttonBarButtonStyle"
に設定し、背景attrをいくらかの値に設定すると、クリックすると波紋効果は表示されません。カスタムリップルを使用する必要があります。これを行うために色が変更されたボタンのリップル効果
<Button android:id="@+id/button_del" style="?android:buttonBarButtonStyle" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#9E9E9E" android:text="@string/del" android:textColor="@android:color/white" />
私は今それには何の色を持っていないことを意味、背景属性を上書きします... – icancto
@icancto今、それはいやまだ –
に動作します。波及効果が見えますが、背景はまだ白です。 'android:background =" @ drawable/custom_ripple "'のため背景色を変更できません – icancto