본문 바로가기

개발도구/aOS - 안드로이드 개발

버튼 정렬 버튼 정렬 은 LinearLayout 에서 정렬되지 않는다. 물론 마진을 주어 맨 오른쪽으로 px 을 주면 되겠지만, 아래와 같이 gravity 을 이용한 정렬은 안된다. (혹시 되면, 리플을 달아주세요 :) ) 더보기
LinearLayout RelativeLayout 다른 정렬방법 layout_alignParentRight - RelativeLayout에서 사용되는 속성입니다. LinearLayout에서는 layout_gravity를 사용해야 합니다. 더보기
이미지 와 이미지 사이 간격 없애기 버튼, 이미지 등등 모두 양테두리에 투명 간격이 존재한다. 그 간격을 없애주기 위해 마진 0으로 해보아도 되질 않는다. 정답은 : 마진을 -(마이너스) 값을 줄경우 벌어진 간격을 줄일수 있다.! 더보기
Layout 고급 http://schemas.android.com/apk/res/android"    android:orientation="vertical"    android:layout_width="fill_parent"    android:layout_height="fill_parent"    android:id="@+id/framelayout"    >          style="?android:attr/progressBarStyleLarge"        android:layout_width="wrap_content"        android:layout_height="wrap_content"         android:layout_gravity="center_vertical|cente.. 더보기
AbsoulteLayout http://schemas.android.com/apk/res/android"    android:orientation="vertical"    android:layout_width="fill_parent"    android:layout_height="fill_parent"    >    android:layout_width="fill_parent"     android:layout_height="wrap_content"    android:id="@+id/btn"    android:text="PushButton"    />        android:layout_width="wrap_content"     android:layout_height="wrap_content".. 더보기
TableLayout http://schemas.android.com/apk/res/android"    android:orientation="vertical"    android:layout_width="fill_parent"    android:layout_height="fill_parent"    >      android:text="수학"   android:padding="10px"  />     android:text="영어"   android:padding="10px"  />     android:text="국어"   android:padding="10px"  />        android:text="88"   android:padding="10px"  />     .. 더보기
RelativeLayout RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="fill_parent"    android:layout_height="wrap_content"    > android:id="@+id/chulsoo"    android:layout_width="wrap_content"     android:layout_height="wrap_content"    android:layout_marginRight="20px"    android:textSize="15pt"     android:text="철수"    />     android:id="@+id/youngh.. 더보기
Android intent get 값 받아 오기 if (intent != null) { Bundle b = intent.getExtras(); if (b == null) { } else { Object pFeed = b.get("feed"); position = b.getInt("position"); 더보기
Android Log 문자, 숫자 찍어보기! Log.v("position", Integer.toString(currentNum)); // 숫자를 찍을때 Log.v("type",getType()); // 문자를 찍을때 더보기