Android Studio shows code suggestions, but not all available codes are in the suggestion.
For example, layout_alignParentLeft will not be suggested, however, the documentation still shows it is a valid code.
Is there a setting that enables Android Studio to show all available codes?
Probably the parent of yourview is a ConstraintLayoutwhich doesn't have the attribute layout_alignParentLeft.
Try with a RelativeLayout instead and then you will see layout_alignParentLeft into the suggestions.
Related
I'm new in xamarin and I wanted to put my TabbedPage in the bottom in Xaml by using this tutorial:
https://learn.microsoft.com/fr-fr/xamarin/xamarin-forms/platform/android/tabbedpage-toolbar-placement-color
Then, when it didn't work, I tried to rebuild the project like suggested in this stackoverflow question:
Where can I find ToolbarPlacement attribute of TabbedPage?
I saw some people using a old nugget package, but I don't really want to use it, especially if there is a native way of doing it.
Xamarin forms version : 4.1.0.555618
Android version : 9
I hope there is someone that have the same problem as me,
Thank you in advance,
halonico,
Setting the placement and color of the toolbar on a TabbedPage, you just add the following code:
xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core"
android:TabbedPage.BarItemColor="#666666"
android:TabbedPage.BarSelectedItemColor="Red"
android:TabbedPage.ToolbarPlacement="Bottom"
Although there are still many mistakes, you don't meed to worry about these, you try to clean your project, then build your project directly, you will see it works fine.
I am new to android development. Also new in using android studio.
And when I started to create a new project, the content_main.xml and does look like this
But not to other xml
And here is the output
How can I even edit the layout, when I can't see it. Also when i drop anything from the palette, I cannot see it.
Try to change the android version to some lower in xml.
Change from 28
Do not use content main. It is for including inside activity_main.xml. Make everything inside your main layout and finnaly you can see the result.
And don't forget that ConstraintLayout needs constraints for all elements.
First of all read about other layouts and learn how to use them.
I'm using androidx.constraintlayout.widget.Group in my androidx.constraintlayout.widget.ConstraintLayout to set the visibility of the entire group.
This works fine for a normal app but as soon as I run the same code as an Instant App it breaks and visibility is not applied.
Logcat posts an error like W/ConstraintHelper: Could not find id of "divider" for each view I've added to the group.
Is there any known bug / workaround for this?
It seems like there is a workaround: https://stackoverflow.com/a/54961700/2170109.
Thanks to #TWL pointing to it.
PS: I didn't test it since I moved to compose.
what i wanna do is when they click the Rate button it brings up the 5 stars for them to rate but i am getting this Attribute value expected error.
need 10 rep to post images so imma just give link to image.
Error : http://prntscr.com/7iiy1k
...what i really want is a personal helper. Teamviewer or share screen on skype and help me out with this... i just need a boost. i am experienced with Visual Studio just need help with Android Studio.
Thank you.
It seems you messed up your layout and visibility atrtibute is wrongly formatted. Change it to
android:visibility="VISIBLE, INVISIBLE, or GONE."
Not sure if you also need to add onClick since it's part of the mess
android:onClick="YourFunction"
New Eclipse layout editor for Android devices has a lot of new gui elements, is there are any tutorial on how to use it?
Updated: I was just trying to add HorizontalScrollView to layout, and don't see any feedback from a screen. Should I just use xml to edit layout, and use visual view just for verification?
The elements can be found in the android.widget package, so I would recommend to head over to
http://developer.android.com/reference/android/widget/package-summary.html
have a closer look at your GUI-element of choice and just try it out.
Or, alternatively google for example code snippets - I'm sure there is at least one for each element
The editor itself is very self-descriptional, but detailed informations you can only get by offering more details of what you really want do.