I moved from using Eclipse to use Android Studio, but I foun with a problem, AppCompat is bringing me some problems and I don't want to use it so I tried to deactivated but I didn't find a way. There is an option in Android Studio to deactivate it? Because manually adapting the project (changing inherations, prefixes and themes) after it has been built takes a lot of time.
The problem is that when using the AppCompat, I can't create an Overflow menu. If I write "app:ifRom" the item appears on the ActionBar, that's right. But if I write "app:never" the overflow icon (3 dots) never appear, and if I touch the hardware key for opening the overflow menu, the app suddenly stops. That is why I do't want to use the AppCompat, because without using it (using the android: prefixes instead of app: prefixes) I didn't have any problem.
If you could help me solving one of this questions: How to deactivate AppCompat on Android Studio or why the "app:never" prefix is not working I would be gratefull.
Related
I usually work with multiple projects. Lately android studio added new feature of having 2+ projects shown in the same window. It looks very similar to the for example google chrome when you have open 3 tabs.
You can nicely and very fast switch between projects which is super useful.
Anyways sometimes when I open new projects, they are not "auto added" to this tab mode and I finish with having 2-3 projects and every project is in its own window.
I tried playing with View and Window part in android studio toolbar but did not manage to find solution yet. I believe it's something with Window.
Can someone please explain it here not only for me, but also for all android devs that have same question
At developer.android.com I found a tutorial called "Build a simple user interface". Unfortunately, it is based on an older version of Android Studio. It tells the user to open activity_main.xml. If one does this, the user cannot find the right icons in the toolbar. I searched and someone said open content_main.xml instead. This indeed posts the right icons in the toolbar, but as one continues in the tutorial, more and more errors appear. My question is: Is there a newer Android Studio User Interface tutorial that is appropriate for the latest Android Studio, version 3.6.1?
I really want to learn how to build interfaces via Android Studio and not clumsily play directly with XML code. Thanks for any ideas!
--Steve
I am working on an instant app demo app. I used the default template which I extended with a RecyclerView and a custom adapter. My problem is that my layout is totally broken:
As you see the toolbar is the same, but something does not work correctly regarding the coordinator layout. The floating action button is missing and the navigation drawer is not displayed below the system UI (the notification area) and yep of cause the menu is empty.
The both screens are debug builds so proguard is not messing anything up (I got also release working with proguard, but of cause I still have the same issue). On the left is the result of the gradle task :app:assembleDebug and on the right :instantapp:assembleDebug.
Since I use except of the recycler view the default template for this app I add no code, any idea why my layout is broken in instant apps?
Please follow these steps and you should be good to go!
https://developer.android.com/topic/instant-apps/getting-started/first-instant-app.html
Note : Please select Navigation Drawer Activity in Step 8
From the shared image, it looks like you have modified some code from the default Navigation Drawer Activity for your IA. If yes, please share the code to investigate.
Also, let me know the device/emulator and the Android studio you are using. I was not able to reproduce the issue with Studio version 3.0.1 on Nexus 5x (Android version 8.0.1). Following is the image of the instant app from my nexus 5x with 8.0.1 build. Let me know if I am missing something!
When I open up my android studio, I do not see the image of any device in design view. Rather, an error shows up. I know there should be a device where we can do some drag and drop for GUI. How can this rendering problem be fixed?
You need to change the Theme. There's the AppTheme tab if you can find. Change it to something other. Many other themes are available and will have different design schemes. Choose from them. The issue will be gone
Add the resources in a library project as per http://developer.android.com/tools/support-library/setup.html
>Section > Adding libraries with resources
You then add the android-support-v7-appcompat library in your workspace and then add it as a reference to your app project.
I am trying to use the rather smart ActionBarSherlock and it is going ok except for 1 rather important thing. The app icon seems to be firmly stuck in the middle of the actionbar.
I am currently deploying on 2.3.4, not using actionbar tabs and using the theme
android:theme="#style/Theme.Sherlock"
Everything works fine except for this. I have also tried it on the emulator.
Any suggestions?
Solved I was stupidly not telling Eclipse that I was designing using android 3.2 or higher.
This messed up the appearance of the actionbar when built.
I also found it essential to build the sherlock library from the downloaded zip file outside my workspace.