Profile cover photo
Profile photo
Khalifa Visi Islami
1,207 followers -
A nice curious person with a glasses, loves to research and being a scientist-alike
A nice curious person with a glasses, loves to research and being a scientist-alike

1,207 followers
About
Khalifa's interests
View all
Khalifa's posts

Post has shared content
All the reasons I don't take Facebook video seriously, summed up in 1 video.

Post has attachment
Engadget: Disney Research AR app turns colored drawings into 3D characters. http://google.com/newsstand/s/CBIws9jq0iY

Post has shared content
Vector drawable is a must try
Android Studio 1.4 is ready to download in the stable channel. It includes new & updated tools for app design.

Read more about it on our blog: http://goo.gl/m07Ywx

Post has attachment

Post has shared content
Less pain using custom fonts in Android
Android pro tip: One-line custom fonts in XML with data binding!

I started playing with data binding last night for real, and I'm amazed by the power it gives you.  Check out this one-liner to set a custom font on a TextView:

@BindingAdapter({"bind:font"})
public static void setFont(TextView textView, String fontName){
 textView.setTypeface(Typeface.createFromAsset(textView.getContext().getAssets(), "fonts/" + fontName));
}

In XML:
<TextView
app:font="@{`Source-Sans-Pro-Regular.ttf`}"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>

Previously, this used to take endless lines of repetitive Java code (one for each TextView!). The missing custom typeface support in TextView has been a grievance held against the Android platform for years.  There's even an inventive library to address it[2]. Data binding makes all of that obselete.  If you can't tell, I'm in love!!  It's terse, powerful, and one of the biggest leaps forward I've seen for Android productivity.

As usual, you need to put your font file in assets/fonts/, and make sure to include the data binding framework.  And if you're doing this to many TextViews, just get a little more fancy and cache the Typeface instead of creating it every time (thanks for the reminder +Ian Lake!)

[1] https://developer.android.com/tools/data-binding/guide.html
[2] Calligraphy: https://github.com/chrisjenx/Calligraphy
Photo

Post has shared content
reasons to stop using ENUM in your Android Code
100 days of Google Dev, Episode 86/100

So what’s the deal with using ENUMs on Android? Some people say it’s bad, other people say it’s not a problem. What gives, and what are the reasons?

To clear up some confusion, Colt McAnlis takes a look at the effect that enums have on your Android code size, memory footprint, and runtime performance.

#GoogleDev100

https://goo.gl/HPKBUw

Post has attachment
The Indian Express: Don’t add mobile number on your Facebook profile. http://google.com/newsstand/s/CBIwiuC1pyA

Post has attachment
A mind-opening blogpost for not-so-fast worker like me

Post has attachment

Post has attachment
Android M ~ New way to handle permission
Wait while more posts are being loaded