android - How to place newly created View obj at top of fragment layout rather than bottom -


my plan pass picture or imageview , text or textview 1 fragment another, displayed. formatting needed accomplish goal require 2 views placed above existing view objects in receiving fragment rather below them. example of trying accomplish how new post made on instagram placed @ top of feed rather bottom, if add new imageview , textview object activity_layout.xml file.

i need know how pass either 2 views or contents second fragment , arrange formatting display added views @ top of screen. have code switch between fragments.

does have suggestions on how accomplish this?

please check thread, posted before, answer looking for. more or less same question asking, hope help. answer might "hide show fragment container".

show hide fragment in android

sidenote : there must method decide later photo (in question), decide photo "newer" , automatically put on on top.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -