MvvmCross error dialog in android 7.0 - android

I'm working with Xamarin.Android and use MvvmCross framework to development. My project working fine on android version bellow android 7 but when running on android 7 it has a problem: When I running app, it auto display a white dialog with empty message and just have a button "OK". I checked this bug and find that extend MvxAppcompatActivity is reason of issue. I want to fix this bug. Please help.
Thanks!!!

Probably your dialog with empty message, shows you an error message, but because of incorrect styles configuration, it looks like empty.
I had similiar problem, with 7 version of android with dialogs.
Fixed this problem by setting accentColor in your application style theme.

Related

Android text and design

All the videos I watch have a text and design tab, but mine doesn't.
I found this on the internet:
Base.Theme.AppCompat.Light.DarkActionBar
but it didn't work on mine
how can I fix it?
you can switch tab mode using those buttons
"split" view is a relatively new feature to Android Studio. You can read a little about it
here.
You may be using an older version of Android Studio. Be sure that you install the latest version for this feature to be enabled.
Base.Theme.AppCompat.Light.DarkActionBar is related to your app's styling, not the IDE. It isn't really relevant here.
enter image description hereits 3.6.2 i just download it today

Layout broken by instant app API?

I am working on an instant app demo app. I used the default template which I extended with a RecyclerView and a custom adapter. My problem is that my layout is totally broken:
As you see the toolbar is the same, but something does not work correctly regarding the coordinator layout. The floating action button is missing and the navigation drawer is not displayed below the system UI (the notification area) and yep of cause the menu is empty.
The both screens are debug builds so proguard is not messing anything up (I got also release working with proguard, but of cause I still have the same issue). On the left is the result of the gradle task :app:assembleDebug and on the right :instantapp:assembleDebug.
Since I use except of the recycler view the default template for this app I add no code, any idea why my layout is broken in instant apps?
Please follow these steps and you should be good to go!
https://developer.android.com/topic/instant-apps/getting-started/first-instant-app.html
Note : Please select Navigation Drawer Activity in Step 8
From the shared image, it looks like you have modified some code from the default Navigation Drawer Activity for your IA. If yes, please share the code to investigate.
Also, let me know the device/emulator and the Android studio you are using. I was not able to reproduce the issue with Studio version 3.0.1 on Nexus 5x (Android version 8.0.1). Following is the image of the instant app from my nexus 5x with 8.0.1 build. Let me know if I am missing something!

Eclipse activity_main.xml and my test phone is showing different theme Android

I met a problem here.
I just started an empty Android project and changed the theme to #android:style/Theme.Material.Light. The theme does not change in Eclipse rendering preview but does change and shows correctly on my Galaxy S6 test phone.
Anyone give a solution. Thank you so much!
In Android Studio in the design of XML file you will see theme selection as shown in below image.
For Eclipse:
Click on and select desirable theme for your Activity.

xml error in Eclipse after updating Android SDK Tools

This is the error I'm getting in my layout XML files:
error!
NotFoundException: null
Exception details are logged in Window > Show View > Error Log
The following classes could not be found:
- TextView (Change to android.widget.TextView, Fix Build Path, Edit XML)
This happened after updating my SDK tools in Eclipse. However, I can still compile my code, I just can't see the graphical part of my layout.
Recently, I also added the RootTools library, could that also be the cause?
Thank you!
I had the same problem. And it turned out to be a very strange thing.
In my strings.xml file I had a line
<string name="email_seperator_char">\#</string>
And this was causing the problem. Even if I use the escape character for # sign preview was not working after SDK update.
SOLUTION:
I just added a space in front of it and voila, it worked.
<string name="email_seperator_char"> \#</string>
I know it is strange and it may not be acceptable for some apps to have an space infront of it. But that was ok for my app. Hope this helps.
And in design mode, in graphical layout, you have a new icon, (android icon), click and select 8 minimum.
I'm not sure it helps in your case, but I found out what was the problem with mine. To support older Android devices, I lowered my project build target to API level 7 (Android 2.1) from the previous value of API Level 8 (Android 2.2).
There might be an issue with the 2.1 layout renderer, it kept crashing on my TextView's property android:textAppearance="?android:attr/textAppearanceMedium". Even when I removed it, rendering was working but had a strange appearance (grey background, tiny black text). Switching the API level back fixed the layout editor straight away.
To change it, go to your project properties, select Android on the right, then tick the box next to your desired API level under Project Build Target.
I ve got the same issue just a minutes ago, try to lower the API level, press the andorid green icon in the layout editor screen and on the dropdown menu select API 7. I think it would be work out.
I've been having similar issues. After reading a number of these posts, I've found that there is probably a bug in the layout renderer for Android 4.0.3. An error message is listed (ROOT
Exception details are logged in Window > Show View > Error Log) even when all parts of the project are set to Android 4.0.3 and SDK 15.
If I set the layout renderer to Android 2.2 and leave everything else set to Android 4.0.3, SDK 15, then it all appears to work just fine.
I hope this is useful.
there is something wrong in your TextView
one time I wrote this which cause the problem
android:textAppearance="#android:attr/textAppearanceLarge"
the Eclipse can`t tell that is wrong but the design view crashes,when I realized that,I change # to ?
android:textAppearance="?android:attr/textAppearanceLarge"
then all comes to normal

Icon not showing up in 2.3.3?

In 2.2 there is a generic dialog icon (ic_dialog_generic). I used this in my program by accessing android.R.drawable.ic_dialog_generic. It shows up in 2.2, however when I tested it on 2.3.3, nothing showed up.
So I copied the drawable to my project and accessed it by R.drawable.ic_dialog_generic. Once again, it shows up in 2.2 but it still does not show up in 2.3.3.
It seems there was a change with context menu styles? Any idea?
Duplicate question of Dialog icon missing in 2.3
Looking at the 2.3.3 source, this icon is definitely not there. This illustrates why they keep warning us to copy the built in images to our own projects.

Categories

Resources