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 TabHostActivity extends AppCompatActivity { | |
TabHost tabHost; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.tab_host_activity); | |
TabHost host = (TabHost) findViewById(R.id.tabHost); | |
host.setup(); |
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 PostActivity extends AppCompatActivity{ | |
private Button buttonPrefecture; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.post_activity); |
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
http://www.reactnativeexpress.com/ | |
https://facebook.github.io/react-native/docs/getting-started.html |
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) { |
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
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
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
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
# 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
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 | |
/** |
OlderNewer