Always “aidl” is missing on Android Studio 1.2.1.1



aidl is missing android studio

http://stackoverflow.com/questions/30506406/aidl-is-missing-android-studio



ViewPager PagerAdapter not updating the View



Update ViewPager dynamically?

http://stackoverflow.com/questions/10849552/update-viewpager-dynamically




<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/default_background"
android:focusable="true"
android:focusableInTouchMode=
"true"
>



부모 Layout 속성에 focusable, focusableInTouchMode 추가

android:focusable="true"
android:focusableInTouchMode="true"



Layout 작업 중에  아래의 그림처럼 Rendering Problems이 생기는 경우 해결법





Path.isConvex를 지원하지 않는다는 오류가 뜨는데 이 경우 EditText에 적용한 shape style의 corners 태그 때문이다.

안드로이드 스튜디오의 버그처럼 보이는데 다음과 같이 수정하면 깨끗하게 해결된다.



문제의 코드

<corners
android:bottomRightRadius="2dp"
android:bottomLeftRadius="2dp"
android:topLeftRadius="2dp"
android:topRightRadius="2dp"/>


수정

<corners android:radius="2dp"/>


참조 : https://code.google.com/p/android/issues/detail?id=72999




mTxt.setPaintFlags(mTxt.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);


Android Studio에서 컴파일 했을 때 Gradle 오류로 

Android java.exe finished with non-zero exit value 1

메시지가 보인다면 drawable resources가 라이브러리나 모듈에서의 종속관계에서 충돌이 원인이다.
해결 방법은 Gradle 메시지에서 충될되는 drawable resource를 찾아서 지우면 해결 됨.

참조


How to dismiss the dialog with click on outside of the dialog?

http://stackoverflow.com/questions/8384067/how-to-dismiss-the-dialog-with-click-on-outside-of-the-dialog


액티비티 전체를 덮는 네비게이션 드로어 만들기

http://androidhuman.tistory.com/560







<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">#FCC248</item>
<item name="colorPrimaryDark">#FFBB00</item>
<item name="colorAccent">#CC3D3D</item>

<!-- toolbar text 색깔 -->
<item name="android:textColorPrimary">@color/white</item>

<!-- 액티비티 윈도우 배경색 -->
<item name="android:windowBackground">@color/white</item>

<!-- 기본 텍스트 색깔 -->
<item name="android:textColor">@color/black</item>

<!-- 메뉴 화살표 색깔 -->
<item name="colorControlNormal">@color/white</item>
</style>

Android styles and themes - Tutorial

http://www.vogella.com/tutorials/AndroidStylesThemes/article.html


ActionBarDrawerToggle v7 arrow color

http://stackoverflow.com/questions/27861102/actionbardrawertoggle-v7-arrow-color


Styling  the Actionbar

https://developer.android.com/training/basics/actionbar/styling.html


Style Resource

http://developer.android.com/guide/topics/resources/style-resource.html


ActionBar text color

http://stackoverflow.com/questions/5861661/actionbar-text-color





보내는 Activity:

     Bitmap -> ByteArray 로 전환 후 Intent의 Extra로 넣어서 전달.

Bitmap bitmap = snapshot;

ByteArrayOutputStream stream = new ByteArrayOutputStream();

bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);

byte[] byteArray = stream.toByteArray();

Intent intent = new Intent(Activity.this, AnotherActivity.class);

intent.putExtra("image",byteArray);

      startActivity(intent);



받는 Activity:

     ByteArray -> Bitmap으로 전환.

byte[] arr = getIntent().getByteArrayExtra("image");

Bitmap bm = BitmapFactory.decodeByteArray(arr, 0, arr.length);



보낼때 :

     BitmapDrawable d = (BitmapDrawable)(ImageView)view.findViewById(R.id.imageView1)).getDrawable();

     Bitmap b = d.getBitmap();

     imgview.setImageBitmap(b);

     intent.putExtra("bm", (Bitmap)b);


받는 Activity :

        Bitmap bm = (Bitmap)in.getExtras().get("bm");

        imgview.setImageBitmap(bm);

        또는 

        Bitmap bm = (Bitmap)in.getParcelableExtra("bm");

        imgview.setImageBitmap(bm);  


주의

byteArray 사이즈는 40k까지만 전송 가능. 그 이상 크기의 배열을 전송할 경우에는

 !!! FAILED BINDER TRANSACTION !!! 

오류 뜸.


출저 : http://smile8916.tistory.com/72


개요

https://en.wikipedia.org/wiki/Processing_(programming_language)#Hello_World


프로세싱 예제

https://processing.org/examples/keyboard.html


네비게이션 드로어에 머터리얼 디자인 적용하기

http://androidhuman.tistory.com/559



모든 디바이스를 위한 머터리얼 디자인 - AppCompat 라이브러리

http://googledevkr.blogspot.kr/2014/10/appcompat-v21-material-design-for-pre.html



"Back button" using getSupportActionbar and appcompat v7 toolbar

http://stackoverflow.com/questions/27230827/back-button-using-getsupportactionbar-and-appcompat-v7-toolbar

@InjectView(R.id.toolbar)
Toolbar mToolbar;

private void init() {
setSupportActionBar(mToolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setHomeButtonEnabled(true);
getSupportActionBar().setDisplayShowHomeEnabled(true);
getSupportActionBar().setHomeAsUpIndicator(R.drawable.abc_ic_ab_back_mtrl_am_alpha);
}

public boolean onOptionsItemSelected(MenuItem item) {
if(item.getItemId() == android.R.id.home) {
debugMessage("press home button");
this.finish();
}
return super.onOptionsItemSelected(item);
}


Setup Toolbar di Appcopat7 v21

https://pratamawijaya.com/programming/setup-toolbar-di-appcompat-7-v21



안드로이드 스타일 > 컬러

https://www.google.com/design/spec/style/color.html#



How do I use DrawerLayout to display over the ActionBar/Toolbar and under the status bar?
http://stackoverflow.com/questions/26440879/how-do-i-use-drawerlayout-to-display-over-the-actionbar-toolbar-and-under-the-st

http://stackoverflow.com/questions/26913770/make-navigation-drawer-draw-behind-status-bar



Android Libraries and Resources

http://alamkanak.github.io/android-libraries-and-resources/



List of Android UI/UX Libraries

https://github.com/wasabeef/awesome-android-ui



+ Recent posts