Dialog themed activity : positive and negative buttons

后端 未结 1 1964
无人共我
无人共我 2021-02-06 04:07

I\'m trying to theme an activity as an AlertDialog. The problem I\'m facing is that I can\'t find a way to put two buttons on the bottom of my window that would loo

1条回答
  •  借酒劲吻你
    2021-02-06 04:54

    Alright, if you're developping an application for HC/ICS, without Sherlock, the answer is 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 the root layout

    0 讨论(0)
提交回复
热议问题