Note that there are some explanatory texts on larger screens.

plurals
  1. POView appears on Android Emulator but not on physical phone
    primarykey
    data
    text
    <p>I have an activity layout consisting of just a ListView. It is supposed to use a list format xml which consists of a custom shape with three TextViews inside. In code I populate the ListView with the desired text, and when I run the app on an AVD, everything works as planned. When I deploy to my Droid Razr, however, the entire screen is blank when I run that activity.</p> <p>Edit: Added code below</p> <p>This is my custom shape (drawable): </p> <pre><code>&lt;stroke android:width="1dp" android:color="#ff9f9f9f" /&gt; &lt;padding android:bottom="20dp" android:left="20dp" android:right="20dp" android:top="20dp" /&gt; &lt;solid android:color="@color/white" /&gt; &lt;corners android:bottomLeftRadius="7dp" android:bottomRightRadius="7dp" android:topLeftRadius="7dp" android:topRightRadius="7dp" /&gt; </code></pre> <p></p> <p>This is my list format:</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="?android:attr/listPreferredItemHeight" android:background="@drawable/rounded_edges" android:orientation="vertical" android:padding="6dip" android:theme="@android:style/Theme.Holo.Light" &gt; &lt;TextView android:id="@+id/details_list_title" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="6dp" android:layout_marginRight="6dp" android:layout_weight="1" android:textAppearance="?android:attr/textAppearanceLarge" /&gt; </code></pre> <p></p> <p>And this is how I use it in code:</p> <pre><code> ListView listView = (ListView) findViewById(R.id.event_details_listView); DetailAdapter adapter = new DetailAdapter(this, R.layout.listformat_event_details, details); listView.setAdapter(adapter); </code></pre> <p>Where details is an ArrayList> of my text. DetailAdapter has a getView method which adds text to the textview and inflates the layout.</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