RTL - sectioned inbox teaser. b/12534879.

Should also provided better RTL support for
nested folders.

Change-Id: I2a5109993b693f44519b800a9768edaf88b42422
diff --git a/res/layout/folder_teaser_item.xml b/res/layout/folder_teaser_item.xml
index 63c2abc..0eb0e41 100644
--- a/res/layout/folder_teaser_item.xml
+++ b/res/layout/folder_teaser_item.xml
@@ -13,38 +13,31 @@
      See the License for the specific language governing permissions and
      limitations under the License.
 -->
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:background="@drawable/folder_teaser_item_background"
-    android:paddingTop="8dp" >
+    android:paddingTop="8dp"
+    android:paddingBottom="8dp"
+    android:paddingLeft="16dp"
+    android:paddingRight="16dp" >
 
     <ImageView
         android:id="@+id/folder_imageView"
         android:layout_width="48dp"
         android:layout_height="wrap_content"
-        android:layout_alignParentLeft="true"
-        android:layout_centerVertical="true"
-        android:layout_marginLeft="16dp"
-        android:layout_marginRight="12dp"
-        android:layout_marginBottom="8dp"
+        android:layout_gravity="center_vertical"
         android:background="@color/folder_teaser_icon_background"
-        android:baselineAlignBottom="true"
         android:duplicateParentState="true" />
 
-    <View
-        android:id="@+id/frame_height_spacer"
-        android:layout_width="0dp"
-        android:layout_height="0dp"
-        android:layout_below="@id/folder_imageView" />
-
     <LinearLayout
         android:id="@+id/text_layout"
-        android:layout_width="match_parent"
+        android:layout_width="0dip"
         android:layout_height="wrap_content"
-        android:layout_centerVertical="true"
-        android:layout_toLeftOf="@+id/count_textView"
-        android:layout_toRightOf="@id/folder_imageView"
+        android:layout_weight="1"
+        android:layout_gravity="center_vertical"
+        android:layout_marginLeft="12dp"
+        android:layout_marginRight="12dp"
         android:duplicateParentState="true"
         android:orientation="vertical" >
 
@@ -75,13 +68,10 @@
     </LinearLayout>
 
     <TextView
-        android:id="@id/count_textView"
+        android:id="@+id/count_textView"
         android:layout_width="wrap_content"
         android:layout_height="24sp"
-        android:layout_alignParentRight="true"
-        android:layout_centerVertical="true"
-        android:layout_marginLeft="12dp"
-        android:layout_marginRight="16dp"
+        android:layout_gravity="center_vertical"
         android:minWidth="@dimen/folder_teaser_count_textview_minwidth"
         android:paddingLeft="16dp"
         android:paddingRight="16dp"
@@ -89,4 +79,4 @@
         android:textColor="@color/folder_teaser_count_text"
         android:textSize="16sp" />
 
-</RelativeLayout>
\ No newline at end of file
+</LinearLayout>