28 Feb 2014

Best Android resources.

Hello Friends,

There is a lots of resources available for making graphics in mobile application.

here is some resources link.

Android Graphics Resources | Android Graphics tools:

http://angrytools.com/
http://dabuttonfactory.com/
http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html
https://www.buzzingandroid.com/tools/android-layout-finder/

Image Editing :

On line Photo Editor  : https://pixlr.com/
Compass Images        : https://tinypng.com/
Resize images            : http://www.picresize.com/
Batch Resize images  :http://www.picresize.com/batch.php

Customize Tab Layout using Fragment in Android:

http://androidcodeblogspot.blogspot.in/2014/02/android-fragment-tab-example-bottom.html
http://adanware.blogspot.in/2012/04/android-custom-tab-layouts-just-using.html
http://mrbool.com/how-to-customize-tab-layout-in-android/28153
http://natieklopper.blogspot.in/2011/08/iphone-styled-bottom-aligned-tab-bar.html
https://github.com/iamjayanth/FragmentTabStudy

Android resources


Audio and video recording
https://github.com/steelkiwi/AndroidRecording

Bluetooth
http://arissa34.github.io/Android-Bluetooth-Library/

ImageSlider With animation
https://github.com/daimajia/AndroidImageSlider

Location
https://github.com/mrmans0n/smart-location-lib

Face changer
https://github.com/lafosca/AndroidFaceCropper

Emoji
https://github.com/n8fr8/AndroidEmojiInput
http://rockerhieu.com/emojicon/

FreeFlow
https://github.com/Comcast/FreeFlow

Mediachosser
https://github.com/learnNcode/MediaChooser

SocialNetworks
https://github.com/antonkrasov/AndroidSocialNetworks

Aauth-client
https://github.com/wuman/android-oauth-client

Webcaching
https://github.com/leocadiotine/WebCachedImageView

Wheelview
https://github.com/LukeDeighton/WheelView

Android-Wheel-Menu
https://github.com/anupcowkur/Android-Wheel-Menu

cards view
http://www.appance.com/cards/

PDF view:
http://www.joanzapata.com/android-pdfview/

AnimatedGridView
https://github.com/mikepenz/AnimatedGridView

Auto-scroll-view-pager
https://github.com/Trinea/android-auto-scroll-view-pager

swipe layout delete
https://github.com/daimajia/AndroidSwipeLayout

arcMenu
https://github.com/oguzbilgener/CircularFloatingActionMenu




I will be happy if you will provide your feedback or follow this blog. Any suggestion and help will be appreciated.
Thank you :)

25 Feb 2014

Display Image in Round Corner android

Hello Friends,

Today i am going to post Display Image in Shape/Round Corner. here you change corner value as per your requirement.

OutPut Screen:

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PorterDuff.Mode;
import android.graphics.PorterDuffXfermode;
import android.graphics.Rect;
import android.graphics.RectF;
import android.os.Bundle;
import android.widget.ImageView;

public class MainActivity extends Activity 
{
 ImageView imageView;
 
 @Override
 protected void onCreate(Bundle savedInstanceState) 
 {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  
  imageView=(ImageView) findViewById(R.id.img);
  
  Bitmap bitmapFromDrawable = BitmapFactory.decodeResource(getResources(),R.drawable.kukulkan);
  imageView.setImageBitmap(roundCorner(bitmapFromDrawable,20));
 }
 
 
 public static Bitmap roundCorner(Bitmap src, float round) 
 {
     // image size
     int width = src.getWidth();
     int height = src.getHeight();
     // create bitmap output
     Bitmap result = Bitmap.createBitmap(width, height, Config.ARGB_8888);
     // set canvas for painting
     Canvas canvas = new Canvas(result);
     canvas.drawARGB(0, 0, 0, 0);
  
     // config paint
     final Paint paint = new Paint();
     paint.setAntiAlias(true);
     paint.setColor(Color.BLACK);
  
     // config rectangle for embedding
     final Rect rect = new Rect(0, 0, width, height);
     final RectF rectF = new RectF(rect);
  
     // draw rect to canvas
     canvas.drawRoundRect(rectF, round, round, paint);
  
     // create Xfer mode
     paint.setXfermode(new PorterDuffXfermode(Mode.SRC_IN));
     // draw source image to canvas
     canvas.drawBitmap(src, rect, rect, paint);
  
     // return final image
     return result;
 }

}



You may also like this post 
More reference link


I will be happy if you will provide your feedback or follow this blog. Any suggestion and help will be appreciated.
Thank you :)