Skip to content

Commit

Permalink
修改theme
Browse files Browse the repository at this point in the history
  • Loading branch information
yilylong committed Aug 29, 2018
1 parent 4825b9e commit 6d8c6a8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/src/main/java/com/zhl/sample/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ public void onClick(View v) {
.setTouchOutSideCancelable(true)
.showCancelButton(true)
.setTitle("设置按钮和信息文字样式")
.setTitleTextColor(Color.GRAY)
.setMessage("this is a normal CBDialog")
.setMessageTextSize(16)
.setMessageTextColor(Color.BLUE)
.setMessageTextColor(Color.RED)
.setConfirmButtonText("确定")
.setConfirmBackgroundResouce(R.drawable.custom_button_background_right)
.setConfirmButtonTextColor(Color.WHITE)
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginBottom="10dp"
android:text="设置按钮背景和文子颜色" />
android:text="设置按钮背景和文字颜色" />

<Button
android:id="@+id/btn_singlebtn"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-v11/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Base application theme for API 11+. This theme completely replaces
AppBaseTheme from res/values/styles.xml on API 11+ devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Holo.Light">
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.NoActionBar">
<!-- API 11 theme customizations can go here. -->
</style>

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-v14/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.NoActionBar">
<!-- API 14 theme customizations can go here. -->
</style>

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Light">
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.NoActionBar">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
Expand Down

0 comments on commit 6d8c6a8

Please sign in to comment.