0
@SuppressWarnings("deprecation")
        int btnHt = getWindowManager().getDefaultDisplay().getHeight()
                / numberOfRows;
        int btnWdth = getWindowManager().getDefaultDisplay().getWidth()
                / numberOfColumns;

I get warning that get Height is deprecated method how to get rid of it??

I did suppress but was of no use...!

I want the code of extending base adapter in order to get customized color to List View

1 Answers1

0

Use this instead

public void getSize (Point outSize)

Like this getSize() giving me errors

Community
  • 1
  • 1