android-support-library

Bluetooth LE can't find any device on android 6.0

ぐ巨炮叔叔 提交于 2020-01-25 09:27:09
问题 I am building an app that receives data from bluetooth device and is fully functional on a 4.4.4 android smartphone. But when I try it on version 6.0 devices it does not find the bluetooth devices. I have activated location on the phone and I have added the permissions for location on manifest file but nothing happens. I have read somewhere that I have to request permission from the user and I have tried to add ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.ACCESS

Can't use android.support.v7.widget.Toolbar with android.useAndroidX=true

半世苍凉 提交于 2020-01-24 20:47:07
问题 in app/build.gradle: implementation 'com.android.support:appcompat-v7:28.0.0' in my activity I use import android.support.v7.widget.Toolbar Nice. It's work finde. But when I migrate to androidx I add this: android.useAndroidX=true android.enableJetifier=true As result now my activity not compile with error: import android.support.v7.widget.Toolbar; Cannot resolve symbol 'v7' Is it possible to use android.support.v7.widget.Toolbar together with anrdoidx.* package? 回答1: Since you are migrating

How to set the elevation of AppBarLayout to 0

风流意气都作罢 提交于 2020-01-24 02:27:09
问题 My layout file is like : <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" ... android:elevation="0dp" android:fitsSystemWindows="true"> <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="256dp" android:fitsSystemWindows="true" android:elevation="0dp" android:theme="

I want to import design library in androidx 29 version(latest version)

我与影子孤独终老i 提交于 2020-01-24 01:57:13
问题 Below image clarify my question. I was try multiples of times to import design library in android studio lastest version 29 (android x) but library does'nt work kindly tell me the design library for androidx 29. 回答1: You can use : - implementation 'com.google.android.material:material:1.0.0' library in androidx for design. 回答2: The library androidx.design:design:1.0.0 doesn't exist . You have to use the Material Components library. Material Components for Android is a drop-in replacement for

Why the fragment overlaps the Action bar?

故事扮演 提交于 2020-01-23 17:39:11
问题 I tried to use the android support library v7 to add an action bar to my activity my extending tht actionbar activity. A blank fragment has been also built to make a tab. However, the content of the fragment is overlapping the action bar. How can I fix it? 回答1: I read it here ActionBar with support library and Fragments overlay content I am sure it will help you : For pre ICS devices you must use: R.id.action_bar_activity_content instead of android.R.id.content R.id.action_bar_activity

Manifest merger failed with Firebase Auth

风流意气都作罢 提交于 2020-01-22 16:33:25
问题 When I implement implementation 'com.google.firebase:firebase-core:17.0.0' implementation 'com.google.firebase:firebase-auth:18.0.0' The Manifest not Sync, Error message like this: ERROR: Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app

(Design Support Library) CollapsingToolbarLayout — Toolbar not getting pinned on collapse

余生颓废 提交于 2020-01-22 09:00:26
问题 I'm having trouble integrating the Design Support Library into my application. For some reason, the toolbar collapses with the CollapsingToolbarLayout, and does not leave it pinned like in the Cheesesquare example by Chris Banes. https://github.com/chrisbanes/cheesesquare I didn't do anything different to my layout. In fact, I replaced my styles with his, and dropped in his layout. I wonder if using Toolbar, instead of android.support.v7.widget.Toolbar is causing this. Here is the problem.

Execution failed for task :app:processDebugManifest Android Studio 2.3.3

回眸只為那壹抹淺笑 提交于 2020-01-21 12:15:28
问题 I'm getting a compile error after adding CardView and RecyclerView dependencies, I've checked every post but no one seems to solve this case. Error: Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31 is also present at [com.android.support:cardview-v7:26.0.0-alpha1] AndroidManifest.xml:24:9-38 value=(26.0.0-alpha1).

FragmentTabHost graphical layout doesn't render

你。 提交于 2020-01-20 02:08:28
问题 The graphical layout for a simple android.support.v4.app.FragmentTabHost never renders in either Eclipse or Android Studio. The Console error I get is consistently: Exception raised during rendering: No tab known for tag null I'm using the most basic XML file: <android.support.v4.app.FragmentTabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android

Upgraded to AppCompat v22.1.0 and now onKeyDown and onKeyUp are not triggered when menu key is pressed

南楼画角 提交于 2020-01-19 05:19:01
问题 I've just upgraded my app to use the newly released v22.1.0 AppCompat and now onKeyDown and onKeyUp are not triggered when menu key is pressed. The other keys correctly trigger onKeyDown and onKeyUp , but when i press the menu key nothing happens. If I downgrade to v22.0.0 everything returns to work properly. How do I fix it? 回答1: Update 23 August This has been fixed again in the v23.0.0 of appcompat-v7 support library. Update to the last version to see this fixed. Update 19 July