I am trying to build my first Android app using Android Studio and Firebase. I have it all connected and it is showing the content from the database and images from the firebase storage just fine. The problem is, for some reason my text isn’t showing up that I added into the xml. At the bottom of the post there
Tag: android-layout
Inserting imageview inside edittext android
I want to place imageview inside edittext. Would it be possible? I checked “evernote” application, and it was able to put photo on the edittext part. I want to make my application exactly as same. How would I be able to put imageview that was chosen from the gallery, and place the photo inside edittext? I first tried to put
In for each loop i want to skip “, ” in last iteration
I want to skip printing “, ” in last iteration. I want output like name, name, name Output now i am getting is name, name, name, Answer You can append the comma before you append the name. Like this:
Hiding ‘Bottom Navigation Bar’ whilst keyboard is present – Android
I have a small demo chat UI application. This application has a bottom navigation bar. I need the bottom navigation bar to hide when the keyboard appears. Here is an example of the chat UI As you can see when you click in the EditText element, the keyboard appears but the bottom navigation bar stays visible. I have tried methods
android.support.v7.widget.AppCompatButton cannot be cast to android.widget.LinearLayout
I’m developing an app and I had some errors. When I run on the tablet it gives this error, but when I go to mobile it works perfectly. I already tried to clean and rebuild and tried to reboot the computer but I’m still having errors. See the code below: XML And the others linearlayout is the same, the error
How can i remove unnecessary top padding in cardview?
I managed to implement Cardviews in my app, but the cardview show an unnecessary padding in the top. What i want to achieve is to get a header image like this : Here’s my cardview Layout file : This is the code of the RecyclerView : android:layout_height=”match_parent” android:padding=”16dp”> I manage to change the attribute cardUseCompatPadding but that not affect the
View’s getWidth() and getHeight() returns 0
I am creating all of the elements in my android project dynamically. I am trying to get the width and height of a button so that I can rotate that button around. I am just trying to learn how to work with the android language. However, it returns 0. I did some research and I saw that it needs to
Android floating view (over other views)
I’ve been messing around with this for a few days now, hopefully someone here can lend me a hand. I have a simple two-column layout, the left side is a navigation bar with buttons, the right side is …