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
<?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
<?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
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
#!/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
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
#!/usr/bin/python | |
from os import listdir | |
from os.path import isfile, join | |
import os | |
import shutil | |
from PIL import Image | |
import string | |
xxhdpi = './drawable-xxhdpi/' |
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
android:value="5089000" /> | |
<!-- about a google map --> | |
<uses-library android:name="com.google.android.maps" /> | |
<meta-data | |
android:name="com.google.android.maps.v2.API_KEY" | |
android:value="AIzaSyB4CUWyxfR2p2sf59C4opnpRr5zHb0JLZk" /> |
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
// code | |
// Do not call this function from the main thread. Otherwise, | |
// an IllegalStateException will be thrown. | |
public void getIdThread() { | |
AdvertisingIdClient.Info adInfo = null; | |
try { | |
adInfo = AdvertisingIdClient.getAdvertisingIdInfo(this); | |
} | |
catch (IOException e) { |
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"?> | |
<rotate xmlns:android="http://schemas.android.com/apk/res/android" | |
android:pivotX="50%" android:pivotY="50%" | |
android:fromDegrees="0" | |
android:toDegrees="360"> | |
<animation-list android:oneshot="false"> | |
<item android:duration="5"> | |
<rotate android:drawable="@drawable/ic_progress_loading" |