Profile cover photo
Profile photo
Manaday Mavani
1,257 followers -
#appsdev #webdev #photography #tech
#appsdev #webdev #photography #tech

1,257 followers
About
Manaday's posts

Post has shared content
Reclaim GBs of space by deleting node_modules you don't need 🔥

find . -name node_modules -type d -exec rm -rf {} +
Photo

Post has shared content
Just open sourced a handy little #materialdesign color palette tool for Mac. Enjoy, designers and developers!

Download: github.com/romannurik/MaterialColorsApp/releases
Source: github.com/romannurik/MaterialColorsApp
Photo

Post has shared content
This would prove great aid for Andriod devs!
Vysor lets you view and control your Android on your computer: bit.ly/1Qwiljw - hot damn. awesome! /ht +Paul Kinlan.

Post has shared content
#smallerAPK, Part 1: Anatomy of an APK

Application size is one of the first things that users look at when deciding whether they want to install, update or keep an app on their devices. In this new series, Wojtek Kalicinski explores tricks that can help make your APK smaller.

https://goo.gl/9BM9sY

Post has shared content
The +Google Design icons team just rolled out Material Design Icons 2.1 with 96 new icons!

http://g.co/design/icons

^ to get them or grab them from our official npm package: https://www.npmjs.com/package/material-design-icons

Thanks to the 500,000+ folks that downloaded the icons this year.
Photo

Post has attachment
Need design suggestion

What would be best approach to provide selection/filtration from ActionBar? My current implementation in hybrid app is something like in the attached screenshot. Can anyone advice how can I achieve the same design in native android app, if it's really advisable?
Photo

Post has attachment
Hello devs, I need ur help to fix an issue. I've spent almost 8 hours to fix the same with no luck.

Background

I'm getting data from user to store in DB from a Child activity. And when user hits the save button in actionbar I close that activity to take the user back to Home activity where user's all stored items displayed in a list.

Issue

The newly added item in child activity not getting added in Home activity's Listview even though I've added adapter.notifyDataSetChanged(); in onResume event. I tried the same in onRestart event as well.

The item is not displayed in listview until onResume fires 2nd time (by rotating device to landscape orientation). You can find the said behaviour in the video as well where new item only gets displayed when I rotate my phone.

Code

1. MainActivity - Here I list out all stored items in a listview.

Source: https://github.com/ManadayM/AndroidListView/blob/master/app/src/main/java/com/example/android/myformula/MainActivity.java

2. Child Activity - User adds new item here. That should be displayed on HomeActivity when he/she returns on Home.

Source: https://github.com/ManadayM/AndroidListView/blob/master/app/src/main/java/com/example/android/myformula/AddFormulaActivity.java

Post has attachment

Post has shared content
Today's #AndroidDev #Protip on text appearance and theme attributes is by +Katherine Kuan, the newest member of Android Developer Relations (welcome, Katherine!)

When choosing font sizes for your app, using too many different sizes can be visually distracting and confuse the user as to what information is important. To be consistent with other apps on the platform, you can use the standard set of type sizes provided by the framework: small, medium, or large.

To use a standard text size (and color), instead of setting the TextView's android:textSize directly, set the android:textAppearance to a predefined theme attribute [1] such as android:textAppearanceLarge:

<TextView
    …
    android:textAppearance="?android:textAppearanceLarge" />

As of API 19 (KitKat):
?android:textAppearanceSmall is currently 14sp
?android:textAppearanceMedium is currently 18sp
?android:textAppearanceLarge is currently 22sp

These default sizes and concepts are also documented in the "Typographic scale" section of the Android Design guide [2].

Note that setting the text appearance will also affect the default values for text color attributes such as android:textColor and android:textColorHint. You can always override the default values by providing those attributes directly on the TextView element:

<TextView
    ...
    android:textAppearance="?android:textAppearanceLarge"
    android:textColor="@color/my_own_color"
    android:textColorLink="@color/my_own_link_color"/>

Also note that you don't necessarily have to use the system default appearances. You can create your own set of type sizes and colors that fits your desired visual design. For information on creating your own theme attributes, see the #Protip we posted on the topic back in October [3].

Lastly, if you want to check out the definition of these standard text appearances in the framework code, look for "textAppearanceLarge" in the Theme.Holo (or Theme.Holo.Light) definition in themes.xml [4]. The attribute values will be style resources (such as TextAppearance.Holo.Large), for which you can find definitions  in styles.xml [5]. In the example above, note that TextAppearance.Holo.Large inherits from TextAppearance.Large, which in turn inherits from the standard TextAppearance style.

[1] http://developer.android.com/reference/android/R.attr.html
[2] http://developer.android.com/design/style/typography.html 
[3] https://plus.google.com/+AndroidDevelopers/posts/3rL9cTLyuQy
[4] https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/res/values/themes.xml
[5] https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/res/values/styles.xml

Post has attachment
Manaday Mavani commented on a post on Blogger.
You nailed it +Google Photos ! :)
Wait while more posts are being loaded