Back to project page Antares.
The source code is released under:
Apache License
If you think the Android project Antares listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.takac_j30.antares; // w w w .j ava2 s .c om import java.util.ArrayList; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.ListView; import android.widget.Toast; public class TweetSettings extends Fragment { ListView rule_list; ArrayList<RuleData> ruleList; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.tweet_settings, null); } @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); ruleList = new ArrayList<RuleData>(); Button add_rule =(Button) getView().findViewById(R.id.AddRule); rule_list = (ListView) getView().findViewById(R.id.RuleList); add_rule.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Toast.makeText(getActivity(), "aieuodawdada", Toast.LENGTH_SHORT).show(); ruleList.add(new RuleData("01:00", "aiueoraower\naiwrfawida\nawidjaw92942\n2949q02ikqa")); rule_list.setAdapter(new AutoTweetAdapter(getActivity().getApplicationContext(), ruleList)); } }); } }