Note that there are some explanatory texts on larger screens.

plurals
  1. POHorizontal ScrollView above a Button from LinearLayout
    primarykey
    data
    text
    <p>What I wish to achieve is something like this:</p> <p><img src="https://i.stack.imgur.com/lYwKI.png" alt="H&amp;M android app"></p> <p>The thing is: after I tap on the circle button on the bottom layout, it appears a HorizontalScrollView with the possible colors of the product (which I will have to download). I tried something like this: </p> <pre><code> &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" &gt; &lt;LinearLayout android:id="@+id/lay_productdetailed_bottombar" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/transparent" android:gravity="center_vertical" android:orientation="horizontal" &gt; &lt;Button android:id="@+id/btn_productdetailed_fullscreen" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_weight="1" android:text="Full" /&gt; &lt;Button android:id="@+id/btn_productdetailed_colors" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_weight="1" android:text="Colors" /&gt; &lt;Button android:id="@+id/btn_productdetailed_sizes" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_weight="1" android:text="Sizes" /&gt; &lt;Button android:id="@+id/btn_productdetailed_buy" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_weight="1" android:text="Buy" /&gt; &lt;/LinearLayout&gt; &lt;HorizontalScrollView android:id="@+id/hscroll_productdetailed_colors" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_above="@+id/btn_productdetailed_colors" &gt; &lt;LinearLayout android:id="@+id/lay_productdetailed_colors" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="2dp" &gt; &lt;ImageButton android:layout_width="60dp" android:layout_height="60dp" android:layout_gravity="center_vertical" /&gt; &lt;ImageButton android:layout_width="60dp" android:layout_height="60dp" android:layout_gravity="center_vertical" /&gt; &lt;/LinearLayout&gt; &lt;/HorizontalScrollView&gt; &lt;/RelativeLayout&gt; </code></pre> <p>those 2 ImageButtons are just for testing, to watch their position on the screen (Eclipse).</p> <p>This code does not seem to align the horizontal scrollview above the button at all. Any ideas on how can I achieve that?</p> <p>PS. Another question would be: Can I make those buttons rounded, like in the pic, without creating a a class that extends Shape? </p>
    singulars
    1. This table or related slice is empty.
    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.
    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