title: Expandable List View Android Dropdown Alignment
body: <p>I have an application with an <code>ExpandableListView</code> 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="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
  
      &lt;ExpandableListView
          android:id="@+id/android:list"
          android:layout_width="fill_parent"
          android:layout_height="0dp"
          android:layout_weight="1" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>This <code>ExpandableListView</code> is initialized with the following code inside the <code>onCreate</code> method of an activity that extends <code>ExpandableListActivity</code>.</p>
  
  <pre><code>ExpandableListView expandableView = getExpandableListView();
  
  expandableView.setIndicatorBounds(width - GetDipsFromPixel(50), width - GetDipsFromPixel(10));  
  
  expandableView.setAdapter(new DataExpAdaptor(this, _currentDate.getTimeInMillis(), _isShowAddress));
  
  expandableView.setOnItemLongClickListener(handleItemLongClicks);
  </code></pre>
  
  <p>This has until recently been working fine on our the Galaxy S3 mini but since updating to a newer version of the Galaxy S4 Mini (Android 4.4.2) &amp; Galaxy S5 (Android 5.0)) the list view is now left aligning the dropdown items when this previously was right aligned.</p>
  
  <p>I need to support both the existing hardware (Galaxy S3 Mini's) and the newer hardware but cant seem to set the alignment of the dropdown boxes. It doesn't matter left or right aligned, I just need to reliably know one way or the other?</p>
  
  <p><strong>Galaxy S3 Right Align</strong></p>
  
  <p><a href="https://i.stack.imgur.com/CIkKo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CIkKo.png" alt="Galaxy S3 Right Align"></a></p>
  
  <hr>
  
  <p><strong>Galaxy S4 Left Align</strong></p>
  
  <p><a href="https://i.stack.imgur.com/ZBfsy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZBfsy.png" alt="enter image description here"></a></p>