0

I am trying to make similar layout to this one.

I achieved everything except that pop up window (saying "Perfect"). How to make this? Will pop up windows? Dialog or somehow else?

screen shot

luchaninov
  • 6,792
  • 6
  • 60
  • 75
whiteLT
  • 338
  • 7
  • 21
  • 1
    It could be a custom dialog which appears when user finishes with the game or something which will be going on.. – jyomin Nov 07 '13 at 07:25

2 Answers2

2

The screenshoted layout look like a WebView to me. Thus you could try to take all advantage of the WebView to create any html-based layout.

The pop-up could also be a custom dialog, or just a div on top the main layout or whatever. For example, check this.

Community
  • 1
  • 1
phil_g
  • 516
  • 6
  • 13
  • Does WebView requires internet? (Sorry for maybe dumb question) :D. If yes, this program works without interent. – whiteLT Nov 06 '13 at 18:36
  • I have an idea, maybe it is just View, that is on top? :/ and it appears by enabling, disabling it? – whiteLT Nov 06 '13 at 18:38
  • @whiteLT WebView requires no Internet connection to work. You could easily create your custom local HTML file, put it to the assets folder and load to the `WebView`: `loadUrl("file:///android_asset/my_super_layout.html");` – phil_g Nov 07 '13 at 13:14
1

There are 2 ways you can approach this.

If you want a view above another one you can use FramLayout. Tutorial here.

If you want it to be a dialog you can follow this tutorial Tutorial here

OrhanC1
  • 1,415
  • 2
  • 14
  • 28
LoveMeSomeFood
  • 3,137
  • 7
  • 30
  • 53