noobieDeveloper
I have a EditText and TextView as shown
<LinearLayout
android:gravity="center"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.2">
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/editLength"
android:hint="LENGTH"
android:layout_gravity="center_horizontal|center_vertical"
android:background="@android:color/transparent"
android:textSize="40dp"
android:textAlignment="center"
android:textColor="#ffffff"
android:textColorHint="#ffffff" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="40dp"
android:visibility="invisible"
android:textColor="#ffffff"
android:text="min"/>
</LinearLayout>
what i want to achieve is when i edit the 'editLength' control i want the TextView to be visible.
I don't want it to do with the glue code(Activity.java). I suppose it can be done through binding of the visibility property of the textbox to the text of 'EditText'.
Can any one guide me how to achieve this?