congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DragDropListView.setDragShadowOverlay
Code IndexAdd Tabnine to your IDE (free)

How to use
setDragShadowOverlay
method
in
cc.solart.dragdrop.DragDropListView

Best Java code snippets using cc.solart.dragdrop.DragDropListView.setDragShadowOverlay (Showing top 3 results out of 315)

origin: Solartisan/DragDropListView

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_simple);
  mSimpleTileAdapter = new SimpleTileAdapter(this, this,
      new TileView.OnSelectedListener() {
        @Override
        public void onTileSelected(IDragEntity entity) {
          Toast.makeText(SimpleActivity.this, ((SimpleDragEntity) entity).getName(), Toast.LENGTH_SHORT).show();
        }
      });
  //TODO :set data source
  mSimpleTileAdapter.setData(obtainData());
  mListView = (DragDropListView) findViewById(R.id.list_view);
  mListView.setVerticalScrollBarEnabled(false);
  mListView.setVerticalScrollbarPosition(View.SCROLLBAR_POSITION_RIGHT);
  mListView.setScrollBarStyle(ListView.SCROLLBARS_OUTSIDE_OVERLAY);
  mListView.getDragDropController().addOnDragDropListener(mSimpleTileAdapter);
  final ImageView dragShadowOverlay =
      (ImageView) findViewById(R.id.tile_drag_shadow_overlay);
  mListView.setDragShadowOverlay(dragShadowOverlay);
  final LayoutAnimationController controller = new LayoutAnimationController(
      AnimationUtils.loadAnimation(this, android.R.anim.fade_in));
  controller.setDelay(0);
  mListView.setLayoutAnimation(controller);
  mListView.setAdapter(mSimpleTileAdapter);
}
origin: Solartisan/DragDropListView

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_thumbtack);
  mThumbtackTileAdapter = new ThumbtackTileAdapter(this, this,
      new TileView.OnSelectedListener() {
        @Override
        public void onTileSelected(IDragEntity entity) {
          Toast.makeText(ThumbtackActivity.this, ((SimpleDragEntity) entity).getName(), Toast.LENGTH_SHORT).show();
        }
      });
  //TODO :set data source
  mThumbtackTileAdapter.setData(obtainData());
  mListView = (DragDropListView) findViewById(R.id.list_view);
  mListView.setVerticalScrollBarEnabled(false);
  mListView.setVerticalScrollbarPosition(View.SCROLLBAR_POSITION_RIGHT);
  mListView.setScrollBarStyle(ListView.SCROLLBARS_OUTSIDE_OVERLAY);
  mListView.getDragDropController().addOnDragDropListener(mThumbtackTileAdapter);
  final ImageView dragShadowOverlay =
      (ImageView) findViewById(R.id.tile_drag_shadow_overlay);
  mListView.setDragShadowOverlay(dragShadowOverlay);
  final LayoutAnimationController controller = new LayoutAnimationController(
      AnimationUtils.loadAnimation(this, android.R.anim.fade_in));
  controller.setDelay(0);
  mListView.setLayoutAnimation(controller);
  mListView.setAdapter(mThumbtackTileAdapter);
}
origin: Solartisan/DragDropListView

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_single_row);
  mSimpleTileAdapter = new SimpleTileAdapter(this, this,
      new TileView.OnSelectedListener() {
        @Override
        public void onTileSelected(IDragEntity entity) {
          Toast.makeText(SingleRowActivity.this, ((SimpleDragEntity) entity).getName(), Toast.LENGTH_SHORT).show();
        }
      });
  //TODO :set data source
  mSimpleTileAdapter.setData(obtainData());
  mListView = (DragDropListView) findViewById(R.id.list_view);
  mListView.setVerticalScrollBarEnabled(false);
  mListView.setVerticalScrollbarPosition(View.SCROLLBAR_POSITION_RIGHT);
  mListView.setScrollBarStyle(ListView.SCROLLBARS_OUTSIDE_OVERLAY);
  mListView.getDragDropController().addOnDragDropListener(mSimpleTileAdapter);
  final ImageView dragShadowOverlay =
      (ImageView) findViewById(R.id.tile_drag_shadow_overlay);
  mListView.setDragShadowOverlay(dragShadowOverlay);
  final LayoutAnimationController controller = new LayoutAnimationController(
      AnimationUtils.loadAnimation(this, android.R.anim.fade_in));
  controller.setDelay(0);
  mListView.setLayoutAnimation(controller);
  mListView.setAdapter(mSimpleTileAdapter);
}
cc.solart.dragdropDragDropListViewsetDragShadowOverlay

Popular methods of DragDropListView

  • createDraggedChildBitmap
  • ensureScrollHandler
  • getBottom
  • getChildAt
  • getChildCount
  • getContext
  • getDragDropController
  • getFirstVisiblePosition
  • getHandler
  • getHeight
  • getLocationOnScreen
  • getTop
  • getLocationOnScreen,
  • getTop,
  • getViewAtPosition,
  • getViewTreeObserver,
  • setAdapter,
  • setLayoutAnimation,
  • setScrollBarStyle,
  • setVerticalScrollBarEnabled,
  • setVerticalScrollbarPosition

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Notification (javax.management)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now