[Q] Working with navigation drawers, android development - Android Q&A, Help & Troubleshooting

Hello
So, I'm a complete N00b on android development and java and want to work with a Navigation Drawer.
I'm using the template, yet I don't know where to define if an item (button, text field, anything) should be in tab 1 or tab 2, main activity's xml places it in both of the tabs.
I'm using android studio.
If there's anything you wanna know, just ask it.
Luke

Related

[Q] Automating text entry using android 4.2 gesture keyboard

Hello,
I am new to the android development platform and working on a project to write some test comparing some of the different gesture keyboard implantations (android 4.2 built in, swipe and swift key).
I am using eclipe for my IDE and relying primarily on the emulator for testing. I am using the 4.2 gesture keyboard from here (http://forum.xda-developers.com/showthread.php?t=1964663).
What I would like to be able to do (starting with android 4.2 built keyboard).
1. Pass a string in, for example “hello” and then have that string entered using the gesture keyboard.
2. Get the words shown in the Candidates View box.
3. Compare the words to an expected word and return pass/fail depending on if the words returned from Candidates View were what I expected.
4. Store passed in word and returned suggestions in a log file for analysis.
Ideally I would like able to use API’s only for this and not reply on UI but I am not sure if this is possible.
Some possible solution I am looking at.
Use TouchUtils class (http://developer.android.com/reference/android/test/TouchUtils.html) to draw shapes between keys. However, I am not sure how I can specific x and y coordinates on device to map to specific keys. Also I don’t see any methods in this class that would let me draw a custom based shape.
Also I see the sendKeys(String keysSequence) however this looks like it just presses key and would not exercise to gesture keyboard stuff.
So I am curious how all you advance android developers would approach/solve this problem and if there is already any resources/API’s out there that can help.
Thanks
Pete

[C#] Developing DataGridView (Excel style)

hi I am new in programming for android but I have experience with .NET programming so I would like to use Xamarin.
I am trying to find some example of DataGridView (something like Excel table). Fixed header and ability to move data horizontally and vertically.
I am googleing few days and I found just java code or just ListView not like table grid.
I am realy new in it. I am working on my first app for android but I am able to use some working code in my app but I am not able to create my own DataGridView.
So if somebody know some opensource project with DataGridView (like Excel table) written in C# for android let my please know.
Thank you

Help with android development please

Hey xda, I have begun working on an app for a friend with android studio and I am having trouble with the slide out menu. I am wondering how to link pages to the menu?
Right now I have a slide out menu with different tabs, bit is all blank pages.
Thanks for any advice/help everyone!
You mean a navigation drawer. You need to inflate the view either programmatically or using XML files. Suppose you want a list view you would create a listview obj and then and make it a fragment of one of the tab's container
Thanks for the reply MasterAwesome! I'll take a look at it..

Customize System Menu

Hello,
I hope this thread is placed right. If not feel free to move it.
I have a fairly simple idea:
All I want is to add a button to the Android 6 text selection menu that appears on several text fields like this:
developer.android.com/images/android-6.0/text-selection.gif
So far I managed to add my app to the "..." menu by adding text processing intents to my app manifest. But I also want to add a button to the "paste" menu as well so I can alternatively execute my own paste operation. Since I have never customized my Android OS I am not sure where to start. It would be perfect if there was a way to do that using official APIs so I could potentially put my final app into the playstore. Do you have any ideas how to approach this?
My system: OnePlus X, Android 6.0.1, CyanogenMod 13.0-20160819-nightly-onyx
Thank you for your help.
Greetings,
vrcomputing

App Development Question

Hello XDA Forum.
Im about as novice as it gets with coding/scripting/application development so I'm looking for some help with a phone application I want to develop.
First, any tips on a free/cheap program to get started using? I dont need anything flashy. Just a good starting point.
Then, does anyone have an example program/script outline, advice or tips that get me to close to this desired outcome:
I want to generate an image, based on a given set of icons/images/text. It would incorporate individual pieces into a final product image.
I want to do this by allowing a user to select options, and those options should reference the corresponding image/icon/text.
Preferably I would use buttons or a drop-down menu or spinner per category of options since there would be a lot of options to choose from. Basically, a giant wall of option checkboxes would be overwhelming.
Any help is greatly appreciated!
Free-of-charge apps are Android Studio, MIT, Sketchware et.al:
GIYF
jwoegerbauer said:
Free-of-charge apps are Android Studio, MIT, Sketchware et.al:
GIYF
Click to expand...
Click to collapse
I looked into the MIT app, and it seems like I can make this happen with it, but the Block builder section was overwhelming for me lol
I feel like I need to have a list of the applicable images, which populate to a new list based on user selections, then they all populate to a results screen, but I'm too novice to figure it out.

Categories

Resources