INNER CODE UNIT · Java

initViews

MewX/light-novel-library_Wenku8_Android · eclipse-android/src/com/special/ResideMenu/ResideMenu.java:73

	private void initViews(Context context) {
		LayoutInflater inflater = (LayoutInflater) context
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		inflater.inflate(R.layout.residemenu, this);
		scrollViewLeftMenu = (ScrollView) findViewById(R.id.sv_left_menu);
		scrollViewRightMenu = (ScrollView) findViewById(R.id.sv_right_menu);
		imageViewShadow = (ImageView) findViewById(R.id.iv_shadow);
		layoutLeftMenu = (LinearLayout) findViewById(R.id.layout_left_menu);
		layoutRightMenu = (LinearLayout) findViewById(R.id.layout_right_menu);
		imageViewBackground = (ImageView) findViewById(R.id.iv_background);
	}

	/**
	 * use the method to set up the activity which residemenu need to show;
	 * 
	 * @param activity
	 */
	public void attachToActivity(Activity activity) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…