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
08-01 12:37:10.283 5370-5370/io.github.golok56.travel E/AndroidRuntime: FATAL EXCEPTION: main | |
java.lang.StackOverflowError | |
at android.widget.ImageView.jumpDrawablesToCurrentState(ImageView.java:176) | |
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5147) | |
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5147) | |
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5147) | |
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5147) | |
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 Presenter { | |
Presenter(IView view, Interactor i){ | |
// Basic Constructor | |
} | |
} | |
class Interactor { | |
Interactor(Context ctx){ | |
// Basic Constructor | |
} |
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
Error:(13, 10) error: io.github.golok56.androidresearch.presenter.IPresenter cannot be provided without an @Provides- or @Produces-annotated method. | |
io.github.golok56.androidresearch.presenter.IPresenter is injected at | |
io.github.golok56.androidresearch.view.MainActivity.mPresenter | |
io.github.golok56.androidresearch.view.MainActivity is injected at | |
io.github.golok56.androidresearch.view.MainComponent.inject(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
class Presenter implements IPresenter{ | |
@Inject | |
IView view; | |
@Inject | |
Presenter(); | |
} |
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 UserInfoFragment extends Fragment { | |
@Override | |
public void onCreate(@Nullable Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
mViewModel = ViewModelProviders.of(getActivity()).get(UserInfoViewModel.class); | |
mTvUserName.setText(mViewModel.getUserName()); | |
mTvWallet.setText(Formatter.formatCurrency(mViewModel.getWallet())); |
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
12-02 19:40:58.804 28475-28475/? E/AndroidRuntime: FATAL EXCEPTION: main | |
Process: kost.io.github.golok56.manajemenuang, PID: 28475 | |
java.lang.RuntimeException: Cannot create an instance of class io.github.golok56.viewmodels.UserInfoViewModel | |
at android.arch.lifecycle.ViewModelProviders$DefaultFactory.create(ViewModelProviders.java:156) | |
at android.arch.lifecycle.ViewModelProvider.get(ViewModelProvider.java:130) | |
at android.arch.lifecycle.ViewModelProvider.get(ViewModelProvider.java:98) | |
at io.github.golok56.views.fragment.UserInfoFragment.onCreate(UserInfoFragment.java:50) | |
at android.support.v4.app.Fragment.performCreate(Fragment.java:2339) | |
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 PreferenceManager { | |
private static final String PREFERENCES_NAMES = "Prefs"; | |
private static final String NAME = "nameKey"; | |
private static final String WALLET = "walletKey"; | |
private SharedPreferences mPref; | |
public PreferenceManager(Context ctx) { | |
mPref = ctx.getSharedPreferences(PREFERENCES_NAMES, Context.MODE_PRIVATE); | |
} |
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
const app = require('../app'); | |
const request = require('supertest')(app); | |
const HEADER = { | |
Token: 'foo', | |
}; | |
const DUMMY = { | |
id: 2, | |
name: 'Coba' |
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
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:fillViewport="true" | |
android:overScrollMode="never"> | |
<android.support.constraint.ConstraintLayout | |
android:layout_width="match_parent" |
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
<android.support.v7.widget.RecyclerView | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="@dimen/smaller_margin" | |
android:orientation="horizontal" | |
app:layoutManager="@string/linearLayoutManager" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@id/fifthCard" /> |
OlderNewer