List of usage examples for android.graphics Color TRANSPARENT
int TRANSPARENT
To view the source code for android.graphics Color TRANSPARENT.
Click Source Link
From source file:com.cheng.animationstudy.customview.bagrefresh.BGAMoocStyleRefreshViewHolder.java
@Override public View getRefreshHeaderView() { if (mRefreshHeaderView == null) { mRefreshHeaderView = View.inflate(mContext, R.layout.view_refresh_header_mooc_style, null); mRefreshHeaderView.setBackgroundColor(Color.TRANSPARENT); if (mRefreshViewBackgroundColorRes != -1) { mRefreshHeaderView.setBackgroundResource(mRefreshViewBackgroundColorRes); }/*from w w w.j a va2s .c o m*/ if (mRefreshViewBackgroundDrawableRes != -1) { mRefreshHeaderView.setBackgroundResource(mRefreshViewBackgroundDrawableRes); } mMoocRefreshView = (BGAMoocStyleRefreshView) mRefreshHeaderView.findViewById(R.id.moocView); if (mOriginalBitmap != null) { mMoocRefreshView.setOriginalBitmap(mOriginalBitmap); } if (mUltimateColor != -1) { mMoocRefreshView.setUltimateColor(mUltimateColor); } } return mRefreshHeaderView; }
From source file:com.actionbarsherlock.sample.hcgallery.TitlesFragment.java
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); //Current position should survive screen rotations. if (savedInstanceState != null) { mCategory = savedInstanceState.getInt("category"); mCurPosition = savedInstanceState.getInt("listPosition"); }//w w w.j a v a2s . com populateTitles(mCategory); ListView lv = getListView(); lv.setChoiceMode(ListView.CHOICE_MODE_SINGLE); lv.setCacheColorHint(Color.TRANSPARENT); lv.setOnItemLongClickListener(new OnItemLongClickListener() { public boolean onItemLongClick(AdapterView<?> av, View v, int pos, long id) { final String title = (String) ((TextView) v).getText(); // Set up clip data with the category||entry_id format. final String textData = String.format("%d||%d", mCategory, pos); ClipData data = ClipData.newPlainText(title, textData); v.startDrag(data, new MyDragShadowBuilder(v), null, 0); return true; } }); selectPosition(mCurPosition); }
From source file:bijznas.notify.crouton.ShowInfo.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { dialog = new Dialog(getActivity()); dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE); dialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); dialog.setContentView(R.layout.show_info); dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); context = getActivity();// ww w.ja v a 2 s. c o m manager = getActivity().getSupportFragmentManager(); lv = (ListView) dialog.findViewById(R.id.lVDetails); topdf = (TextView) dialog.findViewById(R.id.topdf); photo = (ImageView) dialog.findViewById(R.id.imageView3); MyCustomAdapter adapterCustom = new MyCustomAdapter(context, caption, information); lv.setAdapter(adapterCustom); ok = (Button) dialog.findViewById(R.id.btnOkSUP); ok.setOnClickListener(this); topdf.setText(info + " Found"); // read(); // Message.message(getActivity(), alContacts.get(0)); dialog.show(); return dialog; }
From source file:de.madvertise.android.sdk.MadvertiseImageView.java
public MadvertiseImageView(final Context context, final int newWidth, final int newHeight, final MadvertiseAd ad, final Handler loadingCompletedHandler, final AnimationEndListener animationListener) { super(context); mAnimationListener = animationListener; mImageAd = ad;//from w w w. ja va 2s . c o m // Remove the ScrollBar so that we have no padding. setVerticalScrollBarEnabled(false); setHorizontalScrollBarEnabled(false); setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY); // No visible background setBackgroundColor(Color.TRANSPARENT); WebViewClient webViewClient = new WebViewClient() { @Override public void onPageFinished(WebView view, String url) { if (loadingCompletedHandler != null) { loadingCompletedHandler.sendEmptyMessage(MadvertiseView.MAKE_VISIBLE); } } }; setWebViewClient(webViewClient); StringBuilder content = new StringBuilder(); content.append("<html><head><style>* {margin:0;padding:0;}</style></head><body>") .append("<img src=\"" + mImageAd.getBannerUrl() + "\" height=\"" + newHeight + "\" width=\"" + newWidth + "\"/>" + getImpressionTrackingTag()) .append("</body></html>"); MadvertiseUtil.logMessage(null, Log.DEBUG, "Loading ad : " + content.toString()); loadDataWithBaseURL(null, content.toString(), "text/html", "UTF-8", null); }
From source file:com.jumplife.phonefragment.LoginFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.login, container, false); getDialog().requestWindowFeature(STYLE_NO_TITLE); getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); LoginButton authButton = (LoginButton) view.findViewById(R.id.login_button); authButton.setFragment(this); //authButton.setPublishPermissions(PERMISSIONS); return view;//w w w . j a v a 2 s. c o m }
From source file:com.jumplife.tabletfragment.LoginFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.login, container, false); getDialog().requestWindowFeature(STYLE_NO_TITLE); getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); LoginButton authButton = (LoginButton) view.findViewById(R.id.login_button); authButton.setFragment(this); return view;// www . j a v a2 s.c o m }
From source file:com.osama.cgpacalculator.MainActivity.java
private void setCollapsingBar() { collapsingToolbarLayout = findViewById(R.id.collapsing_bar); collapsingToolbarLayout.setCollapsedTitleTextColor(Color.parseColor("#4caf50")); collapsingToolbarLayout.setExpandedTitleColor(Color.TRANSPARENT); }
From source file:com.apptentive.android.sdk.module.engagement.interaction.fragment.UpgradeMessageFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.apptentive_upgrade_message_interaction, container, false); ImageView iconView = (ImageView) v.findViewById(R.id.icon); Drawable icon = getIconDrawableResourceId(); if (icon != null) { iconView.setImageDrawable(icon); } else {/*from ww w. ja va2s . c o m*/ iconView.setVisibility(View.GONE); } WebView webview = (WebView) v.findViewById(R.id.webview); webview.loadData(interaction.getBody(), "text/html", "UTF-8"); webview.setBackgroundColor(Color.TRANSPARENT); // Hack to keep webview background from being colored after load. // If branding is not desired, turn the view off. final View branding = v.findViewById(R.id.apptentive_branding_view); if (branding != null) { if (!interaction.isShowPoweredBy() || Configuration.load().isHideBranding(getContext())) { branding.setVisibility(View.GONE); } } return v; }
From source file:com.fjn.magazinereturncandidate.fragments.InputJanCodeFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { //Init custom product detail layout View rootView = inflater.inflate(R.layout.fragment_input_jan, container, false); if (getDialog().getWindow() != null) { getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE); getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); }/*from ww w. j a v a2s . c o m*/ //Get flag setting OCR if (getArguments() != null) { flagSwitchOCR = getArguments().getString(Constants.FLAG_SWITCH_OCR); } //Get Id textView Product detail txv_jan_cd = (TextView) rootView.findViewById(R.id.txv_jan_cd_input); txv_inventory_number = (TextView) rootView.findViewById(R.id.txv_inventory_number_input); Button btn_submit_edit = (Button) rootView.findViewById(R.id.btn_submit_edit_input); // Set adapter for combo box with array ArrayAdapter<String> adapter1 = new ArrayAdapter<>(getContext(), android.R.layout.simple_list_item_1, arr); // Set item selected adapter1.setDropDownViewResource(android.R.layout.simple_list_item_single_choice); // Set button click btn_submit_edit.setOnClickListener(this); //Set default end text txv_jan_cd.setText(""); txv_jan_cd.append(Constants.PREFIX_JAN_CODE_MAGAZINE); //focus end text //Show keyboard txv_jan_cd.requestFocus(); getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE); checkDataCommon = new CheckDataCommon(); registerLicenseCommon = new RegisterLicenseCommon(); formatCommon = new FormatCommon(); hsmDecoder = HSMDecoder.getInstance(getActivity()); return rootView; }
From source file:fr.cobaltians.cobalt.fragments.CobaltWebLayerFragment.java
/****************************************************** * LIFECYCLE/* www. j ava 2 s . co m*/ *****************************************************/ @Override public void onStart() { super.onStart(); mWebView.setBackgroundColor(Color.TRANSPARENT); }