An Android fully materialized kickstarter project including the following libraries:
Clone the repo
git clone https://github.com/andrea-rosa/kickstarter-android.git
Then open it in Android Studio and wait for gradle build
Define your layout (e.g. activity_main
)
Create a class and extend BaseActivity
Override onCreate
like this
public class MainActivity extends BaseActivity {
...
@Override
protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_main);
super.onCreate(savedInstanceState);
}
...
}
BasicActivity provide the rest interface and the butterknife binder
Define your layout (e.g. fragment_home
)
Create a class and extend BaseFragment
Override onCreateView
and initialize layout
before inflate the view
public class HomeFragment extends BaseFragment {
...
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
this.layout = R.layout.fragment_home;
return super.onCreateView(inflater, container, savedInstanceState);
}
...
}
Then use the TransactionManager builder
TransactionManager
.with(getSupportFragmentManager())
.add(new HomeFragment())
.tag(HomeFragment.TAG)
.animated(false)
.into(R.id.flContent);
BasicFragment provide the rest interface and the butterknife binder
The app make calls to JsonPlaceholder for mocking data