I can make Hyperlink perfectly, the problem is that its color is not contrasting well with the background of my application
Iwouldliketoknowhowtomodifyyourcolor,sincechangingthetextcolorofthetextViewdoesnotwork,asthehyperlinkalwaysturnspink.
Activitycode:
package genesysgeneration.font4;
import android.graphics.Typeface;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.widget.CheckBox;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
private TextView tvLink;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
tvLink=(TextView)findViewById(R.id.tvLink);
tvLink.setText(Html.fromHtml("<a href=\"http://www.google.com\">google</a>"));
tvLink.setMovementMethod(LinkMovementMethod.getInstance());
}
}