How to Create Borderless Buttons in Android [dupli

2019-01-16 00:55发布

The Android Design Guidelines say to use borderless buttons (see picture below), but don't really explain how. Someone asked this same question a few weeks ago here: How to create standard Borderless buttons (like in the design guidline mentioned)? and there was an answer marked as "the" answer, but I am still lost and I don't see a way to add comments to a question that has been "closed"

The answer-er said

"Look into the theme attributes buttonBarStyle, buttonBarButtonStyle, and borderlessButtonStyle"

but I still can't figure out how to actually use those things. I Googled around a bit and couldn't find anything so I figured I'd just ask the question again, and hopefully someone can provide a little more detail on how this works.

enter image description here

8条回答
贼婆χ
2楼-- · 2019-01-16 01:41
<Button android:id="@+id/my_button" style="@android:style/Widget.Holo.Button.Borderless" />
查看更多
仙女界的扛把子
3楼-- · 2019-01-16 01:43

If you use ActionbarSherlock...

<Button 
  android:id="@+id/my_button" 
  style="@style/Widget.Sherlock.ActionButton" />
查看更多
登录 后发表回答