w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Android Graphical Layout editor black main window with custom layout
This is because you have edited the theme of that particular xml file. you just need to click on your desire xml and change its theme from the theme option right in the center of the screen right side from the nexus S selection of yours... or u can goto res>values>strings and change the string responsible for theme selection.

Categories : Android

layout-xxhdpi/layout-xxlarge not supported on Android Studio
As you can see here, section "Declaring Tablet Layouts for Android 3.2": For the first generation of tablets running Android 3.0, the proper way to declare tablet layouts was to put them in a directory with the xlarge configuration qualifier (for example, res/layout-xlarge/). In order to accommodate other types of tablets and screen sizes—in particular, 7" tablets—Android 3.2 introduces a new way to specify resources for more discrete screen sizes. The new technique is based on the amount of space your layout needs (such as 600dp of width), rather than trying to make your layout fit the generalized size groups (such as large or xlarge). The best you can get is: res/layout-xlarge-land/my_layout.xml // layout for extra large in landscape orientation The ones you

Categories : Android

Android Studio Editor Font Sizing
They didn't make this very obvious, did they? All you have to do is click the "Save As" button to create a new profile. You can't change the font because you can't overwrite the default profiles.

Categories : Android

Cannot open layout xml after creating a new application project with Android XML Editor Error
I think this is the problem with your older version of eclipse.better you should update it to newer version.you can check for newer version in eclipse by clicking on help > check for updates also make sure you have latest adt-plugin installed you can download latest version by opening android sdk-manager. Hope this will help you :)

Categories : Android

Cannot Open Layout Files in Android-Studio
In my situation, I had placed a new folder in my res folder with original non-resized images of my icons and resources in case I want to edit them later. This broke Android Studio in several places. As soon as I moved that folder elsewhere, everything returned to normal.

Categories : Android

How to scroll a scrollable layout in the Android Studio?
According to this change set: https://android-review.googlesource.com/#/c/61089/ , there is a fix for this coming soon. I'd hazard a guess you'll see the fix in 0.1.7.

Categories : Android

Layout preview not working in Android Studio
I had the same problem and I solved as follow Update all build.gradle files with: classpath 'com.android.tools.build:gradle:0.5.+' Now android studio 0.2.+ uses gradle 0.5 Closes de IDE and via Terminal/Console Do a clean: $gradle clean Do a build: $gradle build Assemble it: $gradle assembleDebug Open the Android Studio and be happy ;)

Categories : Eclipse

How to change layout (without coding) in Android Studio
When viewing your main activity.xml file, under the component tree right click the layout, and under the "Morphing" menu you will be able to change to a different layout. Note: my Android Studio crashes when I do this!

Categories : Android

Visual Studio 2010 XAML layout editor not WYSIWYG
This answer is not directly an answer to your actual question, but instead a suggestion to avoid your problem. You will often get UI control placement problems when you use exact control positioning with the Margin property. It is a good procedure (and in WPF especially) to allow controls to place and/or space themselves using the various Alignment options available. I have always managed to get the desired layout using this method. For example, had you used a Grid or StackPanel to arrange your controls, you would not have come across this problem. Many WPF developers that I know don't even bother using the designer in Visual Studio because of the problems that you mentioned... after dragging and dropping a control and then going to the XAML to remove unwanted values, it often works

Categories : Wpf

How can I set up custom namespaces in layout file in Android studio?
res-auto uses the current package name, not the library package name. In your case, it translates to net.mypackage. If you want to use the namespace for a library, you need to use its package name. Judging from the class name, you are using the DSLV library from here. So, you'll want to use: xmlns:dslv="http://schemas.android.com/apk/res/com.mobeta.android.dslv"

Categories : Android

Can't edit/review layout files in Android Studio
Android Studio Issue 124715 Solutions : You do that by editing the "studio.exe.vmoptions" file in this path: Program FilesAndroidAndroid Studioin. Remove the line that says "-ea". You can refer this link

Categories : Android

Graphical view of layout in intellij Idea for android studio?
If you open any layout file, the switch will be displayed as tabs at the bottom: Note that you need to have Android Designer plug-in enabled: It's also important to open the files from the src/main/res/layout directory, not from the build directory. If you open a file under build, latest Android Studio will display a warning on the top of the file: Files under the build folder are generated and should not be edited.

Categories : Android

Android Studio: Error in Layout Files - Header expected
Click on the word with the red line (that causes the mentioned error) Click Alt+Enter and choose Un-inject Language/Reference That's it! At least this worked for me on the same error

Categories : Android

Android Studio: distances shown on layout preview appear larger on device
Switch to a RelativeLayout if you can, you can then define android:layout_toRightOf and android:layout_below XML tags. I don't recommend using the GUI to place objects with RelativeLayout as it is quite annoying. It's easier to just place it with XML.

Categories : Android

Preview layout with merge root tag in Intellij IDEA/Android Studio
Android Studio 0.5.8 added support for tools:showIn. By using it it is possible to preview < merge > layouts. http://tools.android.com/recent/androidstudio058released layout/layout_merge.xml with tools:showIn: <merge xmlns:android="http://schemas.android.com/apk/res/android" xmlns:custom="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" tools:showIn="@layout/simple_relativelayout"> ...... </merge> layout/simple_relativelayout.xml with include: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <include layout="@layout/layout_merge"/> </RelativeLayout>

