Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
import android.content.Context | |
import android.support.v4.app.Fragment | |
import android.support.v4.app.FragmentManager | |
import android.support.v4.app.FragmentPagerAdapter | |
/** | |
* Created by taishi-y on 2017/12/20 | |
*/ | |
class ${NAME}(fm: FragmentManager, val context: Context) : FragmentPagerAdapter(fm) { |
This file contains 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
import android.content.Context | |
import android.support.v7.widget.CardView | |
import android.support.v7.widget.LinearLayoutManager | |
import android.support.v7.widget.RecyclerView | |
import android.view.* | |
import android.widget.TextView | |
/** |
This file contains 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
# Built application files | |
*.apk | |
*.ap_ | |
# Files for the ART/Dalvik VM | |
*.dex | |
# Java class files | |
*.class |
This file contains 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
class FeedFragment : Fragment() { | |
var realmSiteInfo: RealmSiteInfo? = null | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
val bundle = this.arguments | |
realmSiteInfo = bundle.getSerializable(ARG_SITE) as RealmSiteInfo | |
} |
This file contains 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
language: android | |
jdk: oraclejdk8 | |
sudo: false | |
env: | |
global: | |
- GRADLE_OPTS="-Xmx512m -XX:MaxPermSize=512m" | |
- ADB_INSTALL_TIMEOUT=10 | |
- secure: "<SECRET-KEY1>" | |
- secure: "<SECRET-KEY2>" | |
install: |
This file contains 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
object CustomGsonConverter { | |
var token = object : TypeToken<RealmList<RealmInt>>() {}.getType() | |
var gson = GsonBuilder() | |
.setExclusionStrategies(object : ExclusionStrategy { | |
override fun shouldSkipField(f: FieldAttributes): Boolean { | |
return f.declaringClass == RealmObject::class.java | |
} | |
override fun shouldSkipClass(clazz: Class<*>): Boolean { | |
return false |
This file contains 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
override fun setUserVisibleHint(isVisibleToUser: Boolean) { | |
super.setUserVisibleHint(isVisibleToUser) | |
if (isVisibleToUser) { | |
someFunction() | |
} | |
} |
This file contains 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
fun setStatusBarColor(color: Int) { | |
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { | |
activity.window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS) | |
activity.window.statusBarColor = color | |
} | |
} |
This file contains 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 MainActivity extends Activity { | |
ImageView maru_button,batsu_button,qbutton,rbutton; | |
private SoundPool mSoundPool; | |
private int maru_SoundId,batsu_SoundId,q_SoundId,r_SoundId; | |
InterstitialAd mInterstitialAd; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { |
NewerOlder