Jump to content

I am fairly new to developing for Android, so please excuse me if i dont make much sense...

 

I am using Android Studio.

I have a webview field, and would like to add a "OnClick" function to redirect to another app page and display new content.

 

My problem is, i have many WebView fields being generated dynamically based off of a blog's API, and there is no set number of fields to generate. I know i can set the designated OnClick function on a per-WebView basis, but can i generate a series of functions the "OnClick" code refrences in a FOR loop?


Or, is there some way to add meta information to the webviews "OnClick" field that i can refrence later?

 

 

 

Thanks,

 

 

~Judah

~Judah

Link to comment
https://linustechtips.com/topic/300237-android-studio-onclick-meta/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×