Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid borderless buttons
    text
    copied!<p>I hate to be the third person to ask this, but the previous <a href="https://stackoverflow.com/questions/8855791/how-to-create-standard-borderless-buttons-like-in-the-design-guidline-mentioned">two</a> <a href="https://stackoverflow.com/questions/9167900/how-to-create-borderless-buttons-in-android">askings</a> haven't seemed to answer it fully. The android design guidelines detail <a href="http://developer.android.com/design/building-blocks/buttons.html" rel="nofollow noreferrer">borderless buttons</a>, but not how to make them. In one of the previous answers, there was a sugestion to use:</p> <p><code>style="@android:style/Widget.Holo.Button.Borderless"</code></p> <p>This works well for a Holo theme, but I use a lot of Holo.Light as well and </p> <p><code>style="@android:style/Widget.Holo.Light.Button.Borderless"</code></p> <p>Does not seem to exist. Is there a way to apply a style for such borderless buttons in Holo.Light, or better yet, simply apply a borderless tag without specifying which theme it belongs in, so the app can pick the proper style at runtime?</p> <p>Holo.ButtonBar seems to fit the bill for what I am looking for, except it provides no user feedback that it's been pressed.</p> <p>Also, is there a place in the documentation that lists such styles that can be applied and a description of them? No matter how much I google, and search through the docs, I can't find anything. There is just a non-descriptive list if I right click and edit style.</p> <p>Any help would be appreciated.</p> <p>Edit: Got a perfect answer from javram, and I wanted to add some XML for anyone interested in adding the partial borders google has adopted.</p> <p>Fora horizontal divider, this works great</p> <pre><code>&lt;View android:id="@+id/horizontal_divider_login" android:layout_width="match_parent" android:layout_height="1dp" android:layout_marginLeft="8dp" android:layout_marginRight="8dp" android:background="@color/holo_blue" /&gt; </code></pre> <p>and this for a vertical one:</p> <pre><code>&lt;View android:id="@+id/vertical_divider" android:layout_width="1dip" android:layout_height="match_parent" android:layout_marginBottom="8dp" android:layout_marginTop="8dp" android:background="@color/holo_blue" /&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload