Newer
Older
dxcgt / app / src / main / java / com / smartdot / cgt / activity / FrmHelp.java
wangxitong on 6 Apr 2021 1 KB first commit
package com.smartdot.cgt.activity;

import android.content.DialogInterface;
import android.os.Bundle;
import android.os.Message;
import android.view.View;

import com.smartdot.cgt.R;
import com.smartdot.cgt.view.FootBar;
import com.smartdot.cgt.view.TitleBar;

public class FrmHelp extends BaseActivity {

	private FootBar footbar;

	@Override
	protected void addEventListener() {
	}

	@Override
	protected void handleMessage(Message msg) {
	}

	@Override
	protected void onCancelProgress(DialogInterface arg0) {
	}
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		MyApplication.getInstance().addActivity(this);
	}
	@Override
	protected void setLayout() {

		initActivity();
		setContentView(R.layout.help);

		TitleBar titlebar=(TitleBar)this.findViewById(R.id.titlebar);
		titlebar.setHelpBtnVisible(false);
    	titlebar.setTitleText(R.string.module_help);
		footbar = (FootBar) this.findViewById(R.id.footbar);
		footbar.setChoose(4);
    	
    	if(getIntent().getExtras()!=null){
	    	Object object=getIntent().getExtras().get("toPanel");
	    	if(object!=null){
	    		int toPanelId=Integer.parseInt(object.toString());
	    		View v=findViewById(toPanelId);
	    		v.requestFocus(300);
	    	}
    	}
	}

}