Android 3 dotted button Galaxy S6 - android

I'm working on a native Android app and I'm having a tough time trying to hide the 3 dotted button from my application.I've detected it on a client's Galaxy S6.
Here you can find a screenshot of the button and some more information about it, but, unfortunately, not a way to hide it: http://forums.androidcentral.com/samsung-galaxy-s6/513901-what-little-circle-three-dots-inside.html.
I've also tried the solution from here: Cordova PhoneGap Floating Icon Android 5+ Samsung S6
But everything was without success.
Can somebody help me?

i Think u just need to remove the item tag under the res/menu/yourfile.xml if not working just share your Code XML file

res-> menu-> your_menu_xml
<item
android:id="#+id/action_edit_pass"
android:orderInCategory="100"
android:showAsAction="always"
android:title="#string/action_edit_pass"/>
the 3rd line is the important: change the "never" to "always".

The response from here was right. The first time when I tried it I've selected the target SDK from Ecplise (right click on the project, etc...), but I failed to notice that android:targetSdkVersion was not added to my AndroidManifest.xml.
So in order to fix this I added manually android:targetSdkVersion="22" in AndroidManifest.xml
<uses-sdk android:minSdkVersion="8"
android:targetSdkVersion="22" />

Related

How to add app icon properly in android react-native

Hi I added icons to android/app/src/main/res/..., the app icon showing perfectly in home screen like first image, but when minimize the app it showing default app icon like second image. how can change that icon also.
I cleaned build folder, gradlew and reinstalled the app but no changes.
Please help me on this
put this on AndroidManifest.xml and try
<application
...
android:icon="#drawable/ic_launcher"
...
</application>
also hope you update the icons properly. please refer this
https://code.tutsplus.com/tutorials/how-to-update-the-launcher-icon-for-your-android-app--cms-30624
I'm not sure if this comes after you setup androidManifest.xml but you will need icons in these two folders:
android/app/src/main/res/mipmap.
ios//Images.xcassets/AppIcon.appiconset
I've used the resize-reactnative-launcher-icon shell scrip to generate my icons. It takes a png image and creates the 25 variations you need by size and resolution.
bash resize.sh my-cool-new-app-logo.png

Android Studio 2.0 not showing menu icons in preview

I've done some searching but I couldn't find any concrete information about my issue. I have a standard Empty project in Android Studio to which I have added a logout icon in the Action bar. For some reason the icon is only visible when I run the project on a virtual device or on my phone but it's not visible inside the preview screen in Android Studios. Is it a known bug or am I just missing something?
In the design view of a XML File you should try to use a older Render version:
For me, the previewer shows the icon if I add android:showAsAction="ifRoom" within the item's declaration.

Drag/Drop feature in Android studio not working

I'm new to android programming The drag/ and drop feature in android studio is not working. I can't drag anything to my phone. Right now my fragment is google map view and i want to add a search bar to the view. It just doesn't drag. When I try to add it in text it says element item not allowed here?
This is my activity_maps.xml file
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:id="#+id/map" tools:context=".MapsActivity"
android:name="com.google.android.gms.maps.SupportMapFragment">
<item android:id="#+id/search"
android:title="#string/search_title"
android:icon="#drawable/ic_search"
android:showAsAction="collapseActionView|ifRoom"
android:actionViewClass="android.widget.SearchView" />
</fragment>
the new version of android studio uses 2 xml files for each layout. One (e.g. content_main.xml) embedded in the other one (Activity_main.xml).
you should open the content_*.xml and do the design in it.
hope it helps.
In addition to Hamed's answer I also had to:
File > Invalidate Caches / Restart ...
I'm missing vim.
The drag and drop feature is not working in Android Studio.... I also wasted a lot of time searching...what fixed my problem was to select a Theme for the Activity.
The image below will make things clear.
After updating to the latest version of Android Studio (2.2) I started having this problem.
After some searching and playing around I discovered holding down alt allows my to drag and drop. I had the "hold ALT to drag and drop" option checked under Settings-> Appearance & Behavior > Appearance.
Either I had already selected this option and a fix in Android Studio 2.2 made it so the option applied to dragging and dropping with the palette panel OR this option was recently added and defaulted to checked or a problem happened while upgrading that set it to true.
I have this option set in IntelliJ and have used the android studio palette normally before and am mostly sure I used it without having to hold down alt before so I'm going with option A (and it took me an embarrassing amount of time until I tried holding down alt).
In my case, I was using ConstraintLayout in Android Studio 3.0. Fixed it by using android.support.constraint.ConstraintLayout instead.
Go to your "values" folder
and open the "styles.xml" file.
Replace "Theme.AppCompat.Light.DarkActionBar" under the parent tag with "Base.Theme.AppCompat.Light.DarkActionBar"
I faced this problem also and I simply fixed that by changing the theme to DeviceDefault.Light for the activity.
I also faced the same problem. The culprit was that in my parent
android.support.wearable.view.BoxInsetLayout
tag i was dragging the components directly but when i put
FrameLayout
inside
android.support.wearable.view.BoxInsetLayout
tag and then drag my components to
FrameLayout
it worked .
Hope it will help someone.
I know this is old but not being able to drag elements into the design just happened to me (2/18/18). Restarting Android Studio (3.01) did the trick.
I faced the same problem of not dragging elements in Android Studio 3.1.
Restarting the Android Studio, fixed the problem for me
I figured it out. Even though the design panel is visible as well as the Palette and Component Tree I ALSO need to have app/src/main/res/layout/fragment_main.xml selected over in the Project panel in order for the actual design of the layout to be enabled.
Drag 'n' Drop may not work properly, when you have a LinearLayout, in that condition, the items you drag will try to settle in a specific manner(Horizontal or Vertical), instead try to change your main layout to Relative Layout
Linear Layout --> Relative Layout
I know this is a old issue,none of these were working for me, and it so happened that it wasn't android studio that was giving this problem it was windows. I noticed I couldn't drag anything so clicking and holding any file on the desktop and pressing escape is what fixed it for me.
I resolve this problem by simply rebuild my android studio project.
I was facing the same problem,but then I found the solution .
All you have to do is select the element you want to add(eg. Button) and press "Enter".
The component will be displayed on your screen.
Or you can select the component and right click -> Add to Design
I have did everything in this post, until I've run android studio by just running and not running with "Run As Administrator"(Right Click -> More -> Run As Administrator). I've used to run android studio with "Run As Administrator" and that caused the problem to not drag and drop. Just run Android Studio without "Run As Administrator".
Or try do vice versa and actually "Run As Administrator" if you already just running it without "Run As Administrator".
File>Settings>Appearance and Behavior>Appearance>Theme -> IntelliJ Light
Change your settings to the above path. Then you can drag and drop the views on the design view.
I was also confused with the drag&drop feature. Until I figured out:
After beginning to drag you have to release the mouse button and everything works fine.
Nice feature - a bit unusual though.
I just downloaded Android Studio and ran into this problem.
After clicking random buttons for a few minutes I found out:
There's a magnet icon in the toolbar right above the design view called "Disable Autoconnection to Parent". After I clicked this I was able to move the button wherever.

Android - No hardware menubutton

I concluded the newer android tablets doesn't have a hardware Menubutton anymore.
So I was wondering if I have to insert an menu button in my own (fullscreen) app or does android offer a software included menubutton itself (even when my app runs fullscreen)?
(I don't have an android phone/tab myself to test, so I asked here)
Thanks,
Dennis
You should move away from menu buttons. It's the new style of Android applications. See this post from Android developer with the reasons to remove the button and what applications should do instead of offering a menu button.
Most of devices which are not having menu hardware button runs on android 3.0 or greater version
You just need to add one parameter as showAsAction.
Which will show menu item on action bar.
Concider reading ActionBar tutorial
Change the manifest file: you should change targetSdkVersion to <= 10.
Like this:
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="9"/>

Android menu button not show

I write an application.
It run on Android 2.3.4 phone, the menu can be pressed.
But if run on Android 4.0.3 TF201, the menu button not show.
How to let it show the menu button?
Android 4.0 will discontinue the menu button. Here is a nice article by android developers that says what to do.
If you want to give menu feature in android 4.0, you have to use Action Bar instead.Follow this link for more details
If you have to use that menu use the following lines in your Manifest file:
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="9" >
</uses-sdk>
But sometimes you want a fullscreen app...for example in the Manifest is setted the activity with:
android:theme="#android:style/Theme.NoTitleBar"
The only and ugly fix is to set under the target sdk version:
http://lancelotmobile.com/blog/mobile-air-app-compatible-with-android-4/

Categories

Resources