Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ aspect to your needs though, like the arrow image, text size, text color and bac
To do so, override the style attributes to your liking, like the following example:

``` xml
<style name="ptr_text">
<style name="ptr_text.custom">

<!-- Change the text style and color -->
<item name="android:textStyle">bold|italic</item>
Expand All @@ -99,11 +99,11 @@ To do so, override the style attributes to your liking, like the following examp

The various styles you can override are;

* ptr_headerContainer
* ptr_header
* ptr_arrow
* ptr_spinner
* ptr_text
* ptr_headerContainer.custom
* ptr_header.custom
* ptr_arrow.custom
* ptr_spinner.custom
* ptr_text.custom

The default attributes can be found in the [library project](https://github.com/erikwt/PullToRefresh-ListView/blob/master/libraryproject/res/values/default_style.xml)

Expand Down
2 changes: 1 addition & 1 deletion sampleproject/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apply plugin: 'android-library'
apply plugin: 'android'

buildscript {
repositories {
Expand Down
4 changes: 2 additions & 2 deletions sampleproject/res/values/ptr_style.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
-->

<!-- Examples below, remove comment to see effect -->
<style name="ptr_headerContainer">
<style name="ptr_headerContainer.custom">

<!-- Change the background color -->
<!-- <item name="android:background">@android:color/darker_gray</item> -->
</style>

<style name="ptr_text">
<style name="ptr_text.custom">

<!-- Change the text style and color -->
<!-- <item name="android:textStyle">bold|italic</item> -->
Expand Down