Yalantis / Phoenix

Phoenix Pull-to-Refresh
https://yalantis.com/
Apache License 2.0
4.01k stars 916 forks source link

Can I change the .png of the background and the sun programatically? #37

Open SeloSlav opened 7 years ago

SeloSlav commented 7 years ago

Is it possible to change the graphics programatically? I want to build via gradle...

warko-san commented 7 years ago

Hi, @santafebound! As description says, you can customize animation only by changing: sun.png - Sun image sky.png - background image buildings.png - foreground image in your project. No other possibilities.

SeloSlav commented 7 years ago

Cool, but is there a way to do this programatically if I've only included the project via gradle? I don't have the source in my project is what I'm saying.

PenzK commented 7 years ago

For now no. Only by editing the source.

saecmca commented 6 years ago

I try this custom foreground but it shows recyclerview overlapping. how to solve this <com.yalantis.phoenix.PullToRefreshView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/pull_to_refresh" android:foreground="@drawable/buildings" android:layout_width="match_parent" android:layout_height="match_parent"/>