listview - android exendable list on screen's foreground -


:d

i got exependable listview on top of layout, controlled fragment , below imageview.

what want : when expend list, image don't move goes in background

what happen : image go down as list expends.

i tryed use linear layout weight param. same results

any idea?

<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:background="@color/colorbackground" android:fillviewport="false" android:id="@+id/container" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="center" android:orientation="vertical" >  <linearlayout     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:orientation="vertical"     android:id="@+id/linearlayout2">      <fragment         android:id="@+id/playlistfragement"         android:name="com.example.pierr.puremusictest2.playlistfragment"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_alignparentright="true"         android:layout_weight="80"         tools:layout="@layout/playlist_fragment" />      <relativelayout         android:layout_width="match_parent"         android:layout_height="match_parent"         android:layout_weight="1">         <imageview             android:id="@+id/mp3image"             android:layout_width="270dp"             android:layout_height="270dp"             android:layout_centerhorizontal="true"             android:src="@drawable/ii"             android:background="@color/colorprimarydark"             android:layout_weight="2"             android:layout_margin="15dp" />     </relativelayout>   </linearlayout>  <fragment     android:id="@+id/musicplayerfragement"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:layout_below="@+id/linearlayout2"     android:name="com.example.pierr.puremusictest2.musicplayerfragment"     tools:layout="@layout/menu_principal_fragment"     /> </relativelayout> 


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -