2015-02-08

Android tips

int lHeigh = LinearLayout.LayoutParams.MATCH_PARENT;
int lWidth = LinearLayout.LayoutParams.WRAP_CONTENT;

  Log.d(TAG, "iv.getDrawable().getBounds().width(): " + iv.getDrawable().getBounds().width());
    Log.d(TAG, "iv.getDrawable().getIntrinsicWidth(): " + iv.getDrawable().getIntrinsicWidth());
    Log.d(TAG, "iv.getMeasuredWidth(): " + iv.getMeasuredWidth());
    Log.d(TAG, "iv.getWidth(): " + iv.getWidth());

Android framework src:
http://grepcode.com/file/repo1.maven.org/maven2/org.robolectric/android-all/4.4_r1-robolectric-1/android/telephony/TelephonyManager.java#TelephonyManager.getSubscriberInfo%28%29

Syslog dump
*#9900#

No comments: