Issue
I am trying to achieve the following (see image) on an EditText using android drawable property.
I have tried using android:gravity="bottom"
with no success.
And there is no android:drawableGravity
property as you can see.
Current Code:
<EditText
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_full"
android:layout_marginEnd="@dimen/margin_half"
android:background="@drawable/bg_input_circular"
android:drawableStart="@drawable/ic_attach_24dp"
android:drawablePadding="@dimen/margin_half"
android:ems="10"
android:inputType="textMultiLine"
android:lines="4"
android:minLines="1"
android:paddingStart="@dimen/margin_full"
android:paddingTop="@dimen/margin_half_full"
android:paddingEnd="@dimen/margin_full"
android:paddingBottom="@dimen/margin_half_full"
android:text="@string/hello_blank_fragment" />
Solution
Thanks @Avinashkumawat
<LinearLayout
....
android:background="@drawable/bg_input_circular"
android:orientation="horizontal"
<ImageButton
....
android:layout_gravity="bottom" />
<EditText
.... />
</LinearLayout>
Works Perfectly
Answered By - Shifatul
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.