[Android Software/Hacking General [Developers Only]] Breakcore_Rush:
Can we ported aosp glowpad button on our stock samsung dialer android 5.0 ? Can you give an assessment as an expert please

image:

Thank you

upd i found sample of glowpad we can using it?

https://play.google.com/store/apps/details?id=net.sebastianopoggi.samples.ui.GlowPadSample

[YOUTUBE]cS9LSb-P2ns[/YOUTUBE]​

https://github.com/frakbot/GlowPadBackport

My friend finist1 make projects for aide you can using it

https://yadi.sk/d/E7xCPq8TdocFC

https://yadi.sk/d/hzZlbfa-docJq

He plug library now programmers can use it with app glowpad on full potential and take resources from it

Also this code we found in stock caller is very simmilar like glowpadsample

LegacyInCallUI\res\layout\answer_fragment.xml

<?xml version="1.0" encoding="utf-8"?>
<com.android.incallui.GlowPadWrapper android:gravity="center" android:id="@id/glow_pad_view" android:background="@android:color/black" android:focusable="true" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" dc:targetDrawables="@array/incoming_call_widget_3way_targets" dc:targetDescriptions="@array/incoming_call_widget_3way_target_descriptions" dc:directionDescriptions="@array/incoming_call_widget_3way_direction_descriptions" dc:handleDrawable="@drawable/ic_in_call_touch_handle" dc:outerRingDrawable="@android:drawable/ic_lockscreen_sim" dc:innerRadius="@dimen/glowpadview_inner_radius" dc:outerRadius="@dimen/glowpadview_target_placement_radius" dc:glowRadius="@dimen/glowpadview_glow_radius" dc:vibrationDuration="20" dc:snapMargin="@dimen/glowpadview_snap_margin" dc:feedbackCount="1" dc:allowScaling="true"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:dc="http://schemas.android.com/apk/res-auto" />

GlowPadBackport-sample-release\res\layout\main.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<Button android:id="@id/btn_toggle_padmult" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/btn_toggle_multiplier" android:layout_alignParentTop="true" />
<net.sebastianopoggi.ui.GlowPadBackport.GlowPadView android:gravity="top" android:id="@id/incomingCallWidget" android:background="@android:color/black" android:visibility="visible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="-10.0dip" android:layout_marginBottom="-46.0dip" android:layout_below="@id/btn_toggle_padmult" app:targetDrawables="@array/incoming_call_widget_2way_targets" app:handleDrawable="@drawable/ic_in_call_touch_handle" app:outerRingDrawable="@drawable/ic_lockscreen_outerring" app:pointDrawable="@drawable/ic_lockscreen_glowdot" app:innerRadius="@dimen/glowpadview_inner_radius" app:outerRadius="@dimen/glowpadview_target_placement_radius" app:glowRadius="@dimen/glowpadview_glow_radius" app:vibrationDuration="20" app:snapMargin="@dimen/glowpadview_snap_margin" app:feedbackCount="1" />
</RelativeLayout>

stock caller