Forked from franciscofranco/Android L dialog style for pre-L apps
Created
July 16, 2014 22:52
-
-
Save Aracem/ed49e6de37554470009f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:background="@android:color/white" | |
android:orientation="vertical" | |
android:windowMinWidthMajor="@android:dimen/dialog_min_width_major"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical" | |
android:padding="24dp"> | |
<TextView | |
android:id="@android:id/text1" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:paddingBottom="16dp" | |
android:textColor="#CC000000" | |
android:textSize="20sp" | |
android:textStyle="bold" /> | |
<TextView | |
android:id="@android:id/text2" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:textColor="#CC000000" | |
android:textSize="14sp" /> | |
</LinearLayout> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="36dp" | |
android:gravity="center|right" | |
android:orientation="horizontal" | |
android:paddingBottom="16dp" | |
android:paddingLeft="16dp" | |
android:paddingRight="16dp"> | |
<Button | |
android:id="@android:id/button1" | |
style="?android:attr/borderlessButtonStyle" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:background="@android:color/transparent" | |
android:gravity="center" | |
android:minHeight="36dp" | |
android:minWidth="88dp" | |
android:textAllCaps="true" | |
android:textColor="@drawable/button_text_color" | |
android:textSize="14sp" | |
android:textStyle="bold" /> | |
<Button | |
android:id="@android:id/button2" | |
style="?android:attr/borderlessButtonStyle" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:background="@android:color/transparent" | |
android:gravity="center" | |
android:minHeight="36dp" | |
android:minWidth="88dp" | |
android:textAllCaps="true" | |
android:textColor="@drawable/button_text_color" | |
android:textSize="14sp" | |
android:textStyle="bold" /> | |
</LinearLayout> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment