본문 바로가기

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

[안드로이드] scrollbar 없애기 android:scrollbars="none" 더보기
[안드로이드] setBackgroundColor(Color.rgb(R, G, B)); android:background="#191a1c" xml 표기법으론 위와 같이 쉽게 표기 할수 있지만, 안드로이드 java 코드에서는 아래와 같이 RGB 로 변환하여 사용해줘야 한다. 포토샵 같은 프로그램으로 #191a1c 의 값을 RGB 로 변환하여 아래와 같이 코딩할수 있습니다. setBackgroundColor(Color.rgb(25,26,28)); 더보기
[안드로이드] RelativeLayout 관한 설명 http://snowbora.com/441 더보기
[안드로이드] ExpandableListView - 리스트 안에 리스트 Activity.class package kr.co.test2; import java.util.ArrayList; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseExpandableListAdapter; import android.widget.ExpandableListView; import android.widget.TextView; public.. 더보기
[안드로이드] ExpandableListView listview안에 listview을 listview 안에 listview을 ExpandableListView 라 한다. 난 custom listview 에 listview을 넣는다고 생각을 했지만, android api 에서 간단하게 제공해주는 ExpandableListview가 있다... 더보기
[안드로이드] Mapview에 관련한 자료 http://moozi.tistory.com/56 55, 56, 57 맵뷰를 깔끔히 정리해 놓은 블로그를 발견! 더보기
[안드로이드] tabhost 에 관한 설명 자세한 설명 http://blog.naver.com/man8408?Redirect=Log&logNo=110103530415 http://jc01rho.tistory.com/36 더보기
[안드로이드] custom dialog android:style/Theme.Dialog 졸다가 클릭 클릭하면서 몬가 대단한걸 발견하고 기분이 좋아졋답니다 ㅎㅎ 구글에서 android custom dialog button 검색으로 찾다가 Manifest에 빨간줄을 찾았습니다. 마치 custom dialog 에 버튼과 텍스트를 넣은거 같은데요.. layout intent 로 똑같이 사용을 하고 Manifest에서 theme만 설정하면 @android:style/Theme.Dialog 끝!! 더보기
[안드로이드] TabHost 기본포멧 시작을 TabHostBottom.class TabHostBottom.class package com.tabhostbottom; import android.app.Activity; import android.app.TabActivity; import android.content.Intent; import android.os.Bundle; import android.widget.TabHost; public class TabHostBottom extends TabActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tab_main).. 더보기
[안드로이드] WebViewClient(shouldOverrideUrlLoading) 로 인해 카카오톡(다른어플동일)이 안될때 public void loadTime(String url){ Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); intent.addCategory(Intent.CATEGORY_BROWSABLE); intent.putExtra(Browser.EXTRA_APPLICATION_ID, getPackageName()); startActivity(intent); } // webview 을 제어 할수 있는 shouldOverrideUrlLoading 은 카카오톡같은 어플을 제어할때 링크에 에러메세지가 뜨게 된다. 그래서 인텐트를 이용하여 값을 넘겨주면 된다 public boolean shouldOverrideUrlLoading(WebView view, S.. 더보기