Codota Logo
CircleDrawable
Code IndexAdd Codota to your IDE (free)

How to use
CircleDrawable
in
com.mylhyl.circledialog.res.drawable

Best Java code snippets using com.mylhyl.circledialog.res.drawable.CircleDrawable (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: mylhyl/Android-CircleDialog

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  View view = createView(getContext(), inflater, container);
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
    view.setBackground(new CircleDrawable(mBackgroundColor, mRadius));
  } else {
    view.setBackgroundDrawable(new CircleDrawable(mBackgroundColor, mRadius));
  }
  view.setAlpha(mAlpha);
  return view;
}
origin: mylhyl/Android-CircleDialog

public CircleDrawable(int backgroundColor, int leftTopRadius, int rightTopRadius
    , int rightBottomRadius, int leftBottomRadius) {
  getPaint().setColor(backgroundColor);//内部填充颜色
  //圆角半径
  setShape(DrawableHelper.getRoundRectShape(leftTopRadius, rightTopRadius, rightBottomRadius, leftBottomRadius));
}
origin: mylhyl/Android-CircleDialog

.setTitle("提示")
.setBodyView(R.layout.dialog_login_conn_pic, view16 -> {
  CircleDrawable bgCircleDrawable = new CircleDrawable(CircleColor.DIALOG_BACKGROUND
      , 0, 0, 0, 0);
  view16.setBackgroundDrawable(bgCircleDrawable);
com.mylhyl.circledialog.res.drawableCircleDrawable

Javadoc

圆角 Created by hupei on 2017/3/29.

Most used methods

  • <init>
  • getPaint
  • setShape

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Kernel (java.awt.image)
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now