`CalendarView` Is Displayed Differently In Android Studio Emulator & Mobile Application - android

I am creating a Appointment Application for an assignment, and for this I have to make a CalendarView in my android application. However when I run my application the design of the CalendarView that is shown in my mobile and the emulator ends up different. I want the CalendarView to show up in my mobile the same way it is displayed in the emulator.
This is how the CalendarView shows up in my mobile:
This is how the CalendarViewshows up in the emulator & design view in Android Studio:

In addition to Android itself changing the framework's CalendarView between versions, vendors can potentially modify it as well. For consistent behavior you can bundle your own. Square's TimesSquare is one reasonable option.

the theme of this widget can change from api to api
try to set a theme in the xml.
android:theme="#style/Theme.AppCompat.Light"

Related

Android Studio 4.0. LayoutInspector: how to open a few tabs?

This week I updated Android Studio till 4.0 version.
Its new LayoutInspector certainly has many useful features, it's great!
but in previous versions of Android Studio i had the opportunity to open a few tabs of different screens using layout inspector.
Does anybody know how to do it in Android Studio 4.0?
Because now in version 4.0 LayoutIspector has another view in separate window and no any tabs.
Thank you very much!
Finally i've figured out my problem.
In fact Live Layout Inspector of version 4.0 provides complete information about app's UI structure and hierarchy for emulator/device with API level 29 or higher.
But if you need the previous version's view of Layout Inspector, then you just have to disable Live Layout Inspector:
File -> Settings -> Experimental, and check the box next to Disable Live Layout Inspector.

Android app configuration set to rtl but conflict start with end

I'm using RTL in my android app every thing going well until i use Visa sdk
it change the layout direction
i think because they are using chrome webview client but i can't solve it

Android- bottom bar tab

Need to create an application in a below mentioned link format targeting all the android platform i.e. from 1.5 to 4.1
http://natieklopper.blogspot.in/2011/08/iphone-styled-bottom-aligned-tab-bar.html
Can I use tab activity class for the same? Know it is deprecated but still need to confirm if we use then will my application work on all android devices.
Not getting appropriate demo or example to start my application with fragments,action bar sherlock's tab.
Please suggest me a simple way to initiate my application. Really appreciate if some examples are available.
Your application will work in all android devices if they have a newer version than 1.5
Deprecated means obsolete, but you can continue using ;)

Android Widget Look and Feel Different When Running

I am using Eclipse ADT to develop my first Android application.
In Eclipse you can change the theme using the menu shown in the Graphical Layout window. I decided to use the Black theme because I like the way the UI components look using that theme.
One of my UI widgets is a seek bar. Here is how it looks using the Black theme:
When I test (run) my application using the Nexus S virtual device the seek bar looks different:
Why do they look different? (I am guessing that Eclipse is just showing me a preview of what that theme would look like and not actually setting it anywhere and that when I run my app it inherits the theme from the target platform.) Is there a way I can force the look and feel of my app?
Thank you.
Because the Android UI has evolved and changed. The first image you posted is Android 2.2 (ish) and then the second image looks like Android >= 4.0.
Secondly, AFAIK, changing the theme from that menu is ONLY for checking out the apps UI within the GUI layout editor - it will not change the theme on launch within the emulator, or a real device. For that you need to specify the theme within your manifest.
You can change the version of Android being used in the preview too, using the Android icon on the far right of the GUI editor. You can also preview more than one at a time using the far left icon on the same toolbar.
What Rawkode said.
I'll add my two cents:
You can take a look at the HoloEverywhere project if you want to have a consistantly looking application across all Android versions.
The project is essentially a backport of the Holo theme for Android pre 4.0.
You can check it out here:
http://www.holoeverywhere.com/

What theme does the Xamarin designer for Mono for Android use?

When using the designer for Mono for Android in Visual Studio,
the controls have a nice clean design but as soon as you run the app on a device (emulator or real)the controls have a completely different style:
Is this because the designer uses a specific theme, if so which one,
or is there something else I have to do to get the same style on the device as in the designer?
You probably have the default theme set to Theme.Holo.Light in the designer. In the upper-right of the designer, you will see a button that allows you to select the theme. See the screenshot below.
If you need to change the theme to Holo light or just Holo, reference this post. You will need to make some themes resources and update your application manifest.
This normally happens when your Target Framework is set to Automatic - it will drop down the lowest theme it can use, you will want to change that to API 14/15 to pick up the "Halo" theme from within Android

Categories

Resources