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

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

Best Java code snippets using cc.solart.dragdrop.DragDropListView.setScrollBarStyle (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.dragdropDragDropListViewsetScrollBarStyle

Popular methods of DragDropListView

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • BoxLayout (javax.swing)
  • JPanel (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Best IntelliJ plugins
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