java - Change ImageView to TextView in GridView based on user input -


i developing android app educational project. have created gridview object, uses custom gridadapter. grid, default, loads set of placeholder images. want user able replace placeholder images either own image, text, or link youtube video.

i can't find info on whether feasible. specify imageview in xml file, don't know how change @ run time? wondered if should create textview object in xml, , layer them, , create method brings 1 front? advice @ appreciated. great know if it's doable or not.....

  <imageview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:id="@+id/imageview"     android:layout_centerinparent="true"     /> 

my suggestion define textview etc. in xml gone visibility. when user has actions visible them , set visibility gone of imageview.


Comments