-2
<string name="xyz">This is my string with url <a href="example://xyz.com:api/deviceconfig/dynamicValue()/something?some_token=dynamic_vlaue& locale=en"></a></string>
我在活动上下文的<a href tag which has dynamic values. how to open that url in webview?
dynamic values will change everytime. How to make proper url and open it in webview
是。这是在webview中加载网址。但是,我的字符串有一些dymanic值,我需要每次都得到。我无法在string.xml文件中获取动态值。 – Batty
你的意思是你想在运行时在string.xml中设置一些字符串值吗?是吗? – GreenRobo
是的。 string.xml中的url与一些依赖于设备的动态值相关,所以每次运行我的应用程序时,这些值都会有所不同。 – Batty