Note that there are some explanatory texts on larger screens.

plurals
  1. POOdd default formatting on Button?
    primarykey
    data
    text
    <p>Can anyone tell me why this (the circled part) is happening? This happened immediately after I added it to the activity.</p> <p><img src="https://i.stack.imgur.com/b1jbR.png" alt="enter image description here"></p> <p>The all important (and relevant) part of the xml:</p> <p> </p> <pre><code>&lt;TableLayout android:id="@+id/tableLayout1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:layout_alignParentTop="true" &gt; &lt;TableRow android:id="@+id/tableRow1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="5dp" &gt; &lt;TextView android:id="@+id/textView1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="5dp" android:text="Delivery Approval" /&gt; &lt;/TableRow&gt; &lt;TableRow android:id="@+id/tableRow2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="5dp" &gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical" &gt; &lt;TextView android:id="@+id/textView2" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center_vertical|center_horizontal|center" android:layout_weight="1" android:background="@color/CornflowerBlue" android:padding="5dp" android:text="Quantity Approved?" android:textStyle="bold" /&gt; &lt;TextView android:id="@+id/textView3" style="@style/subText" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Is the quantity being delivered correct and all accounted for?" android:textStyle="italic" /&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical" &gt; &lt;RadioGroup android:id="@+id/radioGroup1" style="@style/subRadioButtons" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" android:layout_marginRight="10dp" android:layout_weight="1" &gt; &lt;RadioButton android:id="@+id/quaYes" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:checked="false" android:text="Yes" /&gt; &lt;RadioButton android:id="@+id/quaNo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="No" /&gt; &lt;/RadioGroup&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;/TableRow&gt; &lt;TableRow android:id="@+id/tableRow3" android:layout_width="match_parent" android:layout_height="fill_parent" android:layout_weight="1" android:padding="5dp" &gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical" &gt; &lt;TextView android:id="@+id/textView4" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/CornflowerBlue" android:padding="5dp" android:text="Condition Approved?" android:textStyle="bold" /&gt; &lt;TextView android:id="@+id/textView5" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="5dp" android:text="Is the condition of delivery satisfactory?" android:textAlignment="center" android:textAppearance="@style/subText" android:textStyle="italic" /&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical" &gt; &lt;RadioGroup android:id="@+id/radioGroup2" style="@style/subRadioButtons" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" android:layout_marginRight="10dp" android:layout_weight="1" &gt; &lt;RadioButton android:id="@+id/conYes" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:checked="false" android:text="Yes" /&gt; &lt;RadioButton android:id="@+id/conNo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="No" /&gt; &lt;/RadioGroup&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;/TableRow&gt; &lt;TableRow android:id="@+id/tableRow4" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="5dp" &gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical" &gt; &lt;TextView android:id="@+id/textView6" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:background="@color/CornflowerBlue" android:padding="5dp" android:text="Proof" android:textStyle="bold" /&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical" &gt; &lt;TextView android:id="@+id/textView7" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="5dp" android:text="If delivery has not been approved. Please provide proof. Using either Photographic evidence, or voice, detailing issue." android:textAppearance="@style/subText" android:textStyle="italic" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" &gt; &lt;ImageView android:id="@+id/imageView1" android:layout_width="128dp" android:layout_height="64dp" android:layout_gravity="center_vertical|start" android:layout_weight="1" android:scaleType="fitCenter" android:src="@drawable/icon_photo" /&gt; &lt;ImageView android:id="@+id/imageView2" android:layout_width="128dp" android:layout_height="64dp" android:layout_gravity="center_vertical|end" android:layout_weight="1" android:scaleType="fitCenter" android:src="@drawable/icon_record" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:layout_below="@+id/tableLayout1" android:orientation="vertical" android:padding="5dp" &gt; &lt;Button android:id="@+id/cmdNext" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:text="Customer Signature" android:textAlignment="center" android:textSize="12sp" /&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; </code></pre> <p>As you can see I've set <code>textAlignment</code> to center, but it does nothing. Is this an issue with using a Table layout maybe? Possibly, due to other layouts in the activity, it's being forced over one side?</p> <p><strong>Edit #1</strong> - Posted entire XML file, as it stands currently.</p> <p><strong>Edit #2</strong> - Have tried running on the device, but still the same formatting issue, so it's definitely somewhere in my XML, maybe an inherited property (which I tend to avoid, for exactly this reason). I've also attempted to set the position of the text to <strong>any</strong> other position and nothing changes in the designer, nor on the device/emulator. </p> <p>Many thanks!</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