Change link color

This commit is contained in:
Victor Shcherb 2012-05-27 14:18:11 +02:00
parent e50e1fec6d
commit 3b4935e690

View file

@ -28,12 +28,14 @@ import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.Typeface;
import android.os.AsyncTask;
import android.os.AsyncTask.Status;
import android.os.Bundle;
import android.os.StatFs;
import android.text.SpannableString;
import android.text.TextPaint;
import android.text.method.LinkMovementMethod;
import android.text.style.ClickableSpan;
import android.view.ContextMenu;
@ -689,6 +691,12 @@ public class LocalIndexesActivity extends OsmandExpandableListActivity {
asyncLoader.setResult(null);
startActivity(new Intent(LocalIndexesActivity.this, DownloadIndexActivity.class));
}
@Override
public void updateDrawState(TextPaint ds) {
super.updateDrawState(ds);
ds.setColor(Color.GREEN);
}
}, 0, l, 0);
ds.setText(content);
ds.setMovementMethod(LinkMovementMethod.getInstance());