mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Added CDATA tag (#1836)
* Fix issue#1772 Add the CDATA tag to welcome_help_button_text string. Set the text of the corresponding textview using Html.fromHtml() function. * Fix issue#1772 Add the CDATA tag to nominated_see_more string. Set the text of the corresponding textview using Html.fromHtml() function.
This commit is contained in:
parent
2884bd934a
commit
430bf90310
6 changed files with 15 additions and 4 deletions
|
|
@ -3,6 +3,7 @@ package fr.free.nrw.commons;
|
|||
import android.net.Uri;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.support.v4.view.PagerAdapter;
|
||||
import android.text.Html;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
|
@ -66,6 +67,13 @@ public class WelcomePagerAdapter extends PagerAdapter {
|
|||
}
|
||||
ViewHolder holder = new ViewHolder(layout);
|
||||
layout.setTag(holder);
|
||||
|
||||
if(position == PAGE_FINAL){
|
||||
TextView moreInfo = layout.findViewById(R.id.welcomeInfo);
|
||||
moreInfo.setText(Html.fromHtml(WelcomeActivity.moreInformation));
|
||||
ViewHolder holder1 = new ViewHolder(layout);
|
||||
layout.setTag(holder1);
|
||||
}
|
||||
} else {
|
||||
if (position == PAGE_FINAL) {
|
||||
ViewHolder holder = new ViewHolder(layout);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue