Commit c22dfa84 by 罗翻

增加资质提醒框

parent dec8c936
package com.dayu.widgets;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import com.dayu.baselibrary.R;
/**
* Created by luofan
* on 2018/5/3.
*/
public class LicenceDialog extends Dialog {
public LicenceDialog(@NonNull Context context) {
super(context);
}
public LicenceDialog(@NonNull Context context, int themeResId) {
super(context, themeResId);
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.dialog_custom);
setCanceledOnTouchOutside(false);
setCancelable(false);
initView();
}
public void initView() {
}
}
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="270dp"
android:layout_height="match_parent"
android:layout_gravity="center">
<ImageView
android:id="@+id/iv_header"
android:layout_width="270dp"
android:layout_height="111dp"
android:src="@drawable/icon_licence" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/iv_header"
android:layout_centerHorizontal="true"
android:layout_marginBottom="15sp"
android:text="恭喜您!"
android:textColor="@color/default_text_color"
android:textSize="22sp" />
</RelativeLayout>
\ No newline at end of file
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 sign in to comment