Note that there are some explanatory texts on larger screens.

plurals
  1. POExpandableListView not showing up in fragment
    primarykey
    data
    text
    <p>I am facing one issue,I am inflating my fragment using <code>inflater.inflate(id, container, false)</code>. If I inflate it using <code>inflater.inflate(id, null)</code> then it is showing up.</p> <p>I can't use second method for inflating as I have defined <code>theme</code> in <code>manifest</code> file and need a different background for this specific screen. After using second method, background image is not covering complete screen.</p> <p>Please find below my xml</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/home_blackgroundpng" android:orientation="vertical" &gt; &lt;HorizontalScrollView android:id="@+id/horizontalScrollView1" android:layout_width="wrap_content" android:layout_height="match_parent" &gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" &gt; &lt;View android:layout_width="fill_parent" android:layout_height="2dp" android:background="@color/divider_color1" &gt; &lt;/View&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:layout_marginLeft="25dp" &gt; &lt;include layout="@layout/report_header"/&gt; &lt;/LinearLayout&gt; &lt;View android:layout_width="fill_parent" android:layout_height="2dp" android:background="@color/divider_color1" &gt; &lt;/View&gt; &lt;ExpandableListView android:id="@+id/reportList" android:layout_width="match_parent" android:layout_height="wrap_content"/&gt; &lt;/LinearLayout&gt; &lt;/HorizontalScrollView&gt; </code></pre> <p></p> <p>Code to inflate it is:</p> <pre><code>public class SalesReportSTLFragment extends Fragment{ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){ ViewGroup root = (ViewGroup) inflater.inflate(R.layout.report_stl, container, false); fillList(); return root; } } </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.
    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