You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I have not seen any example of positioning the messages in a custom view, I want to share how I solved the problem to get inputs from other users. I am not sure if this is the proper way but it works for me.... more or less:
I added this code to the layout embedded in a RelativeLayout:
<!-- required by AppMsg to position in another place -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/messagescontainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true">
<include layout="@layout/app_msg"/>
</LinearLayout>
However, there seems to be a bug because the message is shown as soon is instantiated in makeText(), without the need to call show() method. However, you need to call show() in order to make cancel() method work. Otherwise, cancel() does not remove the message.
Are these bugs or I am not using it in the proper way?
The text was updated successfully, but these errors were encountered:
As I have not seen any example of positioning the messages in a custom view, I want to share how I solved the problem to get inputs from other users. I am not sure if this is the proper way but it works for me.... more or less:
I added this code to the layout embedded in a RelativeLayout:
and this code into the Java
However, there seems to be a bug because the message is shown as soon is instantiated in makeText(), without the need to call show() method. However, you need to call show() in order to make cancel() method work. Otherwise, cancel() does not remove the message.
Are these bugs or I am not using it in the proper way?
The text was updated successfully, but these errors were encountered: