Ребят, всем привет. Я к вам с очередным вопросом. Есть у меня кастомный контролл с таким лайяутом
<RelativeLayout
xmlns:android="
http://schemas.android.com/apk/res/android"
android:paddingTop="16dp"
android:paddingBottom="10dp"
android:layout_width="match_parent"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:background="
@drawable/bordered_edit_text"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/linearLayout"
android:orientation="vertical"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
style="
@style/InfoLabel"
android:id="@+id/titleLabel"
android:text="TEXT"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<EditText
android:duplicateParentState="true"
android:id="@+id/dataTextField"
android:background="@null"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_marginTop="15dp"
android:layout_marginBottom="10dp"
android:textSize="
@dimen/font_medium"
android:textColor="
@color/edit_text_color"
android:textColorHint="
@color/hint_text_color"
android:inputType="textMultiLine"
android:minLines="2"
android:hint="DATA"
/>
<TextView
android:id="@+id/counterLabel"
android:text="COUNTER"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textSize="
@dimen/font_medium"
android:textColor="
@color/edit_text_color"
/>
</LinearLayout>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="
@drawable/i"
android:layout_alignTop="@+id/linearLayout"
android:layout_toLeftOf="@+id/linearLayout"
android:layout_marginRight="-27dp"
/>
</RelativeLayout>