package net.npaka.installlocationex;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.Window;
import android.widget.LinearLayout;
import android.widget.TextView;
//SDカードへのインストール(AndroidManifest.xmlで設定)
public class InstallLocationEx extends Activity {
private final static int WC=LinearLayout.LayoutParams.WRAP_CONTENT;
//初期化
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
requestWindowFeature(Window.FEATURE_NO_TITLE);
//レイアウトの生成
LinearLayout layout=new LinearLayout(this);
layout.setBackgroundColor(Color.rgb(255,255,255));
layout.setOrientation(LinearLayout.VERTICAL);
setContentView(layout);
//テキストビューの生成
TextView textView=new TextView(this);
textView.setText("InstallLocationEx");
textView.setTextSize(16.0f);
textView.setTextColor(Color.rgb(0,0,0));
textView.setLayoutParams(new LinearLayout.LayoutParams(WC,WC));
layout.addView(textView);
}
}
|