Categories : Android

Android MediaPlayer prepareAsync is failing on Galaxy SIII with Android 4.1.2
06-19 21:57:32.295: V/MediaPlayerService(1919): [238] notify (0x41f61fa8, 100, 1, -1004) I came across this exact scenario today, and my problem was that I was behind a firewall that did not allow one traffic on one of the streaming ports.

Categories : Android

Android: How can I open an older android project in Android Studio?
Look at this links. How do I open my existing Eclipse projects in Android Studio? http://developer.android.com/sdk/installing/migrate.html

Categories : Android

Android Studio - Build an Android project with Android library which depends on another Android Library
The manifest files for the library must currently have a <application /> node, even if it's empty. It's a restriction we'll remove at some point but for now, just add it.

Categories : Android

How to adjust images to all android screen devices using cocos2d android library without using xml layout for Game designing
CGSize winSize = CCDirector.sharedDirector().displaySize(); CCSprite background=CCSprite.sprite("background.png"); background.setScaleX(winSize .width/background.getTexture().getWidth()); background.setScaleY(winSize.height/background.getTexture().getHeight()); background.setPosition(CGPoint.make(winSize.width/2, winSize.height/2)); addChild(background); Set to exact , what is the screen size

Categories : Android

Android Studio 0.2.2 + ActionBarSherlock setttings: Could not find class 'android.support.v4.app.FragmentActivity'
As you requested my settings to be shared, I here post my project settings window. Hope that you can help. 1. ActionBarSherlock project. Note that only android-support-v4 is checked to be exported. 2. My personal project settings windows. Nothing special but only ActionBarSherlock project is referenced.

Categories : Android

Android Studio & Gradle: Add outside java classes to Android main project
you might want to make your Dir a own module add include 'Dir' to your settings.gradle create a build.gradle inside your Dir directory with this content apply plugin: java now you can go into your main projects build.gradle and add to dependencies: compile project(':Dir') if your Dir uses android related stuff, you might want to use the New > Module(right click on your project in Android Studio) Function of Android Studio to create an Android Library. But i haven't tested that feature yet. If Android Studio throws an Exception when trying to use the New Module, you should try to update Android Studio, in the latest Version it works for me. You might also want to check the Gradle User Guide and the DSL Reference both are very helpfull in getting into Gradle and understanding i

Categories : Java

