Search in sources :

Example 1 with SuppressLint

use of android.annotation.SuppressLint in project photo-picker-plus-android by chute.

the class FragmentSingle method onCreateOptionsMenu.

@SuppressLint("NewApi")
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
    super.onCreateOptionsMenu(menu, inflater);
    MenuItem menuItemUse = menu.add(0, AssetActivity.USE_ITEM, 0, R.string.button_use_media);
    menuItemUse.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);
}
Also used : MenuItem(android.view.MenuItem) SuppressLint(android.annotation.SuppressLint)

Example 2 with SuppressLint

use of android.annotation.SuppressLint in project photo-picker-plus-android by chute.

the class FragmentSingle method onCreateView.

@SuppressLint("NewApi")
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    isMultipicker = PhotoPicker.getInstance().isMultiPicker();
    accountType = PhotoPickerPreferenceUtil.get().getAccountType();
    Map<AccountType, DisplayType> accountMap = PhotoPicker.getInstance().getAccountDisplayType();
    displayType = AppUtil.getDisplayType(accountMap, PhotoPicker.getInstance().getDefaultAccountDisplayType(), accountType);
    getActionBarActivity().getSupportActionBar().setTitle(UIUtil.getActionBarTitle(getActivity(), accountType, PhotoFilterType.SOCIAL_MEDIA));
    View view = inflater.inflate(R.layout.gc_fragment_assets, container, false);
    return view;
}
Also used : DisplayType(com.getchute.android.photopickerplus.models.enums.DisplayType) AccountType(com.chute.sdk.v2.model.enums.AccountType) View(android.view.View) RecyclerView(android.support.v7.widget.RecyclerView) SuppressLint(android.annotation.SuppressLint)

Example 3 with SuppressLint

use of android.annotation.SuppressLint in project photo-picker-plus-android by chute.

the class FragmentRoot method onCreateOptionsMenu.

@SuppressLint("NewApi")
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
    super.onCreateOptionsMenu(menu, inflater);
    MenuItem menuItemUse = menu.add(0, AssetActivity.USE_ITEM, 0, R.string.button_use_media);
    menuItemUse.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);
}
Also used : MenuItem(android.view.MenuItem) SuppressLint(android.annotation.SuppressLint)

Example 4 with SuppressLint

use of android.annotation.SuppressLint in project UltimateAndroid by cymcsg.

the class MaterialDesignActivity method onCreate.

@SuppressLint("NewApi")
@Override
protected void onCreate(Bundle savedInstanceState) {
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    super.onCreate(savedInstanceState);
    setContentView(R.layout.material_design_activity_main);
    buttonSelectColor = (ButtonFloatSmall) findViewById(R.id.buttonColorSelector);
    buttonSelectColor.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View arg0) {
            ColorSelector colorSelector = new ColorSelector(MaterialDesignActivity.this, backgroundColor, MaterialDesignActivity.this);
            colorSelector.show();
        }
    });
    LayoutRipple layoutRipple = (LayoutRipple) findViewById(R.id.itemButtons);
    setOriginRiple(layoutRipple);
    layoutRipple.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View arg0) {
            Intent intent = new Intent(MaterialDesignActivity.this, ButtonsActivity.class);
            intent.putExtra("BACKGROUND", backgroundColor);
            startActivity(intent);
        }
    });
    layoutRipple = (LayoutRipple) findViewById(R.id.itemSwitches);
    setOriginRiple(layoutRipple);
    layoutRipple.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View arg0) {
            Intent intent = new Intent(MaterialDesignActivity.this, SwitchActivity.class);
            intent.putExtra("BACKGROUND", backgroundColor);
            startActivity(intent);
        }
    });
    layoutRipple = (LayoutRipple) findViewById(R.id.itemProgress);
    setOriginRiple(layoutRipple);
    layoutRipple.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View arg0) {
            Intent intent = new Intent(MaterialDesignActivity.this, ProgressActivity.class);
            intent.putExtra("BACKGROUND", backgroundColor);
            startActivity(intent);
        }
    });
    layoutRipple = (LayoutRipple) findViewById(R.id.itemWidgets);
    setOriginRiple(layoutRipple);
    layoutRipple.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View arg0) {
            Intent intent = new Intent(MaterialDesignActivity.this, WidgetActivity.class);
            intent.putExtra("BACKGROUND", backgroundColor);
            startActivity(intent);
        }
    });
}
Also used : LayoutRipple(com.gc.materialdesign.views.LayoutRipple) OnClickListener(android.view.View.OnClickListener) Intent(android.content.Intent) ColorSelector(com.gc.materialdesign.widgets.ColorSelector) View(android.view.View) SuppressLint(android.annotation.SuppressLint)

Example 5 with SuppressLint

use of android.annotation.SuppressLint in project cw-omnibus by commonsguy.

the class MainActivity method onCreate.

@SuppressLint("SetJavaScriptEnabled")
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    browser = (WebView) findViewById(R.id.browser);
    browser.getSettings().setJavaScriptEnabled(true);
    browser.setWebViewClient(new WebViewClient() {

        @Override
        public boolean shouldOverrideUrlLoading(WebView view, String url) {
            view.loadUrl(url);
            return (true);
        }
    });
    visit(getIntent());
}
Also used : WebView(android.webkit.WebView) WebViewClient(android.webkit.WebViewClient) SuppressLint(android.annotation.SuppressLint)

Aggregations

SuppressLint (android.annotation.SuppressLint)1848 View (android.view.View)383 Intent (android.content.Intent)250 TextView (android.widget.TextView)247 ImageView (android.widget.ImageView)114 File (java.io.File)111 Paint (android.graphics.Paint)110 IOException (java.io.IOException)102 ArrayList (java.util.ArrayList)101 Context (android.content.Context)98 LayoutInflater (android.view.LayoutInflater)92 Bundle (android.os.Bundle)90 Uri (android.net.Uri)89 WebView (android.webkit.WebView)84 Bitmap (android.graphics.Bitmap)81 SharedPreferences (android.content.SharedPreferences)79 Method (java.lang.reflect.Method)76 PendingIntent (android.app.PendingIntent)75 SimpleDateFormat (java.text.SimpleDateFormat)71 ViewGroup (android.view.ViewGroup)69