Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to change pullToRefresh Sub header Text Color #65

Open
sahir opened this issue Jul 15, 2013 · 2 comments
Open

how to change pullToRefresh Sub header Text Color #65

sahir opened this issue Jul 15, 2013 · 2 comments

Comments

@sahir
Copy link

sahir commented Jul 15, 2013

Hello Using this way i am change string text of pull to refersh

PullToRefreshScrollView mPullRefreshScrollView;

mPullRefreshScrollView = (PullToRefreshScrollView)findViewById(R.id.pull_refresh_scrollview);

vRefresh = mPullRefreshScrollView.getLoadingLayoutProxy();

vRefresh.setPullLabel(getResources().getString(R.string.pull_to_refresh_pull_label_text));
vRefresh.setRefreshingLabel(getResources().getString(R.string.pull_to_refresh_refreshing_label_text));
vRefresh.setReleaseLabel(getResources().getString(R.string.pull_to_refresh_release_label_text));

but when i try to change text color using this

View rView,rView1;

rView = mPullRefreshScrollView.getRefreshableView();

rView1 = mPullRefreshScrollView.getRefreshableView();

TextView tViewMainText = (TextView)rView.findViewById(R.id.pull_to_refresh_text);
tViewMainText.setTextColor(Color.BLACK);

TextView tViewSubText = (TextView)rView1.findViewById(R.id.pull_to_refresh_sub_text);
tViewSubText.setTextColor(Color.BLACK);

only change color of pull_to_refresh_text but not change color of (sub text)pull_to_refresh_sub_text how to change color of sub text.

Thanks
sahir saiyed

@6epreu
Copy link

6epreu commented Sep 19, 2014

Hey, have you solved your problem?

@6epreu
Copy link

6epreu commented Sep 19, 2014

You need to add method to interface ILoadingLayout like setHeaderColor(int color) and then implement it in the abstract class LoadingLayout.java. F.e.
public void setHeaderTextColor( int color ){
if (mHeaderText != null ) {
mHeaderText.setTextColor(color);
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants