This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.day1song.app.View; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.os.Handler; | |
import android.os.Message; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.widget.ImageView; | |
import android.widget.RelativeLayout; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NDK=/Users/moltak/Documents/jar/android-ndk-r10 | |
PLATFORM=$NDK/platforms/android-9/arch-arm/ | |
PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64 | |
function build_one | |
{ | |
./configure --target-os=linux \ | |
--prefix=$PREFIX \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_VARS) | |
LOCAL_MODULE := basicplayer | |
LOCAL_CFLAGS := -DANDROID_NDK | |
LOCAL_SRC_FILES := BasicPlayer.c Interface.c | |
LOCAL_C_INCLUDES := $(LOCAL_PATH)/ffmpeg/ \ | |
$(LOCAL_PATH)/ffmpeg/libavcodec \ | |
$(LOCAL_PATH)/ffmpeg/libavformat \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:state_selected="true"> | |
<bitmap android:src="@drawable/ic_booklet_album_selected" android:gravity="center"/> | |
</item> | |
<item android:state_checked="true" > | |
<bitmap android:src="@drawable/ic_booklet_album_selected" android:gravity="center"/> | |
</item> | |
<item> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<level-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item | |
android:drawable="@drawable/ic_mycollection_artist_normal" | |
android:minLevel="0" | |
android:maxLevel="0"/> | |
<item | |
android:drawable="@drawable/ic_mycollection_artist_selected" | |
android:minLevel="1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adapter.registerDataSetObserver(new DataSetObserver() { | |
@Override | |
public void onChanged() { | |
super.onChanged(); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Thread(new Runnable() { | |
@Override | |
public void run() { | |
while(true) { | |
if(toShow != null && toShow.size() > 0) { | |
// 잠옹코드 | |
break; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomBaseAdapter extends BaseAdapter { | |
private LayoutInflater inflater = null; | |
private ArrayList<String> array = null; | |
public CustomBaseAdapter(ArrayList<String> array) { | |
this.array = array; | |
} | |
// ***** 왕중요 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
directory = "./metadatas" | |
if not os.path.exists(directory): | |
os.mkdir(directory) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
editor = subl -n -w | |
[merge] | |
tool = p4merge | |
[mergetool "p4merge"] | |
cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge "$PWD/$BASE" "$PWD/$REMOTE" "$PWD/$LOCAL" "$PWD/$MERGED" | |
keepTemporaries = false | |
trustExitCode = false | |
keepBackup = false |