Commit 546c73b7 by chengxiuhong

test main

parent 4e83b2ee
......@@ -3,11 +3,16 @@ package com.oo.eye.widget;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.Display;
import android.view.Gravity;
import android.view.View;
import android.view.WindowManager;
import android.widget.FrameLayout;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.app.baselibrary.commonUtil.DensityUtil;
import com.facebook.drawee.view.SimpleDraweeView;
import com.oo.eye.R;
......@@ -52,8 +57,11 @@ public class AfterTestDialog extends Dialog implements View.OnClickListener {
private void initView() {
RelativeLayout rootView = (RelativeLayout) findViewById(R.id.root_view);
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(DensityUtil.getScreenWidth(), DensityUtil.getScreenHeight());
rootView.setLayoutParams(params);
mUsername_tv = (TextView) findViewById(R.id.tv_after_name);
mNextName= (TextView) findViewById(R.id.tv_nest_name);
mNextName = (TextView) findViewById(R.id.tv_nest_name);
mLeftEye = (TextView) findViewById(R.id.tv_after_result_left);
mRightEye = (TextView) findViewById(R.id.tv_after_result_right);
mTestTime = (TextView) findViewById(R.id.tv_after_time);
......
......@@ -2,6 +2,7 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/root_view"
android:background="@color/line_color"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment