Skip to content

andrea-rosa/kickstarter-android

Repository files navigation

kickstarter-android

An Android fully materialized kickstarter project including the following libraries:

Usage

Clone the repo

git clone https://github.com/andrea-rosa/kickstarter-android.git

Then open it in Android Studio and wait for gradle build

Activities

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

Fragments

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

Notes

The app make calls to JsonPlaceholder for mocking data

About

An Android kickstarter project

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages