Good evening,
I have a quick question that should be pretty easy, but for the life of me I cannot figure it out.
I have a link to a web page that I want to put in my app. I want to do it in XML in order to make things a little easier for me because this will be a quite large app. I want the like to be custom text that when clicked opens up the web browser. I guess just like you can with HTML. Right now I have
android:text="http://bhflc.org/"
android:autoLink="web"
I understand that the text part is where my custom text needs to be, but where would I put the web address?
Thank you in advance.
IDEA:
You need a custom web view class . In this web view you can get attribute values which you set from xml file.
CODE:
Your webview class
Your XML:
You must declare your attributes with values/attrs.xml file