Content description for image button on custom title bar.

This commit is contained in:
Igor B. Poretsky 2013-03-03 13:09:37 +04:00
parent 92d170e633
commit f42e6ed02b
2 changed files with 5 additions and 1 deletions

View file

@ -43,6 +43,10 @@ public class CustomTitleBar {
activity.getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, vidw.getTitleBarLayout());
vidw.init(activity.getWindow());
}
public void setImgDescription(CharSequence text) {
activity.getWindow().getDecorView().findViewById(R.id.title_image).setContentDescription(text);
}
public static class CustomTitleBarView {
protected String titleString;

View file

@ -88,7 +88,7 @@ public class LocalIndexesActivity extends OsmandExpandableListActivity {
});
setContentView(R.layout.local_index);
titleBar.afterSetContentView();
titleBar.setImgDescription(getString(R.string.local_index_download));
settings = getMyApplication().getSettings();
descriptionLoader = new LoadLocalIndexDescriptionTask();