Automatically versioning Android project from git describe with Android Studio/Gradle
After some further reading and several false starts, I ended up with this, added to the bottom of build.gradle in the project directory (that is, MyAppProject/MyApp/build.gradle, not MyAppProject/build.gradle -- confusing, I know, but the former directory is projectDir in Gradle so that's how I refer to it here). It depends on no external utilities other than Git, which is assumed to be in the path, so it should work on any OS (even though I used forward slashes in the paths, they get converted to backslashes on Windows). It could probably stand to be improved, I'm sure, as my understanding of Gradle is pretty rudimentary and my Groovy may not be very idiomatic (though that in particular is less of a concern). I have a feeling that my approach is suboptimal because it involves generatin

Categories : Android

Android Studio Error: "You must install the Android Support Repository though the SDK Manager"
you must manualy run SDK Manager folder android-studio/sdk/tools search android or android-sdk new Support Repository must be already selected, and need only click "install" button

Categories : Android

How do I add the library android-support-v7 in IntelliJ IDEA (Not Android Studio/Gradle)?
You just need to add "@string/abc_action_mode_done" in your appcompat/res/values/strings.Do not "set mediarouter as a dependency for appcompat library".(In my case,"@string/abc_action_mode_done" already exists in the appcompat/res/values/strings.I don't know why you miss it.) "add depenency appcompat to mediarouter" is necessary.

Categories : Android

Android Studio: Android Manifest doesn't exists or has incorrect root tag
I ran into a similar problem. Looks like my .../src directory for whatever reason moved under my .../lib directory. I moved it out of the /lib directory. Now both /lib and /src are at the same level. After a couple of clean rebuilds and restarts of Android studio everything is back to normal. My emulator started up fine. You might want to check your directory structure. Compare the directory structure with a working project. You might be able to see the difference.

Categories : Android

Maven repository and "Android support library", revision 18 for Android Studio 0.2.x
Install fresh Android Studio 0.2.x. Upgrade from pre 0.2 doesn't work as mentioned here http://developer.android.com/sdk/installing/studio.html#Updating Reason is that new Android Studio is shipped with maven repo for serving support libraries. Alternatively edit build.gradle and replace compile 'com.android.support:support-v4:13.0.+' with compile files('/libs/android-support-v4.jar') then copy support jar to libs folder.

Categories : Android

How to setup and test an Android Library Project with Gradle and Android-Studio?
i think this tutorial will help you : http://cyrilmottier.com/2013/06/27/a-productive-android-development-environment/ !

Categories : Java

How to put two list view on same place in android layout in android?
Put both list views in a FrameLayout. That's it. The FrameLayout does no positioning of the contained views an just prints them one over the other. Just make sure, as you wrote, that at one time only of that views set to be visible.

Categories : Android

Wrong build being deployed on Android device using Visual Studio 2012 Xamarin.Android
I have no idea why it does this, I had this issue before. I also noticed that the device log was somewhat behind (ie, at 3.30pm, the last record on the device log was 11.00am). Uninstalling the app from the device and re-deploying it seems to correct it. Note: I had this issue in VS, didn't check with XS. I would look at the difference in your deployment settings in VS and XS (I think it may have something to do with the Fast Deployment option).

Categories : Visual Studio 2012

How to navigate/view/edit android platform sources (AOSP) using Intellij IDE (Android Studio preferably)?
Well, first you have to install Android studio from here: http://developer.android.com/sdk/installing/studio.html Then, if you already have a project in Eclipse here is how you export it to Android Studio: http://developer.android.com/sdk/installing/migrate.html

Categories : Android

How to open android documentation and samples of code in android studio
First you need to make sure the documentation is added to Android Studio. Go to File -> Project Structure. Under the Platform Settings heading, add or select an Android Platform. Go to the Documentation Paths tab and make sure the path to your SDK's documenation folder is added there - it should be [SDK]docs eference, where [SDK] is the full path to your SDK installation. If it is not there add it manually. Once this is done, use Ctrl+F1 while your cursor is on the item you want to display help for. The samples have not been ported to Android Studio yet, but I'm sure google will get around to it at some point. For now follow the instructions in the comments by androidika (you will need a copy of Eclipse installed).

Categories : Android

Android Studio - Export Android library aar with pure gradle
You should try updating/upgrading your build tools and gradle through AndroidStudio. Once you do this, or if you have already done it, you should be able to modify your build file to reflect the updates: classpath 'com.android.tools.build:gradle:0.5.+' ... buildToolsVersion "18.0.1" NOTE: I am still unable to generate aar files even with this setup, although compiling is fine. At least this might get you past this hurdle.

Categories : Android

Is it possible to test In App Billing in an Android App connected to and running from Android Studio
Except for the static purchase test items, you are generally no longer able to test in-app billing features while in debug mode. You have to use a release version of the app and complete the app setup on Play Developer Console to do so. So to answer your main question, while you can track the overall flow of your purchase feature in debug mode on your app, you won't be able to test a successful transaction while using the debugger.

Categories : Java

Android Logcat is empty when debug with device in android studio
As of 0.4.0 I have noticed that the logcat tab does not work in the debugger window - only in the Android DDMS window (hit Alt+6 to bring up the working logcat while debugging). Awkward I know :)

Categories : Android

Android: Emulator in Android Studio doesn't start/launch
Well, Android Studio is waiting for you to start the virtual device. You can do that from AVD Manager --> 'Select the device you chose in Android Studio' --> Start. I hope this answers your question

Categories : Android

No Android facet found, issues compiling with Android Studio 0.2
Add an android facet to your module by following below steps. 1) Go To File Menu -> Project Structure, or press (Ctrl+Alt+Shift+S) shortcut to open "Project Structure". 2) Select "Facets" which is under the "Project Settings" tab. (First column) 3) Click on "+" button which is at the top of the Second Column to add new facets. 4) Select "Android" facet from that "Add "menu which will prompt another dialog box to select a module. (Select a module to which you want to apply this facet). 5) Select your module and that's it. :) Hope this will solve your problem.

Categories : Android

How do I migrate my Android Eclipse project to using Gradle and Android Studio?
You should create a folder in you project's root and name it libs. Then copy your jar file to that folder and add dependencies { compile fileTree(dir: 'libs', include: '*.jar') } to your build.gradle file. If above won't work. You may need to try this post

Categories : Java

How to create the best Android app project structure with Android Studio and Gradle?
You should look at the multiproject example for the layout attached in the doc. http://tools.android.com/tech-docs/new-build-system http://docs.google.com/viewer?a=v&pid=sites&srcid=YW5kcm9pZC5jb218dG9vbHN8Z3g6NDYzNTVjMjNmM2YwMjhhNA Essentially you want a top level settings.gradle that tie all the pieces together. Ideally they should be in one single git repo to make your life easier. However you probably can use symlink to tie them into a common build repo that contain your top level settings.gradle.

Categories : Android

Android Studio "Cannot resolve symbol XXX" on basic Android tutorial
so, it turns out that Studio is (understandibly) buggy, and that these errors are false negatives... I can also add the hierarchical parent by hand in the code so the question about the popup is moot too :/

Categories : Android

Questions about calabash-android support in Android Studio: Ruby, Editing features and steps, Launching tests
Very good question. Xamarin had a webinar on using Calabash tests in their Test Cloud product. Towards the end of the talk there is quite a bit of hands-on with setting up the testing ecosystem and running Calabash tests for Android. There's lots in there that don't apply to your environment, but some very good tips and insights from Karl Krukow - one of the main contributors to calabash-android.

Categories : Android



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.