Tehenauin
Tehenauin

Reputation: 23

There is no "res/layout/" folder in my android project (using eclipse, libGDX)

I want to add ads to my aplication via adMob, so I followed this tutorial: https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals?hl=de#play

It says:

// Lookup your LinearLayout assuming it's been given
// the attribute android:id="@+id/mainLayout".

But I have no layouts! Not even a layout folder!

I tried this solution, but it did not work for me: src folder empty on creating new Android project There was allready everything installed and uninstalling and then installing again also didn't work.

I guess it might have something to do with the gradle-project. I created the project with the gdx-setup tool. But I don't know anything about gradle.

I hope someone can help me.

Upvotes: 2

Views: 938

Answers (1)

James Durie
James Durie

Reputation: 26

You don't need to create a layout folder you can do it all programatically.

Look at our open source libgdx game for an example:

https://github.com/MapleScotDevelopment/LoggerBill

Upvotes: 1

Related Questions