public class MainBanner extends Activity {

private ListView mInfo;

private static final String[] notice = new String[] {

"모두의 노력으로 앱몰이 개설되었습니다.", "추후사항은 점차 업데이트하겠습니다.", "이상입니다." };

private static final String[] information = new String[] { "쇼핑몰 기능 구현",

"음악기능 추가", "장바구니 기능 구현" };

MyMediaPlayer mp;

ListView mListView;

Spinner notice_type;

String[] typedatas;

String[] stArray;

NoticeBoardAdapter na;

StoreAdapter sa;

ArrayList nb;

Cursor rgCursorList;

Activity act = this;

Context ctx = this;

DBManger dbmgr;

Button membership_mypage_btn;

ListView tabview_tv1, tabview_tv2, tabview_tv3, tabview_tv4, tabview_tv5,

tabview_tv6, tabview_tv7, tabview_tv8;

TabHost mTabHost;


@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.main);


TextView topTitle = (TextView) findViewById(R.id.topTitle);

topTitle.setText(R.string.lucky_shopping_mall);


ImageButton top_arrow_left = (ImageButton) findViewById(R.id.top_arrow_left);

top_arrow_left.setOnClickListener(top_arrow_left_onClickListener);


// mp

mp = new MyMediaPlayer(act, ctx);

try {

mp.prepare();

} catch (IllegalStateException e) {

e.printStackTrace();

} catch (IOException e) {

e.printStackTrace();

}

mp.start();


mListView = (ListView) findViewById(R.id.ListMain1);


// main_tab2.xml

mInfo = (ListView) findViewById(R.id.noticeListMain2);

mInfo.setAdapter(new ArrayAdapter(this,

android.R.layout.simple_list_item_1, information));

mainTabListenerOn();

mainContentToggle(findViewById(R.id.mainMenu1));


typedatas = this.getResources().getStringArray(

R.array.select_notice_type);

// ///(1) 스피너 출력: 시작

notice_type = (Spinner) findViewById(R.id.noticetype_spinner);

// ///(2) strings.xml에 정의한 string 배열(edit_notice_type_array)를

// ArrayAdapter로 바인딩하고 스피너의 모양을 지정함

ArrayAdapter adapter = ArrayAdapter.createFromResource(

this, R.array.select_notice_type,

android.R.layout.simple_spinner_item);

// ///(3) ArrayAdapter 객체에 할당된 데이터들을 스피너가 클릭될 때 보여줄 스피너 아이템의 출력형식을 지정함

adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);

// ///(4) 스피너에 ArrayAdapter를 설정함

notice_type.setAdapter(adapter);


notice_type.setOnItemSelectedListener(notice_selectonclicklistener);


setTabHost();


membership_mypage_btn = (Button) findViewById(R.id.membership_mypage_btn);

membership_mypage_btn

.setOnClickListener(membership_mypage_btn_onClickListener);


tabview_tv1 = (ListView) findViewById(R.id.tabview_tv1);

tabview_tv2 = (ListView) findViewById(R.id.tabview_tv2);

tabview_tv3 = (ListView) findViewById(R.id.tabview_tv3);

tabview_tv4 = (ListView) findViewById(R.id.tabview_tv4);

tabview_tv5 = (ListView) findViewById(R.id.tabview_tv5);

tabview_tv6 = (ListView) findViewById(R.id.tabview_tv6);

tabview_tv7 = (ListView) findViewById(R.id.tabview_tv7);

tabview_tv8 = (ListView) findViewById(R.id.tabview_tv8);

mTabHost.setOnTabChangedListener(onstoretabchangedlistener);


}





