diff options
author | Chiao Cheng <chiaocheng@google.com> | 2013-07-19 19:10:55 -0700 |
---|---|---|
committer | Chiao Cheng <chiaocheng@google.com> | 2013-07-22 11:39:09 -0700 |
commit | 550f92b42a5387875d994a9b72050eaec2018649 (patch) | |
tree | 0427af488aae9503077d65d7524ab6a73b389f65 /InCallUI/src/com/android/incallui/InCallActivity.java | |
parent | 66b2c28f44344d850202eab63e9f058c0da115f0 (diff) |
Adding call card and buttons to UI.
- Created a fragment for call card and a fragment for UI.
- Adding corresponding button images.
Change-Id: I5facacd3a4346ab9d9ec2a67a2742dc27dbf5583
Diffstat (limited to 'InCallUI/src/com/android/incallui/InCallActivity.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallActivity.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallActivity.java b/InCallUI/src/com/android/incallui/InCallActivity.java index 67fe1ca70..380d48764 100644 --- a/InCallUI/src/com/android/incallui/InCallActivity.java +++ b/InCallUI/src/com/android/incallui/InCallActivity.java @@ -61,8 +61,15 @@ public class InCallActivity extends Activity { @Override protected void onResume() { logD("onResume()..."); + + // TODO(klp): create once and reset when needed. final AnswerFragment answerFragment = new AnswerFragment(); + final CallCardFragment callCardFragment = new CallCardFragment(); + final CallButtonFragment callButtonFragment = new CallButtonFragment(); final FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction(); + fragmentTransaction.add(R.id.in_call_and_button_container, callCardFragment); + fragmentTransaction.add(R.id.in_call_and_button_container, callButtonFragment); + fragmentTransaction.add(R.id.main, answerFragment); fragmentTransaction.commit(); super.onResume(); |