package hydroid7.foaas_android;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.LinearLayout;

import api.JFOAAS.*;

public class MainActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_main);
        generateFuckList(((LinearLayout) findViewById(R.id.linearLayout)));
    }


    private void generateFuckList (LinearLayout layout) {
        for(Fuck fuck : Fuck.values()){
            layout.addView(new FuckButton(this, fuck, this));
        }
    }
}
