How to get custom keyboard to show in front of AlertDialog? - java

I am working on making a custom keyboard using this guide and it seems to work except when I try to use it for an EditText in an AlertDialog. I've tried setting flags as suggested in this answer but that does not seem to make a difference. Any ideas on how to make it show correctly?

Related

How to update content of the activity without creating new Activity?

I'm trying to make an app and I have made a blueprint for a specific activity, but I don't know how to implement it. The layout contains few buttons at the top of the activity, and each button features some information, which is displayed inside the view. The view which needs to be updated is present under the buttons. I don't want the activity to be changed, instead it should update the contents of the View, which is different for each category/button.
By doing some research I have realised that the "Tab Layout" can be used to achieve my requirements, but I don't want the tabs and I need some stylish buttons as a replacement.
I know I'm not the best at describing, so I have looked upon Dribble and found one design which is 100% similar to blueprint.
I want to achieve this using XML and Java using Android Studio! Every suggestion will be a great support foy my app.
Thanks a lot.
As far as I know, you could achieve that by using fragments (which is the same concept you would have used on TabLayout). I don't really know how much knowleadge you have on Android, but if you know what a Fragment is, it should be easy for you to recreate the idea.
You have 3 buttons for 3 different fragments, so you must design every fragment by separate and change it depending the button you click.

Android Spinner change arrow color

I have seen questions about this previously but none seem to work for me.
I want to change the color of the material drop down, as seen here
I want to make the arrow black.
I have tried making a custom drawable and using that with dropDownSelector but it didn't show the arrow correctly. I have tried adding it as a style and it didn't work either.
Any ideas would be great.
Thanks
I have encountered the same problem as well. But i had some focus problems, because Spinner was inside ScrollView. I have solved the issue by implementing ListPopupWindow.
Here is great example how to implement ListPopupWindow :

How to make a dialog but with the ability to set its content with a custom xml?

In my android app, I want to make a dialog box, the kind of one you get from alertbuilders, where you get access to set positive/neutral/negative button click, but I also want to use the .setcustomview() to load the content with my xml file.
Does android have a way to do this? I want to avoid making those buttons...
Thanks
I don't see a setcustomview() method for the AlertDialog.Builder class, but I do see a setView() method, if that's what you mean. :)
From my experience, using setView() will allow you to set your custom XML layout (though you will still need to inflate it first) without requiring you to recreate / add buttons to your layout. You just need to call the setXxxButton() methods before you build.

Display balloon tip in Android activity

I'm curious to implement a balloon tip to show info of different UI elements in an activity. How can I achieve this? On some little effort put to this (correct me if I'm wrong please) using something like canvas rectF???
It sounds like you're looking to create tooltip text. This isn't built-in to the View classes in android, so you'll have to create them or use a library like GreenDroid. This has already been addressed, see the following:
android how to make Tooltip for TextView
Android "Tooltip"

Entering a text in a dialog form

What I want to do is quite simple : to display a dialog form containing an EditText in which the user can specify a message.
So far, I have tried to use the DialogFragmentclass. With the explanations found in the developer's guide, I have been able to display an alert dialog box showing a message. But I can't figure out how neither to change the layout of the AlertDialog created to use an XML file of my own or to replace the AlertDialog with a customized class extending the View class for instance.
Am I missing something? Or am I completely on the wrong way?
Thanks in advance for the time you will spend trying to help me.
You absolutely can do this, even using an AlertDialog!
You just have to set a custom layout for the dialog, in AlertDialog you would use the setView method and if you want to use a more generic dialog you can use the setContentView method.
You can take a look at http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog for some more information and an example.
The example in the link provided is contrived without question but it is meant as a stepping stone towards a goal similar to what you are trying to accomplish.
There is a similar question/answer that might be of use to you.

Categories