private void setTabHost() {

HorizontalScrollView sView = (HorizontalScrollView) findViewById(R.id.mallhscrollview);

// sView.setVerticalScrollBarEnabled(false);

sView.setHorizontalScrollBarEnabled(true);

// TabHost tabHost = getTabHost();

// LayoutInflater.from(this).inflate(R.layout.tabs1,

// tabHost.getTabContentView(), true);

mTabHost = (TabHost) findViewById(R.id.tabHostStore);

// LayoutInflater.from(this).inflate(R.layout.main_tab3,

// mTabHost.getTabContentView(),true);

mTabHost.setup();


TabHost.TabSpec spec = mTabHost.newTabSpec("clothing");

spec.setContent(R.id.tabview1);

spec.setIndicator("  clothing  ",

this.getResources().getDrawable(R.drawable.tab_cloth));

mTabHost.addTab(spec);


spec = mTabHost.newTabSpec("shoes");

spec.setContent(R.id.tabview2);

spec.setIndicator("  shoes  ",

this.getResources().getDrawable(R.drawable.tab_shoes));

mTabHost.addTab(spec);


spec = mTabHost.newTabSpec("bag");

spec.setContent(R.id.tabview3);

spec.setIndicator("   bag   ",

this.getResources().getDrawable(R.drawable.tab_bag));

mTabHost.addTab(spec);


spec = mTabHost.newTabSpec("book");

spec.setContent(R.id.tabview4);

spec.setIndicator("   book   ",

this.getResources().getDrawable(R.drawable.tab_book));

mTabHost.addTab(spec);


spec = mTabHost.newTabSpec("notebook");

spec.setContent(R.id.tabview5);

spec.setIndicator("  notebook  ",

this.getResources().getDrawable(R.drawable.tab_macbook));

mTabHost.addTab(spec);


spec = mTabHost.newTabSpec("desktop");

spec.setContent(R.id.tabview6);

spec.setIndicator("  desktop  ",

this.getResources().getDrawable(R.drawable.tab_imac));

mTabHost.addTab(spec);


spec = mTabHost.newTabSpec("mp3");

spec.setContent(R.id.tabview7);

spec.setIndicator("   mp3    ",

this.getResources().getDrawable(R.drawable.tab_mp3));

mTabHost.addTab(spec);


spec = mTabHost.newTabSpec("smartphone");

spec.setContent(R.id.tabview8);

spec.setIndicator("   phone   ",

this.getResources().getDrawable(R.drawable.tab_iphone));

mTabHost.addTab(spec);


mTabHost.setCurrentTab(0);


}



이런 코드에...,

아래의 아이콘을 TabHost 클래스에 2012년에 넣었는데...

1. 디자인을 직접 한 것도 있어서 별루 일 수 있음.

24px x 24px 로 도트그래픽으로 한거임.

2. 친구가 2012년에 가져온거라서, 지금은 아이콘만 남고 다 없어진거임.

미니 PC 아이콘은 오늘 디자인함.




이걸 기반으로 홈페이지를 만들 계획...,



요즘 시맨틱 태그라고

<body>

/span>


이게 반응형웹의 기초임.


css 는 작성이 안되었고,

다음 daum.net 같은 사이트는,


css 를 제거하면 이렇게됨.

어제 거임....

클라이언트 상에 따로 저장할 수 있음.


이렇게 태그로 ul 태그로 바뀜...


이런거를 시맨틱 태그라 하고,

내가 아직 css를 입혀서 페이지가 디자인적으로 이쁘게 보이도록...

css가 적용되면 어제가 5월 18일이라 기사 내용이 다른데,


아시다시피 디자인이 그 사이트만의 디자인이 입혀짐.

나만의 사이트를 만들어서 하려는거임.

원래 할려는거는...,



음악파일이 많으니 로컬호스트든 나중에 nas에 올리든,

음악 리뷰 사이트를 하다던지, 음악 감상 사이트를 하다던지., 하지만

그런거는 저작권도 있고 주제가 한정적이어서,

그냥 커뮤니티 사이트를 만들거나 쇼핑몰을 만드는게 나을거라 생각해서,

다나와에서 상품이미지 저장해서 따로 만들기로 함.

그래봤자 쇼핑몰 결제 기능도 없고,

그냥 대충 HTML5 시맨틱 태그 공부하려고 하는거고,

그리고 스타일 시트 입히는 공부하려면 어떤 책을 봐야할지도 고민이긴 함.


다나와 m을 만들고 싶어서,