Content description for image button on custom title bar.
This commit is contained in:
parent
92d170e633
commit
f42e6ed02b
2 changed files with 5 additions and 1 deletions
|
@ -43,6 +43,10 @@ public class CustomTitleBar {
|
||||||
activity.getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, vidw.getTitleBarLayout());
|
activity.getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, vidw.getTitleBarLayout());
|
||||||
vidw.init(activity.getWindow());
|
vidw.init(activity.getWindow());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setImgDescription(CharSequence text) {
|
||||||
|
activity.getWindow().getDecorView().findViewById(R.id.title_image).setContentDescription(text);
|
||||||
|
}
|
||||||
|
|
||||||
public static class CustomTitleBarView {
|
public static class CustomTitleBarView {
|
||||||
protected String titleString;
|
protected String titleString;
|
||||||
|
|
|
@ -88,7 +88,7 @@ public class LocalIndexesActivity extends OsmandExpandableListActivity {
|
||||||
});
|
});
|
||||||
setContentView(R.layout.local_index);
|
setContentView(R.layout.local_index);
|
||||||
titleBar.afterSetContentView();
|
titleBar.afterSetContentView();
|
||||||
|
titleBar.setImgDescription(getString(R.string.local_index_download));
|
||||||
|
|
||||||
settings = getMyApplication().getSettings();
|
settings = getMyApplication().getSettings();
|
||||||
descriptionLoader = new LoadLocalIndexDescriptionTask();
|
descriptionLoader = new LoadLocalIndexDescriptionTask();
|
||||||
|
|
Loading…
Reference in a new issue