Comments (4)
I'm also getting this error in Eclipse.
from flatui.
I was able to fix this problem by editing the Attributes class. I changed the setThemeSilent and setTheme methods and added a method:
public void setTheme(int theme, Resources resources)
{
this.theme = theme;
try
{
colors = resources.getIntArray(theme);
}
catch (NotFoundException e)
{
checkNullColors();
}
attributeChangeListener.onThemeChange();
}
public void setThemeSilent(int customTheme, Resources resources)
{
this.theme = customTheme;
try
{
colors = resources.getIntArray(customTheme);
}
catch (NotFoundException e)
{
checkNullColors();
}
}
private void checkNullColors()
{
if (colors == null)
{
colors = new int[4];
colors[0] = Color.parseColor("#ad843d");
colors[1] = Color.parseColor("#d4a14a");
colors[2] = Color.parseColor("#fbbf58");
colors[3] = Color.parseColor("#fae8c8");
}
}
When viewing the UI through the UI builder, Eclipse isn't able to find the request integer array using the resources, so it throws a NotFoundException. Whenever this happens, we make sure the colors are being set using the default color scheme for the sand theme. This is not an ideal solution because it means we can't view other themes in the UI builder, but it does allow us to edit the positions of elements on screen.
from flatui.
I fixed this issue but didn't update the repository yet. Thanks @u3amar for suggestion. I'll close the issue and comment when the repo is updated.
from flatui.
This issue is fixed with version 2.0.1
from flatui.
Related Issues (20)
- Support New Components HOT 4
- Flat Ui in Android using Android Studio HOT 3
- Documentation - Samples HOT 5
- How to use in Eclipse HOT 3
- The following classes could not be instantiated: HOT 4
- Can we changing color? HOT 1
- Error:Gradle version 1.10 is required. Current version is 2.1 HOT 1
- Runtime exception when using FlatUI on Android 4.0.4 HOT 1
- how to use in android studio HOT 1
- RENDERING EXCEPTION - "#HEX" in attribute "fl_theme" is not a valid format. HOT 1
- Integration with Listview
- Support for CheckedTextView
- StateListDrawable inflate exception for FlatSeekbar
- Incorrect colors in deep theme
- How to change the background color for FlatEditText HOT 1
- Cant resove method getActionBarDrawable(int,boolean) HOT 1
- Attribute Errors Occured, unable to find attribute.
- edit text seterror is overlapping textbox
- flatui:fl_theme issue
- Is this project active? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flatui.