|
26 Feb 2013, 17:45
Robert Bartnicki
(1 post)
|
Hello, fellow Android programmers. I’ve got an issue right at the beginning of the Sudoku app.
My main.xml code looks like this… :
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".Sudoku" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
</RelativeLayout>
... and not like it’s supposed to:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/main_title" />
</LinearLayout>
Can you guys give me a hand? I don’t get it. :/
Greets, Robert
|
|
27 Feb 2013, 10:54
Anthony Shaw
(115 posts)
|
Maybe I’m missing something and I don’t mean to be flipant, but if you know what it should be then just change it?
|
|
14 Apr 2013, 02:21
Ed Burnette
(1316 posts)
|
Looks like Google changed the new project template again. Either one will work but if it were me I’d adapt the examples to the new format (the one with RelativeLayout).
|
| |
You must be logged in to comment
|