Skip to content

Commit

Permalink
update ui
Browse files Browse the repository at this point in the history
  • Loading branch information
woioiow committed Dec 15, 2020
1 parent b378ffa commit 921aac3
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import com.moioio.android.easyui.UIConf;
import com.moioio.android.easyui.widget.MyLayout;
import com.moioio.android.easyui.widget.MyLayoutView;
import com.moioio.android.easyui.widget.MyView;
import com.moioio.android.util.DisplayUtil;
import com.moioio.android.util.ViewUtil;
Expand All @@ -17,7 +18,7 @@ public abstract class PopUpView extends PopUpBaseView {
private int viewWidth = 0;
private int viewHeight = 0;
private LayoutParams layout_params;
private RelativeLayout layout;
private MyLayoutView layout;

public PopUpView(Context context) {
super(context);
Expand All @@ -27,7 +28,7 @@ public PopUpView(Context context) {
public void initPage(Context context) {

this.setBackgroundColor(UIConf.POPUP_BG_COLOR);
layout = new RelativeLayout(context);
layout = new MyLayoutView(context);
// layout.setBackgroundDrawable(ViewUtil.makeRoundDrawable(GradientDrawable.Orientation.BL_TR,30,new int[]{0xFF110735,0xFF1A0040}));
// layout.setBackgroundDrawable(ViewUtil.makeRoundDrawable(30,0xFF202020));//

Expand Down Expand Up @@ -61,6 +62,12 @@ public void onClick(View v) {
});
}


public MyLayoutView getLayout()
{
return layout;
}

public void setViewSize(int w,int h)
{
this.viewWidth = w;
Expand Down

0 comments on commit 921aac3

Please sign in to comment.