dimanche 4 janvier 2015

Glowpad for stock Caller ID AOSP style topic

22:39






Hi all im going to porting glowpad efect to our caller need help by experts

Can we ported aosp glowpad button on our stock dialer? 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/d....GlowPadSample


Quote:









In order to use the GlowPadView in your project, follow these steps:

Ensure you have the Maven Central repository configured in your build.gradle file, eg.:

repositories {
mavenCentral()
}
This has to be in your app module's build.gradle or in the project's top-level build.gradle file. Android Studio puts it into the top-level file by default.

Add the dependency to your app's module build.gradle file, eg.:


Code:


dependencies {
    // Your other dependencies...
    compile 'net.frakbot.glowpadbackport:glowpadbackport:2.1.0'
}


Reference the GlowPadView in an XML layout (or initialise it from code)


Code:


<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:app="http://schemas.android.com/apk/res-auto"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent">

    <net.sebastianopoggi.ui.GlowPadBackport.GlowPadView
            android:id="@+id/incomingCallWidget"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_marginTop="-10dp"
            android:layout_marginBottom="-46dp"
            android:background="@android:color/black"
            android:visibility="visible"
            android:gravity="top"

            app:targetDrawables="@array/incoming_call_widget_2way_targets"
            app:handleDrawable="@drawable/ic_in_call_touch_handle"
            app:innerRadius="@dimen/glowpadview_inner_radius"
            app:outerRadius="@dimen/glowpadview_target_placement_radius"
            app:outerRingDrawable="@drawable/ic_lockscreen_outerring"
            app:snapMargin="@dimen/glowpadview_snap_margin"
            app:vibrationDuration="20"
            app:feedbackCount="1"
            app:glowRadius="@dimen/glowpadview_glow_radius"
            app:pointDrawable="@drawable/ic_lockscreen_glowdot"/>

</RelativeLayout>


????

Profit!
Sample app




https://github.com/frakbot/GlowPadBackport






Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

0 commentaires:

Enregistrer un commentaire

 

© 2013 Mobile Probleme. All rights resevered. Designed by Templateism

Back To Top