Android: Clear editText data from multiple Fragment at one Click -


i using screenslidepageradapter, viewpager , pageradapter have 3 fragments , every fragment contains 3 4 edittext fields. fragment 1: personalinfo fragment 2: contactinfo fragment 3: workinfo workinfo contain clear button clear edittext data form 3 fragmnets.

when user enter value in personalinfo contactinfo , @ last go workinfo. @ click of clear button want clear edittext data. tried findviewbyid() not reference of edittext fragment 1 , fragment 2.

if has solution me.

do this: make boolean variable in class initialized false. when clicks on clear, change value of boolean true. , in onstart() check variable before showing data in edittext.


Comments

Popular posts from this blog

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -