Re: [mono-android] axml Code wants an layout_height at line1 ?

2012-10-18 Thread Tomasz Cielecki
Check your elements for width and height, I see a lot of them missing
the attributes.

Especially in the TabHost section.


Med Venlig Hilsen / With Best Regards
Tomasz Cielecki
http://ostebaronen.dk


On Thu, Oct 18, 2012 at 8:38 AM, EaranMaleasi  wrote:
> hey guys,
> i'm trying to use following axml Code:
> 
> http://schemas.android.com/apk/res/android";
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> android:orientation="vertical"
> android:minWidth="25px"
> android:minHeight="25px">
>  android:layout_width="fill_parent"
> android:id="@+id/tableLayout1"
> android:layout_height="115dp"
> android:layout_marginLeft="5dp">
>  android:id="@+id/tableRow1"
> android:layout_marginTop="5dp"
> android:layout_marginBottom="5dp">
>  android:text="@string/lbEqID"
> android:textAppearance="?android:attr/textAppearanceSmall"
> android:layout_column="0"
> android:id="@+id/lbEqID" />
>  android:text="Small Text"
> android:textAppearance="?android:attr/textAppearanceSmall"
> android:layout_column="1"
> android:id="@+id/lbEqIDVar"
> android:layout_marginLeft="10dp" />
> 
>  android:id="@+id/tableRow2"
> android:layout_marginBottom="5dp">
>  android:text="@string/lbTaskID"
> android:textAppearance="?android:attr/textAppearanceSmall"
> android:layout_column="0"
> android:id="@+id/lbTaskID" />
>  android:text="Small Text"
> android:textAppearance="?android:attr/textAppearanceSmall"
> android:layout_column="1"
> android:id="@+id/lbTaskIDVar"
> android:layout_marginLeft="10dp" />
> 
>  android:id="@+id/tableRow3"
> android:layout_marginBottom="5dp">
>  android:text="@string/lbEqDesc"
> android:textAppearance="?android:attr/textAppearanceSmall"
> android:layout_column="0"
> android:id="@+id/lbEqDesc" />
>  android:text="Small Text"
> android:textAppearance="?android:attr/textAppearanceSmall"
> android:layout_column="1"
> android:id="@+id/lbEqDescVar"
> android:layout_marginLeft="10dp" />
> 
>  android:id="@+id/tableRow4"
> android:layout_marginBottom="5dp">
>  android:text="@string/lbTaskDesc"
> android:textAppearance="?android:attr/textAppearanceSmall"
> android:layout_column="0"
> android:id="@+id/lbTaskDesc" />
>  android:text="Small Text"
> android:textAppearance="?android:attr/textAppearanceSmall"
> android:layout_column="1"
> android:id="@+id/lbTaskDescVar"
> android:layout_marginLeft="10dp" />
> 
>  android:id="@+id/tableRow5">
>  android:text="@string/lbTaskDate"
> android:textAppearance="?android:attr/textAppearanceSmall"
> android:layout_column="0"
> android:id="@+id/lbTaskDate" />
>  android:text="Small Text"
> android:textAppearance="?android:attr/textAppearanceSmall"
> android:layout_column="1"
> android:id="@+id/textView25"
> android:layout_marginLeft="10dp" />
> 
> 
>  android:layout_width="fill_parent"
> android:id="@+id/tabHost1"
> android:layout_weight="3">
>  android:layout_width="match_parent"
> android:layout_height="match_parent"
> android:orientation="vertical"
> android:id="@+id/linearLayout1">
>  android:id="@android:id/tabcontent"
> android:layout_width="match_parent"
> android:layout_weight="5">
>  android:layout_width="match_parent"
> android:layout_height="match_parent"
> android:id="@+id/linearLayout2" />
>  android:layout_width="match_parent"
> android:layout_height="match_parent"
> android:id="@+id/linearLayout3" />
>  android:layout_width="match_parent"
> android:layout_height="match_parent"
> android:id="@+id/linearLayout4" />
> 
>  android:id="@android:id/tabs"
> and

Re: [mono-android] axml Code wants an layout_height at line1 ?

2012-10-18 Thread EaranMaleasi
yeah i just identified that the missing heights were the problem i
thought the weight would replace them completely, but now i know i have to
set sth. like wrap_content. however thanks for your help^^



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/axml-Code-wants-an-layout-height-at-line1-tp5712189p5712192.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] axml Code wants an layout_height at line1 ?

2012-10-18 Thread Tomasz Cielecki
Weight does not automagically replace the heights, but you can just set
them to 0dp as stated in the docs:

http://developer.android.com/guide/topics/ui/layout/linear.html

> Equally weighted children
> To create a linear layout in which each child uses the same amount of
> space on the screen, set the android:layout_height of each view to "0dp"
> (for a vertical layout) or the android:layout_width of each view to "0dp"
> (for a horizontal layout). Then set the android:layout_weight of each view
> to "1".


But awesome it works for you now :)

Med Venlig Hilsen / With Best Regards
Tomasz Cielecki
http://ostebaronen.dk


On Thu, Oct 18, 2012 at 10:22 AM, EaranMaleasi  wrote:
> yeah i just identified that the missing heights were the problem i
> thought the weight would replace them completely, but now i know i have to
> set sth. like wrap_content. however thanks for your help^^
>
>
>
> --
> View this message in context:
http://mono-for-android.1047100.n5.nabble.com/axml-Code-wants-an-layout-height-at-line1-tp5712189p5712192.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> ___
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] Unable to build portable library on OSX.

2012-10-18 Thread Jonathan Pryor
On Oct 17, 2012, at 11:36 PM, Doug  wrote:
> Is this a known issue, or something?

I haven't seen it before...

> I saw this issue on bugzilla: 
> https://bugzilla.xamarin.com/show_bug.cgi?id=7173
> 
> However, my issue is more direct.
> Clear copy of OSX mountain lion.

I assume you mean "clean" copy...

> Install the android trial
> Create new solution
> Create new portable library project
> Compile
> 
> Generates:
> /Users/doug/projects/droid/droid.sample/HelloWorld.Common/HelloWorld.Common.csproj:
> Error: 
> /Users/doug/projects/droid/droid.sample/HelloWorld.Common/HelloWorld.Common.csproj:
> /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets:

Sanity check: does that file exist?

$ ls -l 
/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets
 
-rw-r--r--  1 root  admin  1570 May  7 20:42 
/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets

> Project file could not be imported, it was being imported by
> /Users/doug/projects/droid/droid.sample/HelloWorld.Common/HelloWorld.Common.csproj:
> /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets
> could not import
> "$(MSBuildToolsPath)\Novell\Novell.MonoDroid.CSharp.targets"

Further sanity check: does that file exist?

$ ls -l 
/Library/Frameworks/Mono.framework/External/xbuild/Novell/Novell.MonoDroid.CSharp.targets
 
-rw-r--r--  1 root  admin  1366 Sep 14 12:37 
/Library/Frameworks/Mono.framework/External/xbuild/Novell/Novell.MonoDroid.CSharp.targets

Thanks,
 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] Unable to build portable library on OSX.

2012-10-18 Thread Doug
Yes.

Last login: Thu Oct 18 21:33:36 on console
dougs-Mac-mini:~ doug$ ls -l
/Library/Frameworks/Mono.framework/External/xbuild/Novell/Novell.MonoDroid.CSharp.targets
-rw-r--r--  1 root  admin  1366 15 Sep 06:32
/Library/Frameworks/Mono.framework/External/xbuild/Novell/Novell.MonoDroid.CSharp.targets

Seems like the file date is rather old though, Sept 15, considering I
re-installed the runtime a few days ago, but I guess it's not uncommon
for installed files to have slightly unusual creation times, and yours
is dated Spet 14.

~
Doug.

On Thu, Oct 18, 2012 at 10:14 PM, Jonathan Pryor  wrote:
> On Oct 17, 2012, at 11:36 PM, Doug  wrote:
>> Is this a known issue, or something?
>
> I haven't seen it before...
>
>> I saw this issue on bugzilla: 
>> https://bugzilla.xamarin.com/show_bug.cgi?id=7173
>>
>> However, my issue is more direct.
>> Clear copy of OSX mountain lion.
>
> I assume you mean "clean" copy...
>
>> Install the android trial
>> Create new solution
>> Create new portable library project
>> Compile
>>
>> Generates:
>> /Users/doug/projects/droid/droid.sample/HelloWorld.Common/HelloWorld.Common.csproj:
>> Error: 
>> /Users/doug/projects/droid/droid.sample/HelloWorld.Common/HelloWorld.Common.csproj:
>> /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets:
>
> Sanity check: does that file exist?
>
> $ ls -l 
> /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets
> -rw-r--r--  1 root  admin  1570 May  7 20:42 
> /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets
>
>> Project file could not be imported, it was being imported by
>> /Users/doug/projects/droid/droid.sample/HelloWorld.Common/HelloWorld.Common.csproj:
>> /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets
>> could not import
>> "$(MSBuildToolsPath)\Novell\Novell.MonoDroid.CSharp.targets"
>
> Further sanity check: does that file exist?
>
> $ ls -l 
> /Library/Frameworks/Mono.framework/External/xbuild/Novell/Novell.MonoDroid.CSharp.targets
> -rw-r--r--  1 root  admin  1366 Sep 14 12:37 
> /Library/Frameworks/Mono.framework/External/xbuild/Novell/Novell.MonoDroid.CSharp.targets
>
> Thanks,
>  - Jon
>
> ___
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] Unable to build portable library on OSX.

2012-10-18 Thread Doug
Incidentally I've tried this now on three macs; a mac book pro running
mountain lion, a mac mini running mountain line and an imac running
snow leopard with the same result.

~
Doug.

On Thu, Oct 18, 2012 at 11:10 PM, Doug  wrote:
> Yes.
>
> Last login: Thu Oct 18 21:33:36 on console
> dougs-Mac-mini:~ doug$ ls -l
> /Library/Frameworks/Mono.framework/External/xbuild/Novell/Novell.MonoDroid.CSharp.targets
> -rw-r--r--  1 root  admin  1366 15 Sep 06:32
> /Library/Frameworks/Mono.framework/External/xbuild/Novell/Novell.MonoDroid.CSharp.targets
>
> Seems like the file date is rather old though, Sept 15, considering I
> re-installed the runtime a few days ago, but I guess it's not uncommon
> for installed files to have slightly unusual creation times, and yours
> is dated Spet 14.
>
> ~
> Doug.
>
> On Thu, Oct 18, 2012 at 10:14 PM, Jonathan Pryor  wrote:
>> On Oct 17, 2012, at 11:36 PM, Doug  wrote:
>>> Is this a known issue, or something?
>>
>> I haven't seen it before...
>>
>>> I saw this issue on bugzilla: 
>>> https://bugzilla.xamarin.com/show_bug.cgi?id=7173
>>>
>>> However, my issue is more direct.
>>> Clear copy of OSX mountain lion.
>>
>> I assume you mean "clean" copy...
>>
>>> Install the android trial
>>> Create new solution
>>> Create new portable library project
>>> Compile
>>>
>>> Generates:
>>> /Users/doug/projects/droid/droid.sample/HelloWorld.Common/HelloWorld.Common.csproj:
>>> Error: 
>>> /Users/doug/projects/droid/droid.sample/HelloWorld.Common/HelloWorld.Common.csproj:
>>> /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets:
>>
>> Sanity check: does that file exist?
>>
>> $ ls -l 
>> /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets
>> -rw-r--r--  1 root  admin  1570 May  7 20:42 
>> /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets
>>
>>> Project file could not be imported, it was being imported by
>>> /Users/doug/projects/droid/droid.sample/HelloWorld.Common/HelloWorld.Common.csproj:
>>> /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets
>>> could not import
>>> "$(MSBuildToolsPath)\Novell\Novell.MonoDroid.CSharp.targets"
>>
>> Further sanity check: does that file exist?
>>
>> $ ls -l 
>> /Library/Frameworks/Mono.framework/External/xbuild/Novell/Novell.MonoDroid.CSharp.targets
>> -rw-r--r--  1 root  admin  1366 Sep 14 12:37 
>> /Library/Frameworks/Mono.framework/External/xbuild/Novell/Novell.MonoDroid.CSharp.targets
>>
>> Thanks,
>>  - Jon
>>
>> ___
>> Monodroid mailing list
>> Monodroid@lists.ximian.com
>>
>> UNSUBSCRIBE INFORMATION:
>> http://lists.ximian.com/mailman/listinfo/monodroid
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] Windows 8 USB

2012-10-18 Thread Rodney J. Thomas
Thanks, I will try this. It's the only thing stopping me from using Windows
8.


On Wed, Oct 17, 2012 at 8:48 PM, Tom Opgenorth  wrote:

> I did have some problems too, turns out that I had to change Windows 8
> to allow unsigned/unverified drivers to be installed.  Then the Google
> USB driver worked. Here's what I had to do:
>
>
> http://www.opgenorth.net/blog/2012/09/25/windows-8-64-bit-and-android-debug-bridge-where-is-my-galaxy-nexus/
>
> On Wed, Oct 17, 2012 at 6:58 PM, Rodney J. Thomas
>  wrote:
> > I actually tried. I can't get the USB driver to load in Windows 8.
> >
> > On Thu, Sep 27, 2012 at 1:45 AM, Miha Markic  wrote:
> >>
> >> Did you actually try or just asking beforehand? Since Win8 is based on
> >> Win7 I’d assume no problems there but one never knows.
> >>
> >>
> >>
> >> Miha
> >>
> >>
> >>
> >> From: monodroid-boun...@lists.ximian.com
> >> [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Rodney J.
> Thomas
> >> Sent: Thursday, September 27, 2012 6:09 AM
> >> To: monodroid@lists.ximian.com
> >> Subject: [mono-android] Windows 8 USB
> >>
> >>
> >>
> >> Has anyone gotten the Google USB driver to work with Windows 8. I'm
> >> attempting to write an app to work with Windows 8 and Android so I want
> to
> >> do it using a Windows 8 PC.
> >>
> >>
> >>
> >> Rodney
> >>
> >>
> >> ___
> >> Monodroid mailing list
> >> Monodroid@lists.ximian.com
> >>
> >> UNSUBSCRIBE INFORMATION:
> >> http://lists.ximian.com/mailman/listinfo/monodroid
> >>
> >
> >
> > ___
> > Monodroid mailing list
> > Monodroid@lists.ximian.com
> >
> > UNSUBSCRIBE INFORMATION:
> > http://lists.ximian.com/mailman/listinfo/monodroid
> >
>
>
>
> --
> http://www.opgenorth.net
> ___
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] Unable to build portable library on OSX.

2012-10-18 Thread Doug
Right, this is now lodged here:
https://bugzilla.xamarin.com/show_bug.cgi?id=7905

~
Doug.

On Thu, Oct 18, 2012 at 11:13 PM, Doug  wrote:
> Incidentally I've tried this now on three macs; a mac book pro running
> mountain lion, a mac mini running mountain line and an imac running
> snow leopard with the same result.
>
> ~
> Doug.
>
> On Thu, Oct 18, 2012 at 11:10 PM, Doug  wrote:
>> Yes.
>>
>> Last login: Thu Oct 18 21:33:36 on console
>> dougs-Mac-mini:~ doug$ ls -l
>> /Library/Frameworks/Mono.framework/External/xbuild/Novell/Novell.MonoDroid.CSharp.targets
>> -rw-r--r--  1 root  admin  1366 15 Sep 06:32
>> /Library/Frameworks/Mono.framework/External/xbuild/Novell/Novell.MonoDroid.CSharp.targets
>>
>> Seems like the file date is rather old though, Sept 15, considering I
>> re-installed the runtime a few days ago, but I guess it's not uncommon
>> for installed files to have slightly unusual creation times, and yours
>> is dated Spet 14.
>>
>> ~
>> Doug.
>>
>> On Thu, Oct 18, 2012 at 10:14 PM, Jonathan Pryor  wrote:
>>> On Oct 17, 2012, at 11:36 PM, Doug  wrote:
 Is this a known issue, or something?
>>>
>>> I haven't seen it before...
>>>
 I saw this issue on bugzilla: 
 https://bugzilla.xamarin.com/show_bug.cgi?id=7173

 However, my issue is more direct.
 Clear copy of OSX mountain lion.
>>>
>>> I assume you mean "clean" copy...
>>>
 Install the android trial
 Create new solution
 Create new portable library project
 Compile

 Generates:
 /Users/doug/projects/droid/droid.sample/HelloWorld.Common/HelloWorld.Common.csproj:
 Error: 
 /Users/doug/projects/droid/droid.sample/HelloWorld.Common/HelloWorld.Common.csproj:
 /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets:
>>>
>>> Sanity check: does that file exist?
>>>
>>> $ ls -l 
>>> /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets
>>> -rw-r--r--  1 root  admin  1570 May  7 20:42 
>>> /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets
>>>
 Project file could not be imported, it was being imported by
 /Users/doug/projects/droid/droid.sample/HelloWorld.Common/HelloWorld.Common.csproj:
 /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/xbuild/Microsoft/Portable/v4.0/Microsoft.Portable.CSharp.targets
 could not import
 "$(MSBuildToolsPath)\Novell\Novell.MonoDroid.CSharp.targets"
>>>
>>> Further sanity check: does that file exist?
>>>
>>> $ ls -l 
>>> /Library/Frameworks/Mono.framework/External/xbuild/Novell/Novell.MonoDroid.CSharp.targets
>>> -rw-r--r--  1 root  admin  1366 Sep 14 12:37 
>>> /Library/Frameworks/Mono.framework/External/xbuild/Novell/Novell.MonoDroid.CSharp.targets
>>>
>>> Thanks,
>>>  - Jon
>>>
>>> ___
>>> Monodroid mailing list
>>> Monodroid@lists.ximian.com
>>>
>>> UNSUBSCRIBE INFORMATION:
>>> http://lists.ximian.com/mailman/listinfo/monodroid
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid