[Q] Stacked Bar Chart using achartengine library - Java for Android App Development

Hi,
I am developing an android apps that deaI with charts. having problem to display chart values alignment for stacked Chart using achartengine library. I want it display at the top the bar 20,20,20 but for now it the values are overlapping each other till can't see properly what is the value.
I have attached the chart that is displaying in not properly suppose to display.
I hope anyone of your expert will able to help me.

Related

Android Expert Required

I want to develop an app that puts a white line grid on a black background.
The grid has 3 columns and 3 rows
There is a 10% border around the grid.
The first column takes up 50% width
The second column takes up 20% width
And the third column takes 10%width
None of the columns expand or contract, they always stay the same size.
Each row is the same height.
If you click any cell, a keyboard appears on the screen allowing you to input data into the cell.
Is it possible to do this white line grid in Android?
If yes, how does one do it?
Best regards
RedTopBox.com
anyone know
Hi All
i have not received any replies.
Can anyone help please
I think it is possible. Do you have a fixed number of rows? is it small? if yes, you could directly use LinearLayout with orientation set to horizontal for each row. There you have android:layout_weight which you can use to play with the different widths you have. For the table borders, just add a View, with a background color of your preference, again use layout_weight if necessary.
If you have too many rows, or you would prefer another approach, you could use TableLayout, and for each row a TableRow, and in the same way use layout_weight for the width. For drawing the borders you could do it in this way: http://www.droidnova.com/display-borders-in-tablelayout,112.html
TableLayout has different parameters like shrinkColumns, or stretchColumns, which you will probably would need, but I am no expert on this, so you would need to play with them.
For displaying a keyboard when the user press on each element of the table, you could have a editText on each, so this would be automatically.
BTW I recommend you asking this type of questions in stackoverflow.com, and tag it with android, there should be more capable people than me to help you with this particular case.

Maximize screen usage in Adobe LE?

I think I may have changed my Adobe Reader LE a bit. I seem to remember not having gray margins on the left/right (using Fit Width). Also the right black vertical position indicator has a wider white stripe that goes all the way down. I didn't think vertical white area existed before and it was just the black position indicator.
Am I imagining things? Or maybe I changed something?
(Also, when I use Sense documents and click on a pdf, it just opens Adobe but not the file. How do I fix this? I assume it's a file association issue.)

Ball game - chaning ball position

I am making simple ball game and l have problem.I can't change position of Ball. I tried:
1. SetX() and setY() but lower APIs aren't supported.
2. Params and margins but when I move it left or right, the whole activity content is moving with it. Up and down moving is working fine. (Activity will have 10 ImageViews)
3. Android animations - Problem is that I can't get coorinates (getLeft(), getTop()) during the animation.
4. Canvas and draw elements - I change position of image with onDraw() and invalidate() functions but when I but backgorund and all other images (as bitmaps) it is very slow.
Can you give to me any ideas or suggestions? Thanks in advance.
Can you post the code? What do you exactly want to be done, there can be many different "ball games". You want to change the position of a bitmap or circle on the screen create x and y variables, draw bitmap or circle using them and if they change, the object will be drawn elsewhere

Android Sliding Tabs Fill Tab Strip Question

Hello! I have recently gotten into Android development and am really enjoying it so far.
On my current project, I am using the base framework for a sliding tab layout from developer.android.com/samples/SlidingTabsBasic/index.html
I have attached images of what my app looks like now.
As you can see, the tabs on the top don't fill the entire bar. I imagine I need to dynamically set the padding between titles on the slider bar but I am not sure where I would do this. Does anyone have experience with this or could recommend a better way to do this?
I'm just getting started with Android development, so it's likely that what I think isn't the best solution.
But couldn't you just use a linear layout and give all tabs a weight of 1?

[Q] Progress Bar Stairs

Hey @all,
i'm just getting started with developing Android Apps. Therefore i have a question, for designing my GUI. Maybe there is a possible build-in widget, but i don't have the right wording to find it (English is not my native language).
I'm looking for something like the Rating Bar, where you can select a value between 1 and 5. Instead of the stars, i'd like to have some bars (the left one is the smallest, the right one the highest). Should look like the "Stairs" within a Signal strength notification. To make it a bit more challenging i'd like to have different colors for every bar (least value is green, highest value red). Therefore i don't think that the Rating Bar with different drawings will fit my needs, because afaik i could just change the star layout, not like the first star should become a 5dp bar, the second a 15dp and so on.
Is there any build in widget i could use?
I attached a picture to show my idea.
I hope you can help me
Additional Information: I like to develop for min API 17
fighterii said:
Hey @all,
i'm just getting started with developing Android Apps. Therefore i have a question, for designing my GUI. Maybe there is a possible build-in widget, but i don't have the right wording to find it (English is not my native language).
I'm looking for something like the Rating Bar, where you can select a value between 1 and 5. Instead of the stars, i'd like to have some bars (the left one is the smallest, the right one the highest). Should look like the "Stairs" within a Signal strength notification. To make it a bit more challenging i'd like to have different colors for every bar (least value is green, highest value red). Therefore i don't think that the Rating Bar with different drawings will fit my needs, because afaik i could just change the star layout, not like the first star should become a 5dp bar, the second a 15dp and so on.
Is there any build in widget i could use?
I attached a picture to show my idea.
I hope you can help me
Additional Information: I like to develop for min API 17
Click to expand...
Click to collapse
I think your best bet would be to make pictures (drawables) to use inside of an ImageView widget. You would need to draw every possible outcome or picture that the user will have displayed to them. Then depending on what you want done, set the drawable to imageview.
Here's a very brief example (Sorry, typing from phone):
ImageView imgView = (ImageView) findViewById(R.id.my_image_view);
If (outcome1) {
imgView.setImageDrawable(R.drawable.my_rating_bar_green1);
}
Something like that should work for you.
______________________
Root it and boot it!
Current device: Sm-n900p/Sprint Note 3
ROM:AICP ROM
Service: Straight Talk
Check out my apps on Google Play

Categories

Resources