산업공학과 마지막 학기 학생으로 프로그래밍엔 완전.. 초보입니다. 졸업논문 때문에 간단한 어플을 만들고 있습니다.

논문의 중반부까지는 해결이 되었는데 마지막으로 구혀해야하는 안드로이드 어플이 애를 먹여..

졸업을 할 수 없는 상황에 처했습니다 ㅜ.ㅜ

 

카페 활동도 안하다가.. 이렇게 급한 질문이 있어서 글을 처음으로 남기는게.. 죄송스럽습니다 . ㅜ.ㅜ

다음달부터 한가해지면 카페 활동 열심히 할거에요..ㅠ

 

개발자님들 답변 부탁드립니다...

 

아래 그림과 같이 어플을 만들고자 합니다..

여기서 질문은

1. 현재 탭하나에 버튼을 한개 밖에 만들지 못했는데요.. 하나의 탭당 하나의 버튼을 더 추가하는 방법과.

2. 그 버튼의 이름을 제가 만들어놓은 자바 클래스에서 불러와서 자동으로 만들어지게 하는 방법

3. 그 버튼들 중 하나를 클릭했을 때 그래프가 그려지게 하는 방법. 이 그래프의 수치역시 만들어놓은 클래스에서 불어와서 하고싶습니다.

ee.jpg 

 

 

 

현재 xml로 만든 레이아웃 소스는..

 

<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/tabhost"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
        <TabWidget
            android:id="@android:id/tabs"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" />
        <FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent">
          
           <Button
          android:id="@+id/textview1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="콩나물 국밥"/>
        
            <Button
          android:id="@+id/textview2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="돈가스" />
       
        
           <Button
          android:id="@+id/textview3"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="뚝불고기" />

         
        </FrameLayout>
    </LinearLayout>


</TabHost>

 

이것인데요.. 자바소스는.. 전혀 손을 대지 못했습니다.

자바를.. 거의 못하는 초보자입니다 ㅜ.ㅜ

정말 작은 답변까지도 제겐 큰 도움이됩니다...

 

약간의 팁이라도.. 가능하면 많이.. 도와주세요 ㅜ.ㅜ

 

 

그리고 혹시!

아래 그림과 같이.. 만들어서 보내주실 수 있으신분... 제가 작게라도 개발비(?), 수고비(?)를 드릴 수 있습니다..

생각 있으신분... 답글 남겨주세요 ㅜ.ㅜ 정말 너무 급해서요ㅜ.ㅜ

 

많으 댓글 기다리겠습니다..