The android studio changes the background of button - android

I have a problem with my Floating Action Button. I want to get the same "plus" button as in google design, however, when I import the "add_white" icon from material design studio and put it into project, it is redefined to have black background which completely distorts the effect.
I show on the attached picture how the problem looks like - the image in all possible dimensions is correctly inserted in the folder, however, the android studio reads it differently.
Thank you in advance,
Grzegorz
How to fix it/ or just get the proper "cross/plus" sign to the button?

I'd recommend you to download the icon in svg format from https://design.google.com/icons/#ic_add, you can add it to Android Studio by doing a right-click on the project and selecting Vector assets, you'll be able to remove your 5 ic_apps_white_48 pngs and use the one imported.

Related

My Android studio Drawable Resource Folder Imports in a very crowded manner

I'm currently following a tutorial, Currently, it is required to import multiple images drawable folders for different densities by simply copying and pasting it to android studio
picture of the Folder from which we import the images
Image of the tutorial after pasting
and This is Me after pasting
as you can see me pasting, Creates a directory for each image with the corresponding density
which makes the drawable folder very crowded, so am I doing something wrong ? or this is new in android studio ? because I remember an old project of mine which didn't import it like that, Thank you for your time and be patient with me
There is actually no problem. It is the view that you are using which is different. If you want yours to look like the on in the tutorial, you should go right to the top of that window (that shows you) and look for the android "face" or sign with the word "Android" next to it and an arrow pointing downwards and click on that android sign. A dropdown menu will open up and then you should choose the "Project" option option. Now your files will look like the ones in the tutorials.
Check this website if you are confused :
https://developer.android.com/studio/projects
You might be using Project View , try changing it to Android View.
You can find it on the top-left corner.

Remove Android app border with FireMonkey

I create an Android app with FireMonkey (10.2.2), but I don't understand why I have a top and right white border. I never added that to my app.
I started to create an example app, just a black form with a black TRectangle without sides.
I don't have to code anything, just design. When I compile for Windows, it's OK. I have this border only on Android.
I get this result:
You can download the example project here : Click Here to Download
I was having the exact same problem when adding a TStyleBook, but I found a workaround. The steps are the following:
Click on the form (I've done it in the Master view, of course)
Go to the Properties tab, then open Fill > Color
Choose your desired color, you can copy it from the style you imported for the TStyleBook (In my case it was: #FF2B3840 from the backgroundstyle setting in the style)
Within Fill also change the Kind to the value Solid
Basically, this workaround is about manually overriding the inherited style from TStyleBook. I know this is not ideal because it's a hardcoded value you'll have to keep track of if you ever change styles at runtime in your app.
Source link #1: Click here.
Source link #2: Click here.
Source link #3: Click here.

Is it possible to set image background in android studio editor?

I wanna customize android studio editor background ,So i want to set image to editor,Is it possible ,Is there any option perform that.?
IntelliJ IDEA allows you to define any image as a background. So doing, you can set a background image for the current project only.
1.To set a background image
Do one of the following:
Press Shift twice ..
2. In the dialog box that opens, specify the image you want to use as the background, its opacity, filling and placement options. Besides that, you can choose to show background in the editor and tool windows, or in the IntelliJ IDEA frame
for More detail source is : https://www.jetbrains.com/help/idea/2016.2/setting-background-image.html
Yes, you go on Android studio and open setting
You get appearance menu and their first subMenu you click and get a background option you can click and use wallpaper as your wish....
With the new Android Studio 2.3 Canary build you can do it,
check http://tools.android.com/recent/androidstudio23canaryavailable
IDE: We've upgraded the base IDE from IntelliJ 2016.1 to 2016.2, which
adds a number of new features -- ligatures, breadcrumbs, editor
background images, revamped UI for inspections, notifications and the
debugger, and more.
However you should also check How to change or add theme to Android Studio?

Android Studio Adding image asset not working

I'm trying to add an image in Android studio by right clicking on the drawable folder->new->Image Asset, I add an Action Bar and Tab Bar icon with a custom image and I click finish and it looks like its doing something but nothing appears in the drawable folder. I'm also unable to reference the new image name in any xml. What's funny is if I go to re-add this image, it says the image already exists and it will be overwritten. Am I doing something wrong?
I create a new project with Android Studio and generate image asset in the new project. It begins to work. I don't know what's wrong with the previous project. Hope it also helps for you.
As #Varun said, Before click on Finish, check save path by click on "Next" button.
TLTR: fix any other icon type you touched before.
In my case it was because of wrong path to foreground image path (the source image was deleted):
So even after changing the icon type the error does not disappear (buttons are disabled):
So fix other icon types.
In Background Layer set Asset Type to "Color"

Floating action button android change icon

I followed a template on android studio to create a navigation drawer app. As you know it creates an initial activity with a floating action button and the email icon in it. I just want to change it to a plus sign. Here is the problem. It turns out there is no plus sign available as the ones I can see in every single example ( There is just one I can use but then the plus sign color is green, and I want it white! ).
I followed this steps how to download Material icons , I get the icon ic_plus, and I put every single file in its correspondent folder ( drawables, drawables-hdpi... ).
Problem is when I try to use it here:
The name turns red as it can't find it. As I said, I copied all files one by one to its correspondent drawable folder. I even tried this drawable importer
but the same happen.
What am I missing? And why plus sign icon it is not shipped as default icon, as for example the e-mail icon is, as I can see it in every single app using floating action button? I use Android Studio 1.5. Thank you!
EDITED
Looks like images are correctly placed in correspondent folders because if I try to use it on menu bar, I can find it through #drawables/ . Still don't know why I can't do the same for the floating action button. Ideas?
Put your image in the drawable folder.
Use the design editor and when you click on the FAB scroll down to the src and click that little square button with 3 dots on the right side to pull up all your options. You should be able to search for the name of the icon you uploaded and select it from here.
I tried to type in my file name using text editor and it couldn't find my image either.

Categories

Resources