android - Can and should I use two fragments in a Activitiy -
i have little bit experience android , i'm not sure how resolve design problem. maybe know solution. build activity this:
http://i.stack.imgur.com/cwqau.png
the user should have choice drag marker on map or enter adress. define whole layout in xml without extend map fragment.
have example how can split screen 80/20 2 fragments?
are fragments right choice?
just use single fragment in case. in xml you'll want linearlayout can utilize weights achieve 80/20 described above.
<linearlayout> <mapfragment/> <edittext/> </linearlayout>
give linearlayout "vertical" orientation , assign weights of 4 , 1 children split them 80/20%.
if isn't enough go off, let me know , can explain further. luck!
Comments
Post a Comment