Techbirds | Knowledge Hub | Page 18

How to create a rounded button in android:   Step1: add a xml file button_round.xml in drawable folder with following code:

        

  Step2: add this drawable as the background of your button android:background = “@drawable/button_round”  668 total views, no views today

668 total views, no views today

How to add badge to corner of button as:- 1: make BadgeView class import android.content.Context; import android.content.res.Resources; import android.graphics.Color; import android.graphics.Typeface; import android.graphics.drawable.ShapeDrawable; import android.graphics.drawable.shapes.RoundRectShape; import android.util.AttributeSet; import android.util.TypedValue; import android.view.Gravity; import android.view.View; import android.view.ViewGroup; import android.view.ViewGroup.LayoutParams; import android.view.ViewParent; import android.view.animation.AccelerateInterpolator; import android.view.animation.AlphaAnimation; import android.view.animation.Animation; import android.view.animation.DecelerateInterpolator; import android.widget.FrameLayout; import android.widget.TabWidget; import android.widget.TextView; public class

Read More →

2,833 total views, no views today

1:Download gson-2.2.4.jar and Insert Library inside libs folder 2:Then for ex:- you have a ArrayList like this ArrayList filelist= new ArrayList(); then you can change it to string String json = new Gson().toJson(filelist); And if you want to change back to ArrayList then Type type = (Type) new TypeToken() { }.getType(); filelist= new Gson().fromJson( json

Read More →

611 total views, no views today

1:- For AdColony ads AdColony delivers high-definition Instant-Play video ads that can be displayed anywhere within your application. AdColony also contains V4VC, a secure system for rewarding users of your app with virtual currency upon the completion of video plays. 1.a–Download adcolony.jar and Insert Library inside libs folder Place adcolony.jar in your project’s “libs” folder.

Read More →

3,444 total views, no views today

Hello folks, First of all i want to complaint !! hmmmm. when i press tab here ..cursor goes off nothing happens. please activate the tab press ….requesting!! Anyways, This very post i am writing to solve some problems of my friends. What to do when you want to work with login of facebook-sdk. THE LOGICAL

Read More →

489 total views, no views today