Morblock Add
( rippleRoundStroke )
Add source directly
- android.graphics.drawable.GradientDrawable GG = new android.graphics.drawable.GradientDrawable();
GG.setColor(Color.parseColor(_focus));
GG.setCornerRadius((float)_round);
GG.setStroke((int) _stroke,
Color.parseColor("#" + _strokeclr.replace("#", "")));
android.graphics.drawable.RippleDrawable RE = new android.graphics.drawable.RippleDrawable(new android.content.res.ColorStateList(new int[][]{new int[]{}}, new int[]{ Color.parseColor(_pressed)}), GG, null);
_view.setBackground(RE);
Morblock Add
( radius )
Add source directly
android.graphics.drawable.GradientDrawable gd = new android.graphics.drawable.GradientDrawable();
gd.setColor(Color.parseColor(_color1));
gd.setStroke((int)_str, Color.parseColor(_color2));
gd.setCornerRadii(new float[]{(int)_n1,(int)_n1,(int)_n2,(int)_n2,(int)_n3,(int)_n3,(int)_n4,(int)_n4});
_view.setBackground(gd);
Morblock Add
( AjaySing )
Add source directly
final AlertDialog dialog1 = new AlertDialog.Builder(MainActivity.this).create();
View inflate = getLayoutInflater().inflate(R.layout.custom,null);
dialog1.getWindow().setBackgroundDrawableResource(android.R.color.transparent);
dialog1.setView(inflate);
Add source directly
TextView t1 = (TextView) inflate.findViewById(R.id.t1);
TextView t2 = (TextView) inflate.findViewById(R.id.t2);
TextView textview2 = (TextView) inflate.findViewById(R.id.textview2);
LinearLayout b2 = (LinearLayout) inflate.findViewById(R.id.b2);
ImageView i1 = (ImageView) inflate.findViewById(R.id.i1);
ImageView i2 = (ImageView) inflate.findViewById(R.id.i2);
ImageView i3 = (ImageView) inflate.findViewById(R.id.i3);
ImageView i4 = (ImageView) inflate.findViewById(R.id.i4);
ImageView i5 = (ImageView) inflate.findViewById(R.id.i5);
LinearLayout bg = (LinearLayout) inflate.findViewById(R.id.bg);
LinearLayout l5 = (LinearLayout) inflate.findViewById(R.id.l5);
TextView t3 = (TextView)
inflate.findViewById(R.id.t3);
Add source directly
i5.setOnClickListener(new View.OnClickListener(){ public void onClick(View v){
Add source directly
dialog1.dismiss();
Add source directly
}
});
Add source directly
dialog1.setCancelable(false);
dialog1.show();
Comments (0)