Android toolbar height difference - android

recently I started working with android toolbars.
I am testing on android version 4.4.4 and 5.1.1. I am facing that the toolbars height are different. I have been trying hard to find an answer with no luck. I can provide source code, if you need.
Thanks in advance and Happy Holidays!

I already recreated the project from scratch, so I can not provide source code. Maybe I forgot to add android:fitsSystemWindows="true" in my layout.xml.

Related

How to implement 'BottomNavigation' element in a nativescript application?

I have a working project written with angular nativescript, and now i want to add some tabs using 'BottomNavigation'. I looked in the documentation and it seemed pretty simple, but when i added the code to my project all of the tabs just overlayed on each other and i didn't saw any tabs, as if i just put the pages one on another. What am i missing? What should i do in order to use bottom navigation? I tried to create a new helloe world project and just add the bottom navigation but i got the same result. However, when i created a 'tabs' project it did had proper tabs.
I suspect its have somthing to do with the {N} version. I recently updated to the latest version (8.1.5) and there are a lot of troubles with it. Does bottom navigation still supported on this version? How can i make it work?
Well, i found the solution. In case someone in the future will face the same problem:
It is a version problem. Since version 8 you should add the package manualy as described here:
https://github.com/nativescript-community/ui-material-components/tree/master/packages/bottom-navigation#installation

ConstraintLayout doesn't match with the screen size

I just started my first Android Studio project and I already come with a problem :)
I search on google for the answer but didn't find my problem.
So I need your help please ^^
I download the last version of Android Studio, create a project with an Empty Activity and I came up with this
As you can see my ConstraintLayout is really small and I just can't work with this.
I didn't touch anything on the project. Just to be sure I create 3 projects that have the same issue and redownload 4 time Android Studio.
On the virtual Devices, it looks correct throw: Screenshot
I put the XML code just in case it can help
xmlcode
Hope I was clear and sorry for my English ;)
EDIT: For some reason, the constraint layout fit correctly on the watch screen, but I don't want to create a watch app x) screenshot_watchview
Ok so I have finally find the problem ! I'm so happy right now :D
The problem was the AppTheme theme that I use, I switch it with the DeviceDefault theme. I don't know why this theme was causing problem but now it work and I can finally work on my first Android App !
If you are using the supportLibrary 28+ then this thing happened to me too.
and when I change the support lib version to the 27, it works.
Maybe this is a possible bug in the support library 28+.
Changing the AppTheme works like a charm if you want to stick with the support library 28+ But if you still don't want to so Try using the support library below 28.

Android Studio 2.3.1 Component Tree and Palette missing

I updated Android Studio to 2.3.1. Now, when I´m trying to edit a layout through graphic mode, component tree and Palette are not visible anywhere. I have searched too much in Google and I have could not found something that solve the problem. Thanks for your time and attention. Excuse my posible poor english.
Try Restore default layout from window menu, normally you can use the shortcut shift+f12

Xamarin xaml CoordinatorLayout

I am working for the first time since a while in VS with Xamarin and I am trying to add material design to my app. I added the references to my project (Xamarin.Android.Support and dependencies).
<android.support.design.widget.CoordinatorLayout
..........
</android.support.design.widget.CoordinatorLayout>
and
<android.support.v4.widget.DrawerLayout
.......
</android.support.v4.widget.DrawerLayout>
On both I am getting the message:
element is not declared
Do I miss a dependency? I used the xamarin guide & google dev as to get what might be missing.
Maybe someone faced the same issue?
Maybe this can't help you, but what i do when working with layouts in Xamarin and face a problem is copy and paste that layout in an project in Android Studio just to saw if it renders without problems.
Xamarin layout engine won't work with all kinds of available elements.

android material design issue

i am trying to solve a issue for last 1 week. i am not sure what is wrong with the code.
i am trying to use this library https://github.com/rudsonlive/NavigationDrawer-MaterialDesign
I can able to compile and run the code
the issue is ,there is big difference in the display quality
clearly we can notice the font is completely not matching.
please help me to resolve this.
You should use Android Design Support Library to achieve this.
It's quite easier and will surely fix your problem.
Check this official sample to learn how to use this:
https://github.com/chrisbanes/cheesesquare
Omg i cannot believe it. the actual problem with me is eclipse.
I use android design support library and all other needed libraries.
i only can manage to run the project but when i imported the project using android studio everything is working fine without any additional work.
dam it.
any one tired with eclipse ?

Categories

Resources