Note that there are some explanatory texts on larger screens.

plurals
  1. POButton in the layout is not showing
    primarykey
    data
    text
    <p>I'm trying to place a button under an image view in the layout of the .xml file as follows:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" &gt; &lt;TextView android:id="@+id/name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Name: " /&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"&gt; &lt;TextView android:id="@+id/divider01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Meeting Point Position" android:paddingLeft="100dp" android:textColor="@android:color/black" android:textSize="9dp" android:background="@drawable/t_505_12"&gt; &lt;/TextView&gt; &lt;/LinearLayout&gt; &lt;TextView android:id="@+id/lat" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="LAT: " /&gt; &lt;TextView android:id="@+id/lng" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="LNG: " /&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"&gt; &lt;TextView android:id="@+id/divider01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Date/Time" android:paddingLeft="120dp" android:textColor="@android:color/black" android:textSize="9dp" android:background="@drawable/t_505_12"&gt; &lt;/TextView&gt; &lt;/LinearLayout&gt; &lt;TextView android:id="@+id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Date: " /&gt; &lt;TextView android:id="@+id/time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Time: " /&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"&gt; &lt;TextView android:id="@+id/divider01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Navigation Arrow" android:paddingLeft="120dp" android:textColor="@android:color/black" android:textSize="9dp" android:background="@drawable/t_505_12"&gt; &lt;/TextView&gt; &lt;/LinearLayout&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"&gt; &lt;ImageView android:id="@+id/iv01" android:layout_width="wrap_content" android:layout_height="wrap_content"/&gt; &lt;Button android:id="@+id/bt01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="90sp" android:layout_marginTop="190sp" android:text="Navigate" /&gt; &lt;/LinearLayout&gt; </code></pre> <p></p> <p>But the problem is that: only the image view appears and the button is not showing. Any suggestions on how to solve this problem?</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