I have created a Fragment Dialog and i want to remove the blue divider from dialog box.
Here my code:-
public class Dialogue extends DialogFragment {
@Override
public android.app.Dialog onCreateDialog(Bundle savedInstanceState) {
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
Bundle args = getArguments();
builder.setTitle("Update");
builder.setMessage("click Yes to update your Application");
builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
//do stuff here
try {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("https://play.google.com/store/apps/details?id=com.shopclues"));
startActivity(intent);
dismiss();
} catch (ActivityNotFoundException e) {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("https://play.google.com/store/apps/developer?id=ShopClues&hl=en"));
startActivity(intent);
dismiss();
}
}
});
//cancel button with dismiss.
builder.setNegativeButton("No", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
Intent i = getActivity().getPackageManager().getLaunchIntentForPackage("com.shopclues");
getActivity().startActivity(i);
dismiss();
}
});
return builder.create();
}
}
Thanks in advance