Note that there are some explanatory texts on larger screens.

plurals
  1. POWhite frame around my Alert Dialog Object?
    primarykey
    data
    text
    <p>The problem started when i was trying to dismiss the dialog on the close button being pressed.</p> <p>I couldn't get it working with my original approach so i tried this one and it has a weird border around the dialog when being presented.</p> <p>Here is the dialog class:</p> <pre><code>package com.Pivotl.PostcardsFromAlaska; import android.app.AlertDialog; import android.app.Dialog; import android.app.DialogFragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; public class PFADialogFragment extends DialogFragment { static PFADialogFragment newInstance() { PFADialogFragment f = new PFADialogFragment(); return f; } @Override public Dialog onCreateDialog(Bundle savedInstanceState) { //getting proper access to LayoutInflater is the trick LayoutInflater inflater = getActivity().getLayoutInflater(); View view = inflater.inflate(R.layout.enter_actions, null); //propManager = new PropManager(getSherlockActivity()); AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setView(view); return builder.create(); } } </code></pre> <p>The dialogs view:</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:padding="3dp" &gt; &lt;LinearLayout android:id="@+id/linearLayout1" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_centerInParent="true" android:layout_marginRight="166dp" android:background="@layout/roundedshape" android:orientation="vertical" android:paddingBottom="10dp" android:paddingLeft="5dp" android:paddingRight="5dp" &gt; &lt;Button android:id="@+id/closeButton" android:layout_width="30dp" android:layout_height="30dp" android:layout_marginBottom="20dp" android:layout_marginLeft="135dp" android:layout_marginTop="5dp" android:background="@drawable/close2x" android:onClick="closeButtonClick" /&gt; &lt;Button android:id="@+id/takePictureButton" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="10dp" android:background="@drawable/big_button2x" android:onClick="takePictureButtonClick" /&gt; &lt;Button android:id="@+id/photoGalleryButton" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="10dp" android:background="@drawable/big_button2x" android:onClick="photoGalleryButtonClick" /&gt; &lt;Button android:id="@+id/artistGalleryButton" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="10dp" android:background="@drawable/big_button2x" android:onClick="artistGalleryButtonClick" /&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; </code></pre> <p>I access and show it on <code>protected void onCreate(Bundle savedInstanceState)</code> using :</p> <pre><code> if(!diagShowing) { showDialog(); } </code></pre> <p>But when it shows it looks like the below: <img src="https://i.stack.imgur.com/E1wYb.png" alt="White border"></p> <p>Why would it be displaying this border and how can i get it to display only my view?</p> <p>Any help, appreciated!!</p>
    singulars
    1. This table or related slice is empty.
    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