Coder Social home page Coder Social logo

Tiles are not showing about tileview HOT 5 CLOSED

moagrius avatar moagrius commented on June 17, 2024
Tiles are not showing

from tileview.

Comments (5)

moagrius avatar moagrius commented on June 17, 2024

I'm not clear on what you're asking exactly. If you're just looking for basic setup, you can check out the TileViewDemo, or look at the wiki.

HTH.

from tileview.

srinivasttt avatar srinivasttt commented on June 17, 2024

Hi moagrius

i added different zoom levels like

mTileView.addDetailLevel(1.00000f, "edcontroller/tiles_6_%row%x%col%.png");

        mTileView.addDetailLevel(0.50000f, "edcontroller/tiles_5_%row%x%col%.png");

        mTileView.addDetailLevel(0.25000f, "edcontroller/tiles_4_%row%x%col%.png");

        mTileView.addDetailLevel(0.12500f, "edcontroller/tiles_3_%row%x%col%.png");

        mTileView.addDetailLevel(0.06250f, "edcontroller/tiles_2_%row%x%col%.png");

        mTileView.addDetailLevel(0.03125f, "edcontroller/tiles_1_%row%x%col%.png");

and im adding this to relative layout like

mRelativeLayout.addView(mTileView);
but im not able to see tiles of image .how can i find out proble .

from tileview.

moagrius avatar moagrius commented on June 17, 2024

I can't be sure by seeing just that limited code, but I'd check 2 things initially:

  1. Make sure you have your tiles in /assets/edcontroller/tile_5_0x0.png, etc
  2. I don't see dimensions specified for when you add the TileView to the RelativeLayout. Try this:
RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
mRelativeLayout.addView(mTileView, lp);

If that doesn't work, does it work when you set the TileView as the content view, rather than as a child? Have you examine the Activities in TileViewDemo to see how they work?

from tileview.

srinivasttt avatar srinivasttt commented on June 17, 2024

Thank u moagrius..

from tileview.

moagrius avatar moagrius commented on June 17, 2024

YW :)

from tileview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.