android - Dialog themed activity : postive and negative buttons -
i'm trying theme activity alertdialog
. problem i'm facing can't find way put 2 buttons on bottom of window positive , negative buttons of alertdialog
i've added line activity in manifest (i'm using sherlock library):
android:theme="@style/theme.sherlock.dialog"
and activity looking dialog, can't find theme set on buttons. have idea of ?
alright, if you're developping application hc/ics, without sherlock, answer here : https://gist.github.com/2348305
just theme using
style="?android:attr/buttonbarstyle"
for container,
style="?android:attr/buttonbarbuttonstyle"
for buttons
and
android:divider="?android:attr/dividerhorizontal" android:showdividers="middle"
for root layout
Comments
Post a Comment