android - Change language problems with recycleView -
i have problem (left bar) "android.support.v7.widget.recyclerview"
when try change text, lateral not responding, think not load correctly.
only exist activity, rest fragments, in activity have "left bar"
@override public viewholder oncreateviewholder(viewgroup parent, int viewtype) { change text programatically @override public void onbindviewholder(viewholder holder, int position) { change text programatically
i try change text, not work , think not called, because activity called first time
i have control of fragment called "fragmentreutil2" have begintransaction. method put loadlanguage , .setadapter(again)
note:
(onresume) call 1 time (firsttime)
my method call every times transition fragments. fragmentreutil2
all fragment works correctly without left bar
i'm still not quite sure you're asking, think problem you're not calling 1 of following after you've changed data reflected on ui.
adapter.notifydatachanged()
if don't know ones have changed or of them have changed.adapter.notifyitemchanged(position)
if 1 item has changed , know one.adapter.notifyitemrangechanged(start, count)
if multiple consecutive items have changed.
there's multiple other methods can use inform adapter of data changes, removals , additions, check api documentation
Comments
Post a Comment