i'm trying to implement action bar in 2.3.3 version. As i'm new to android and engineering student i'm finding it difficult to implement it.I know action bar supported from 3.0. i've downloaded your library and imported inside my project. Still it is giving some error.I'm struggling to do this from many days. Please guide me properly how to achieve it . Is there any specific version of sherlock i've to download for 2.3.3.i've seen the video you uploaded in youtube. There your mentioning it for api level 13. So Please help me in this regard
If you are looking for support on the ActionBarSherlock library, I suggest you place your request using one of the requested methods on their support page. Jake is on StackOverflow but that doesn't mean you will be lucky enough for him to stumble on this question. You can find more information at:
http://actionbarsherlock.com/support.html
This page provides links to the Google Group, Github page, and direct contact information for the developer himself. I would recommend that when you post your issue to these support channels, you provide some more specific information about the error you are receiving, with perhaps some snippets of your code.
HTH
I had errors on #Override methods because I was using Java 1.5. Switching to 1.6 solved them.
To do this : right click on your project > Properties > Java Compiler > Enable project specific settings > Compiler compliance level > 1.6
It is related to this issue in the project's bug tracker : https://github.com/JakeWharton/ActionBarSherlock/issues/28
Related
m using the android youtube player OpenYouTubeActivity, i'm using the svn source code, not the jar file provided in the project. But it seems that this activity is not working after the 4.3 android releases. the video is shown half of the full screen, but everything else works fine. THis issue is already logged on the issues list on the project site.
Anybody has any clue, whats happening? Any solution is greatly appreciated.
Its always best to use the jars, because you get the latest compiled code and its easy for the maintainers to maintain versions. But I think on the code branch the fix here is to decompile the jar using an open source decompiler like http://jd.benow.ca/ and then copy the code as is.
Then you can see where the changes have been made.
DISCLAIMER
Please follow the licensing as the original wants it. I think its as per Apache, so make sure to include appropriate licensing information and credits and follow licensing laws.
When I use the command 'Quick Documentation' in Android Studio in a class that comes from one of the support libraries (e.g. ActionBarActivity), the IDE does not show the documentation for the class. If I use it on one of the classes from, say, the Android API 19 (e.g. Activity), the IDE displays the complete documentation as is shown in the reference page on https://developer.android.com/reference/packages.html.
Is there any way to add the documentation for the support libraries to Android Studio so that they can be accessed through 'Quick Documentation' as well?
When Android Studio has opened the decompiled jar class, click on "Download..." blue link at top right, this will download jar with javadoc and save it in :
/.ideaLibSources
rebuild project if necessary, now doc is available.
Tested on android studio 2.0 preview 4.
If you are not using Gradle, this will be easier for you.
Go to File -> Project Structure. From there, on the left-hand side, select Libraries. Select the library you want to add source/java-docs to, then click the plus at the bottom and add the source and/or java-doc jars. There's a chance AS will automatically know what's what.
If you're using Gradle, more than likely in Project Structure, you won't see the Libraries tab, and I'm sorry but I don't know how to help from that point. If you use Gradle, AS detects that and takes away "unnecessary" options. Sorry to send you searching again, but I know there's something called a .properties file for jars that tell the source and java-docs, but I haven't implemented it. If I can find the page that told me that information, I'll update this.
EDIT: The answer is here. This should help you out.
I m trying to understand the concept of fragment on android. The official pages has some code snippets and a link mentioning the entire source code called FragementLayout.java. However on clicking it , I get redirected to this page
http://developer.android.com/tools/samples/index.html
Which says the source code is available in the samples directory where the sdk has been installed. I tried checking out samples of various different API levels (8, 11, 17) but could not find the source code for fragments tutorial. Does any body know where it is ?
I have that exact file in the samples folder of 13, 14 & 16.
For extra credit, I recommend checking out the Fragments demo of Action Bar Sherlock, since I believe it shows a better way of learning Fragments.
For more discussion about this, check out my question & the related answers:
How many Activities vs Fragments?
You can see that I do not like the pattern in that tutorial, but there is good discussion for both approaches.
Make a new project using
create project from existing sample. Choose maximum target name then Select Sample ApiDemo.
Finish. Now go to ApiDemos->src->com.example.android.apis.app->FragmentLayout.java
.Enjoy
Yes, it seems to be removed from the official Android online documentation.
However, it can be found in the downloadable "Samples for SDK" for each API level.
To download "Samples for SDK", using "Android 4.4.2 (API 19)" as an example:
Open Android SDK Manager (E.g. Eclipse > Window > Android SDK Manager).
Tick "Android 4.4.2 (API 19)" > "Samples For SDK".
Install.
FragmentLayout.java will be found in a directory like
"C:\Program Files\Android\sdk\samples\android-19\legacy\ApiDemos\src\com\example\android\apis\app\FragmentLayout.java"
You can find the Sample code as well as explanation in official Android Docs
Here
Just clic on this link to download the example from Android Developers wbesite : FragmentBasics.zip
I'm in need to get previous revisions of the Android Support Lib since there have been a couple weird issues introduced on the last two revisions 8, 9. I want to compare the source to figure out what could have happened and maybe patch it myself.
Essentially the issue is with the ViewPager not measuring correctly its width when used by a custom ViewGroup. Leaving the edge showing the next page slightly.
There are some (jar with source and javadoc) in Maven Central Repository.
Android Support Library is open source, you can directly check the source in GitHub project android/platform_frameworks_support. for instance, android.support.v4.view.ViewPager and click History at the top right corner of java code to see the complete change history.
Hope that helps.
You can find it here maybe. If not, I do not think they publish the link for the older versions.
However, you can still see what changes were made here. If that is not enough, ask a new question about the issue with ViewGroup and we will try to help.
You can find these support libraries at the Google download site:
https://dl-ssl.google.com/android
Revision 8
Revision 9
I'd like to write an Eclipse plugin that looks like the "AndroidManifest.xml" editor page in Google's Eclipse ADT plugin - specifically, this screen. I'm new to SWT development, though, so I don't have a very good understanding of what SWT components one would use to build a screen like this.
So, specifically, I'm asking:
Is there a particular layout I should use to build a screen like this?
What class gives the collapsible headers, like "Application Attributes", with the color-gradient backgrounds?
Are there any source-code examples available for a screen like this?
Better yet, is the source code of the ADT plugin available anywhere? I haven't found it online.
Thanks for your help!
I've accepted Marc's answer, but I wanted to give a more detailed answer here, for the benefit of anyone who comes along later:
The form in question is an example of a "Managed Form". I should have read this: http://www.eclipse.org/articles/Article-Forms/article.html
For the layout, org.eclipse.swt.layout.GridData and org.eclipse.ui.forms.widgets.ColumnLayout seem to be common choices.
The collapsible headers are a feature of the org.eclipse.ui.forms.widgets.Section class.
Javadoc for the Eclipse Plugin Development Kit, including the classes named here, can be found at http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/overview-summary.html
Answer to this part of your question:
Better yet, is the source code of the
ADT plugin available anywhere? I
haven't found it online.
The ADT source is public. See http://tools.android.com/ for more info. Specifically, this page describes how to get and build the source. You should be able to find what you are looking for somewhere in the source tree.