-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Circles are appearing below the screen #5
Comments
Hello! Looks like some issue with markup. Can you please provide xml or code which creates that layout? |
This is my xml layout....
`<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/edittext_bg">
<TextView
android:id="@+id/time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/input_holder"
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/activity_main_time_margin_bottom"
android:text="00:00:00"
android:textColor="@color/black"
android:visibility="invisible" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/activity_main_shadow_height"
android:layout_above="@+id/input_holder"
android:layout_gravity="bottom"
android:background="@drawable/background_shadow" />
<com.dewarder.holdinglibrary.HoldingButtonLayout
android:id="@+id/input_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:background="@color/bg"
app:hbl_offset_y="@dimen/_minus60sdp"
app:hbl_cancel_icon="@drawable/ic_close_black_24dp"
app:hbl_holding_view="@+id/start_record"
app:hbl_icon="@drawable/ic_mic_black_24dp"
app:hbl_radius="@dimen/_60sdp"
app:hbl_second_radius="@dimen/_70sdp">
<LinearLayout
android:id="@+id/slide_to_cancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|end"
android:layout_marginEnd="@dimen/activity_main_slide_to_cancel_margin_right"
android:layout_marginRight="@dimen/activity_main_slide_to_cancel_margin_right"
android:background="@drawable/edittext_bg"
android:gravity="center_vertical"
android:visibility="invisible">
<ImageView
android:layout_width="@dimen/activity_main_slide_to_cancel_icon_size"
android:layout_height="@dimen/activity_main_slide_to_cancel_icon_size"
android:layout_marginEnd="@dimen/activity_main_slide_to_cancel_icon_margin_right"
android:layout_marginRight="@dimen/activity_main_slide_to_cancel_icon_margin_right"
android:scaleType="center"
android:src="@drawable/ic_keyboard_arrow_left_black_24dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="10dp"
android:text="@string/label_slide_to_cancel"
android:textColor="@color/black" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"
android:gravity="center"
android:minHeight="@dimen/activity_main_input_holder_min_height"
android:orientation="horizontal">
<TextView
android:id="@+id/input"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/activity_main_input_margin_left"
android:layout_marginStart="@dimen/activity_main_input_margin_left"
android:layout_weight="1"
android:background="@drawable/edittext_bg"
android:paddingBottom="@dimen/activity_main_input_padding_vertical"
android:paddingTop="@dimen/activity_main_input_padding_vertical"
android:textSize="@dimen/activity_main_input_text_size" />
<ImageView
android:id="@+id/start_record"
android:layout_width="@dimen/activity_main_start_record_width"
android:layout_height="wrap_content"
android:scaleType="center"
android:src="@drawable/ic_mic_black_24dp"
android:visibility="visible" />
</LinearLayout>
</com.dewarder.holdinglibrary.HoldingButtonLayout>
</RelativeLayout>
`
If I use this layout in new application, it works fine but when I copy this
layout and same class code to my App, issue starts to appear which I shared
with you on github.
I tried to search for almost 10 days, but couldn't find the issue...
also I
1) changed my dimensions
2) changed my style(android side)
3) run your code independently on my app, but still same issue was there.
If you solve it, this would be a great favor from you. Thanks.
…On Wed, Jan 3, 2018 at 2:29 PM, Artem Hluhovskyi ***@***.***> wrote:
Hello! Looks like some issue with markup. Can you please provide xml or
code which creates that layout?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUOHUVn7mQOeUoKS465NGObFGhRgeV18ks5tG0iLgaJpZM4RRYV1>
.
|
I've jsut tested code that you send and problem appears if @dimen/_minus60sdp is set to 60dp (or -60dp but then it jumps to the top). Have you tried to remove that offset? Cause from my understanding it isn't needed in your code at all. If it does, offset shouldn't be so huge (60dp -> 6dp for example). |
Actually sir, I did remove offset-y but then I was unable to see the
circles, so I had to make it (minus 60) so that I can bring circles
up(according to screen from top to bottom) ... But this minus 60 couldn't
help me and this is maximum value which I can try. Don't know the problem,
your code works fine in new application, but if I run it on my application,
it cause this issue.
Offset-y do bring circles up, but not to the required place.
ALwaYs kEeP sMiLinG :)
…On Mon, Jan 8, 2018 at 2:13 PM, Artem Hluhovskyi ***@***.***> wrote:
I've jsut tested code that you send and problem appears if
@dimen/_minus60sdp is set to 60dp (or -60dp but then it jumps to the top).
Have you tried to remove that offset? Cause from my understanding it isn't
needed in your code at all. If it does, offset shouldn't be so huge (60dp
-> 6dp for example).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUOHUcD_6blYnj4Se1Jooo_GNlMftsE3ks5tIdxVgaJpZM4RRYV1>
.
|
Hmm, interesting. Can you upload or share some minimal, complete and verifiable project? Cause otherwise it's very hard to say what's going wrong. |
Ok I will build new project and will send to you asap. Thanks |
Hi I am implementing this library in my project. But the problem I am facing is that holding button circles are appearing below the parent view. Like, by pressing mic button, circles are forming below the screen and when I increase the radius size, only then I can see only top of the radius color.
Circles are misplaced and I do not know the reason. Can you help?
The text was updated successfully, but these errors were encountered: