Android Font Selector GUI not available in Xml design - android

Am using android studio 3.3.
Am trying to design my activities in xml and i want to change the font family.
There used to be a fontFamily option where i can choose a custom font from android studio GUI.
Am missing it.

Here is URL how can you download the available fonts which provides Android Studio.
And here the doc.
Otherwise, you can set the typeFace programmatically URL

Anyone facing this, apparently after using android studio for a couple of days, the font option was automatically added to the GUI. I don't know how.
Probably those are things android studio downloads in the background for a while.

Related

Is there any way to display all fonts that are present in android studio by default?

I'm trying to display all the fonts that are provided by android studio by default, like
I want to get all these fonts that are provided by Android Studio and display them in recyclerView.
Does any one know, how to do it?

How to force Android app to use specific, custom font and to ignore device settings?

I have recently added a custom font to my Android project in Android Studio (following these instructions). This is not a regular font to show text but a custom font containing a large number of icons which are used all over my app.
This works fine. However now some users reported the problem, that on their devices only some icons can be used, while many other icons are shown as characters instead. All users have in common, that they have configured a custom font/theme in their device settings which seems override the app styles. Thus instead of my icon font the app now uses the device font which of course does not include my custom icons...
As far as I found out this option is not a native Android feature but is implemented independently by different devices manufactures. Since I have no such a device, I cannot reproduce or test this problem.
Is there any way to skip these device settings and force the app use my custom font?
EDIT:
This is how I added the custom font to my project:
Created a new fonts folder in res/ and put my font files there
Use android:fontFamily="#font/my_custom_font" on TextViews, etc.
done
This is then overwritten by the system settings on some devices (e.g. by the Huawei Design Manager). Can this be avoided?
Put your font in the res/font folder and reference them in your TextView in case you need a specific one with the android:fontFamily attribute.
For the whole app put
<item name="android:fontFamily">#font/your_font_name</item>
In
styles.xml
Source : Youtube Video

Xamarin axml, xml Intellisense not working

I started using Visual Studio 2017 Enterprise Edition with Version 15.7.4. and Xamarin Version 4.10.0 and need to work on Xamarin native android application.
But Auto fill suggestions not coming in xml and axml files. Intellisense working for widget names(Like TextView, EditText etc.) In layout axml files. But, for widget properties (Like android:layout_width, android:gravity etc.) it isn't working. Where as in styles.xml, menu.xml suggestions not coming at all. I check with following ways.
1) XML - Schemas > android-layout-xml.xsd and schemas.android.com.apk.res.android.xsd files are exists
2) File opened as XML (Text) Editor
3) I didn't find Resharper in Tools
Also, Is there any way to change Xamarin keyboard shortcuts to Android Studio or Eclipse?
Being a Xamarin developer for almost two years I have come to terms with the fact that the Xamarin Android intellisense has never worked as it is expected.
It has a lot of bugs and issues (Links below) which have made it a real pain in the neck, But there are workarounds which you have already mentioned above and if those do not work for you trust me nothing will.
https://forums.xamarin.com/discussion/118384/android-designer-does-not-work-well
https://forums.xamarin.com/discussion/125879/designer-not-loading-layout-at-all
https://forums.xamarin.com/discussion/76851/visual-studio-2015-android-designer-not-working
https://forums.xamarin.com/discussion/82082/android-designer-not-working-in-visual-studio-enterprise-2015
https://forums.xamarin.com/discussion/6258/android-designer-doesnt-work-in-vs-2012
https://developercommunity.visualstudio.com/content/problem/99268/xamarin-android-designer-not-working.html
My suggestions:
Android studio provides you with a very strong designer and hence I would simply suggest you use Android studio to write down your XML and then just copy paste it to your Xamarin AXML/XML files and it should work like a charm, Same can be done for any other time of files such as strings or styles XML.
For changing the visual studio shortcuts you can simply check the following guide

button color not changing android studio 1.5.1

I’m unable to change the color of button in android studio. When I edit the .xml file, then in preview it looks exactly like what I want.
But when I build the code and run it in my phone, then it has no effect.
Also button color is different than usual in mobile
Check if you have not more xml files of same name or you may be doing changes in landscape xml file
The emulator can be very finnicky depending on what version and device and hardware you have. Make sure that the theme you are using in the preview window in android studio is also set as the theme in the androidmanifest.xml file. If you want to know for sure what your app will look like, build the apk and put it on your phone.
I hope some of this info helps
Happy coding!

Mono for Android - Layout Designer Issue

I'm using Mono for Android 4.2.4 with VS 2010. The layout designer does not refresh properly if you change the theme, API version, orientation or device name from the designer toolbar. MonoDevelop works fine.
Is there a resolution for this?
I have not seen one. There are other issues as well, if you modify a xaml file and change widows without saving it, your changes will disappear! While Monodroid is an awesome tool, there are still a few bugs

Categories

Resources