Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to create layout for piano
    primarykey
    data
    text
    <pre><code>Hello friends i am working on piano app and i am facing some problem in layout creation i want to create layout like below </code></pre> <p><img src="https://i.stack.imgur.com/UHsJQ.png" alt="enter image description here"></p> <pre><code>but i am able to create only this </code></pre> <p><img src="https://i.stack.imgur.com/BSq8P.png" alt="enter image description here"></p> <p>now i want to add all the black buttons but problem is that i am not able to add view above that buttons how can i do this, my current layout code is below please suggest me how can i achieve this now i am able to click all the buttons once i add all the buttons then each button should be clickable. </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white" android:orientation="horizontal" &gt; &lt;LinearLayout android:id="@+id/relativeLayout2" android:layout_width="fill_parent" android:layout_height="match_parent" android:background="@color/white" android:weightSum="1.5" &gt; &lt;ImageView android:id="@+id/bw1" android:layout_width="0dip" android:layout_height="match_parent" android:layout_weight=".1" android:background="@drawable/blacknew" /&gt; &lt;ImageView android:id="@+id/bw2" android:layout_width="0dip" android:layout_height="match_parent" android:layout_weight=".1" android:background="@drawable/blacknew" /&gt; &lt;ImageView android:id="@+id/bw3" android:layout_width="0dip" android:layout_height="match_parent" android:layout_weight=".1" android:background="@drawable/blacknew" /&gt; &lt;ImageView android:id="@+id/bw4" android:layout_width="0dip" android:layout_height="match_parent" android:layout_weight=".1" android:background="@drawable/blacknew" /&gt; &lt;ImageView android:id="@+id/bw5" android:layout_width="0dip" android:layout_height="match_parent" android:layout_weight=".1" android:background="@drawable/blacknew" /&gt; &lt;ImageView android:id="@+id/bw6" android:layout_width="0dip" android:layout_height="match_parent" android:layout_weight=".1" android:background="@drawable/blacknew" /&gt; &lt;ImageView android:id="@+id/bw7" android:layout_width="0dip" android:layout_height="match_parent" android:layout_weight=".1" android:background="@drawable/blacknew" /&gt; &lt;ImageView android:id="@+id/bw8" android:layout_width="0dip" android:layout_height="match_parent" android:layout_weight=".1" android:background="@drawable/blacknew" /&gt; &lt;ImageView android:id="@+id/bw9" android:layout_width="0dip" android:layout_height="match_parent" android:layout_weight=".1" android:background="@drawable/blacknew" /&gt; &lt;ImageView android:id="@+id/bw10" android:layout_width="0dip" android:layout_height="match_parent" android:layout_weight=".1" android:background="@drawable/blacknew" /&gt; &lt;ImageView android:id="@+id/bw11" android:layout_width="0dip" android:layout_height="match_parent" android:layout_weight=".1" android:background="@drawable/blacknew" /&gt; &lt;ImageView android:id="@+id/bw12" android:layout_width="0dip" android:layout_height="match_parent" android:layout_weight=".1" android:background="@drawable/blacknew" /&gt; &lt;ImageView android:id="@+id/bw13" android:layout_width="0dip" android:layout_height="match_parent" android:layout_weight=".1" android:background="@drawable/blacknew" /&gt; &lt;ImageView android:id="@+id/bw14" android:layout_width="0dip" android:layout_height="match_parent" android:layout_weight=".1" android:background="@drawable/blacknew" /&gt; &lt;ImageView android:id="@+id/bw15" android:layout_width="0dip" android:layout_height="match_parent" android:layout_weight=".1" android:background="@drawable/blacknew" /&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; </code></pre>
    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.
 

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