mobile/android/base/resources/layout/validation_message.xml
author Sriram Ramasubramanian <sriram@mozilla.com>
Wed, 18 Apr 2012 15:35:36 -0700
changeset 95297 8b1087512ec4787852ab2625eb46d047f4e5c510
parent 95207 656d5df8c8de91e53ef12b6ffa09929723bd46bc
child 98529 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Bug 737922: Invert form validation arrow if it is shown on top. [r=mfinkle] [a=blocking-fennec]

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="wrap_content"
                android:layout_height="50dip">

    <TextView android:id="@+id/validation_message_text"
              android:layout_width="wrap_content"
              android:layout_height="40dip"
              android:layout_marginTop="6dip"
              android:paddingLeft="20dp"
              android:paddingRight="20dp"
              android:textAppearance="?android:attr/textAppearanceSmall"
              android:textColor="@color/validation_message_text"
              android:background="@drawable/validation_bg"
              android:gravity="center"
              android:singleLine="true"
              android:scrollHorizontally="true"
              android:ellipsize="marquee"/>

    <ImageView android:id="@+id/validation_message_arrow"
               android:layout_width="24dip"
               android:layout_height="10dip"
               android:layout_centerHorizontal="true"
               android:layout_alignParentTop="true"
               android:src="@drawable/validation_arrow"
               android:scaleType="fitXY"/>

    <ImageView android:id="@+id/validation_message_arrow_inverted"
               android:layout_width="24dip"
               android:layout_height="10dip"
               android:layout_centerHorizontal="true"
               android:layout_marginTop="35dip"
               android:layout_alignParentTop="true"
               android:src="@drawable/validation_arrow_inverted"
               android:scaleType="fitXY"
               android:visibility="gone"/>

</RelativeLayout>