I have integrated a text-chat-sample application in my project.
I want to change the design of the text-chat layout. For this I have to change the design in text-chat library. I have changed it but the application is unaffected.
Are there any steps I need to follow in android studio?
I have checked it and tried to change the design in the library but it didn't take any changes which I have made.
So for solving this issue, I have copied all the required resources like Java class, XML files into my project.
Then I have made UI changes over there and it works perfectly.
Hope this will help you too ;)
Related
i am trying to solve a issue for last 1 week. i am not sure what is wrong with the code.
i am trying to use this library https://github.com/rudsonlive/NavigationDrawer-MaterialDesign
I can able to compile and run the code
the issue is ,there is big difference in the display quality
clearly we can notice the font is completely not matching.
please help me to resolve this.
You should use Android Design Support Library to achieve this.
It's quite easier and will surely fix your problem.
Check this official sample to learn how to use this:
https://github.com/chrisbanes/cheesesquare
Omg i cannot believe it. the actual problem with me is eclipse.
I use android design support library and all other needed libraries.
i only can manage to run the project but when i imported the project using android studio everything is working fine without any additional work.
dam it.
any one tired with eclipse ?
When I open up my android studio, I do not see the image of any device in design view. Rather, an error shows up. I know there should be a device where we can do some drag and drop for GUI. How can this rendering problem be fixed?
You need to change the Theme. There's the AppTheme tab if you can find. Change it to something other. Many other themes are available and will have different design schemes. Choose from them. The issue will be gone
Add the resources in a library project as per http://developer.android.com/tools/support-library/setup.html
>Section > Adding libraries with resources
You then add the android-support-v7-appcompat library in your workspace and then add it as a reference to your app project.
I'm not sure if its the right title but ill explain what i mean.
I'm making more than one android application, but they have the same structure
sliding menu , list view , about me , costume dialog with (copy,share,like)
with some modifications in the styles (colors, backgrounds , fonts , menu strings )
my qustion is : is there any way to use the structure as library or implemntation or anu other way
insted of coping the same codes in every projects ?
Basically what you want to do is to create an Android library. Just develop it like a normal application, with Activities and layout.
Please follow this tutorial to set up your project. http://www.vogella.com/tutorials/AndroidLibraryProjects/article.html
When you'll create a new project with the given library, all your code will be silently included and you'll get access to your Activities and even to your R class.
Try Android studio - Official IDE for android development. Simple to use.
There is an option to save your project as template. Tools > Save project as template
For eclipse I think you need to write plugin https://stackoverflow.com/a/4992150/3020568
I have already created an phonegap android project and it is working fine, now i would like to create same kind of project againg. Might it would be more than 5 apps, so i thought making it as library.
I have make the project as library and created a new project with different package name. Change the launcher activities name to the libraries launcher activity name. But now the issue is application error is happening, cannot load the index.html file.
So i think the way worked on is not the proper one, can anyone please help me to solve this problem.
you have to assign your initial android project as a library. right click the project, pick properties, then go to android, tick the "is library" box and apply
For your new projects, you need to "add" the project before as your library as the image above
My Android app uses a library project which i've imported in Eclipse. So far everything works great. But now i try to change the library project (String.xml and the interface). I can see both changes in the graphical layout editor, but in the main app it doesn't changed.
I allready tried, restarts, cleans, remove and add again, nothing works, any ideas?
Thank you!