Back to project page android-qq.
The source code is released under:
Apache License
If you think the Android project android-qq listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.myandroid.activity; /*from w w w . j av a2 s . c om*/ import com.myandroid.message.R; import android.app.Dialog; import android.content.Context; import android.graphics.Color; import android.os.Bundle; import android.view.Window; import android.view.WindowManager; import android.widget.Button; public class MediaDialog extends Dialog{ private Context context; private String ly; private Button lyss; public MediaDialog(Context context,String str) { super(context); this.context = context; this.ly = str; } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.my_dialog); lyss = (Button) this.findViewById(R.id.lys); lyss.setText(ly); lyss.setBackgroundColor(Color.BLUE); } }