Note that there are some explanatory texts on larger screens.

plurals
  1. PODrag and drop for linearlayout's child views
    primarykey
    data
    text
    <p>I have layout with 5 different child views, Child views are relativelayout with number of child views inside it, and all are different too. Hence i am using scrollview as root container like this:</p> <pre><code>&lt;ScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:fillViewport="true" android:scrollbars="none"&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/home_page_scrollview_outer_layout"&gt; &lt;RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:layout_marginLeft="10dip" android:layout_marginRight="10dip" android:layout_alignParentLeft="true" android:background="@drawable/homescreen_yellow" &gt; &lt;ImageButton android:id="@+id/hp_imgbtn_listA" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:src="@drawable/arrow_right"&gt; &lt;/ImageButton&gt; &lt;ListView android:id="@+id/listA" android:layout_below="@id/hp_txt_listA" android:background="@color/home_page_bg" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt; &lt;/ListView&gt; &lt;/RelativeLayout&gt; &lt;!-- List B layout --&gt; &lt;RelativeLayout android:layout_weight="1" android:layout_marginRight="10dip" android:background="@drawable/homescreen_cyan" android:layout_width="match_parent" android:layout_height="wrap_content"&gt; &lt;/RelativeLayout&gt; &lt;!-- List C layout --&gt; &lt;RelativeLayout android:layout_weight="1" android:layout_marginRight="10dip" android:background="@drawable/homescreen_purple" android:layout_width="match_parent" android:layout_height="wrap_content"&gt; &lt;/RelativeLayout&gt; &lt;!-- List D layout --&gt; &lt;RelativeLayout android:layout_weight="1" android:layout_marginRight="10dip" android:background="@drawable/homescreen_turqoise" android:layout_width="match_parent" android:layout_height="wrap_content"&gt; &lt;/RelativeLayout&gt; &lt;!-- List E layout --&gt; &lt;RelativeLayout android:layout_weight="1" android:layout_marginRight="10dip" android:background="@drawable/homescreen_turqoise" android:layout_width="match_parent" android:layout_height="wrap_content"&gt; &lt;/RelativeLayout&gt; &lt;LinearLayout&gt; &lt;/ScrollView&gt; </code></pre> <p><strong>I want to have drag and drop effect LinearLayout container.</strong> Any idea how to achieve Drag and Drop for LinearLayout container? I got working example for ListView, I guess for scrollview it should be same too, <strong>but scrollview can contain only one child view inside it.</strong> </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload