posted by 네코냥이 2014. 11. 18. 11:18

http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout


.

A RemoteViews object (and, consequently, an App Widget) can support the following layout classes:

And the following widget classes:

Descendants of these classes are not supported.

RemoteViews also supports ViewStub, which is an invisible, zero-sized View you can use to lazily inflate layout resources at runtime.

.



posted by 네코냥이 2014. 11. 3. 18:19


How to concatenate strings with padding in sqlite - Stack Overflow.pdf



-- the statement below is almost the same as
-- select lpad(mycolumn,'0',10) from mytable

select substr('0000000000' || mycolumn, -10, 10) from mytable

-- the statement below is almost the same as
-- select rpad(mycolumn,'0',10) from mytable

select substr(mycolumn || '0000000000', 1, 10) from mytable



+ 대신 || 를 사용해라.

posted by 네코냥이 2014. 10. 23. 14:02




// Get a handler that can be used to post to the main thread
Handler mainHandler = new Handler(context.getMainLooper());

Runnable myRunnable = new Runnable(...); // This is your code
mainHandler.post(myRunnable);


'JAVA > Android' 카테고리의 다른 글

App Widgets 에서 사용할 수 있는 레이아웃  (0) 2014.11.18
[SQLite] concat, append String text  (0) 2014.11.03
[Android] Dialog 배경 클릭시 종료  (0) 2014.10.17
Activity 사이즈 동적 조절.  (0) 2014.10.06
SQLite 내장함수  (0) 2014.09.16
posted by 네코냥이 2014. 10. 17. 09:25


Dialog Outside Background Click 종료.pdf


'JAVA > Android' 카테고리의 다른 글

[SQLite] concat, append String text  (0) 2014.11.03
[Android.] UI Thread Handler Main  (0) 2014.10.23
Activity 사이즈 동적 조절.  (0) 2014.10.06
SQLite 내장함수  (0) 2014.09.16
Sqlite 뷰어  (863) 2014.08.28
posted by 네코냥이 2014. 10. 6. 14:25

getWindow().setFlags(LayoutParams.FLAG_NOT_TOUCH_MODAL,

           LayoutParams.FLAG_NOT_TOUCH_MODAL);

// 생성시 위의 값도 해주면, 액티비티 뒤에있는 뷰도 클릭이 가능



// 이 함수는 액티비티 크기를 바꿔준다.

// dynamically 사용도 가능.

private void ptc_SetScreenSize() {

View viewRoot = getWindow().getDecorView().getRootView();

WindowManager.LayoutParams params = (LayoutParams) viewRoot.getLayoutParams();

if(params==null)

{

log.i("viewRoot.getLayoutParams is NULL");

return;

}

params.height = 200 + 200 * new Random().nextInt(100) / 100;

params.gravity = Gravity.TOP;

((WindowManager)getSystemService(Context.WINDOW_SERVICE)).updateViewLayout(viewRoot,params);

}





'JAVA > Android' 카테고리의 다른 글

[Android.] UI Thread Handler Main  (0) 2014.10.23
[Android] Dialog 배경 클릭시 종료  (0) 2014.10.17
SQLite 내장함수  (0) 2014.09.16
Sqlite 뷰어  (863) 2014.08.28
[안드로이드] 기본 Dialog  (0) 2014.08.28
posted by 네코냥이 2014. 9. 16. 09:28

SQLite에서 사용 가능한 SQL명령어 _ 네이버 블로그.pdf


choco chip cookie __ SQLite3 내장함수.pdf



posted by 네코냥이 2014. 8. 28. 15:04


SQLiteSpy.exe


http://www.yunqa.de/delphi/doku.php/products/sqlitespy/index

posted by 네코냥이 2014. 8. 28. 12:07


Powerful Programming __ Dialog _ ListDialog _ Progress _ Single Choice _ Multiple Choice _ Custom Dialog 활용.pdf


posted by 네코냥이 2014. 8. 18. 09:37

출처: 스택오버플로우


android - Set two buttons to same width regardless of screen size_ - Stack Overflow.pdf








출처: http://aroundck.tistory.com/2134


FLAG_CANCEL_CURRENT : 이전에 생성한 PendingIntent 는 취소하고 새롭게 만든다.


FLAG_NO_CREATE : 생성된 PendingIntent 를 반환한다. 재사용 가능하다.


FLAG_ONE_SHOT : 이 flag 로 생성한 PendingIntent 는 일회용이다.


FLAG_UPDATE_CURRENT : 이미 생성된 PendingIntent 가 존재하면 해당 Intent 의 내용을 변경한다.

'JAVA > Android' 카테고리의 다른 글

Sqlite 뷰어  (863) 2014.08.28
[안드로이드] 기본 Dialog  (0) 2014.08.28
SQLite 날짜관련 함수. 그리고 TOP  (0) 2014.08.07
[안드로이드] BOOT_COMPLETED 사용법  (0) 2014.07.30
[Android] 로밍 여부 확인하기  (0) 2014.07.29
posted by 네코냥이 2014. 8. 7. 12:00


날짜함수.pdf



SQL문 맨 아래에 다음 구문을 추가하면,

LIMIT 10


TOP (10) 처럼 작동