Issue
I want to add call icon on Button but drawableTop is not working.
<LinearLayout
android:layout_width="match_parent"
android:layout_height="60dp">
<Button
android:id="@+id/imageView3"
android:layout_width="wrap_content"
android:drawableTop="@android:drawable/ic_menu_call"
android:layout_height="match_parent"
android:layout_weight="1" />
</LinearLayout>
Solution
Replace your Button with AppCompatButton
<LinearLayout
android:layout_width="match_parent"
android:layout_height="60dp">
<android.support.v7.widget.AppCompatButton
android:id="@+id/imageView3"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:drawableTop="@android:drawable/ic_menu_call"/>
</LinearLayout>
Answered By - karan

0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.