Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

AlanDelip/ARMs

Repository files navigation

ARMs For Android

ARMs for Android is a Android App replanting the website of a CitibankCup work. Welcome to STAR/FOLLOW/FORK!

In this program, we focus on the structure and module design of the application instead of the algo and content of it.

Preview

Structures & Design

class ExampleActivity extends Activity { 
        @BindView(R.id.title) TextView title; 
        @BindView(R.id.subtitle) TextView subtitle;
        @BindView(R.id.footer) TextView footer; 

        @Override 
        public void onCreate(Bundle savedInstanceState) { 
                super.onCreate(savedInstanceState);
                setContentView(R.layout.simple_activity);
                ButterKnife.bind(this); 
                // TODO Use fields... 
        }

        @Onclick(R.id.btn)
        void click(View view){
                //TODO click event...                
        }
}
public interface NewsService {
        @GET("news")
        Observable<NewsResponse> getNewsList(@Query("key_word") String keyword);
}
public void getPrediction(Subscriber<PredictResponse> subscriber, String lowerGamma, List<String> optionList) {
        PredictService predictService = retrofit.create(PredictService.class);

        predictService.getPrediction(lowerGamma, optionList)
                .subscribeOn(Schedulers.io())
                .unsubscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(subscriber);
    }

Plugins

Supporters

  • Business college, NJU, China
  • Software engineering institute, NJU, China

Developer

License

Copyright 2016 Alan Delip

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

About

A 7-Day Android App for Citibank Competition

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages