gpt4 book ai didi

java - 如何删除android中的默认按钮样式

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:26:09 26 4
gpt4 key购买 nike

enter image description here

上面是我的按钮,我也想删除默认阴影,我已经成功删除了背景,但阴影仍然存在下面是我的 xml 代码

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/create_account"
android:id="@+id/buttonCreateAccount"
android:layout_gravity="center_horizontal"
android:background="@null"
style=""
android:shadowRadius="@null"
android:drawableBottom="@null"
/>

最佳答案

使用以下样式

style="?android:attr/borderlessButtonStyle" 

关于java - 如何删除android中的默认按钮样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28391818/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com