androidx

Navigation component seems just working with short dynamic link (firebase)

老子叫甜甜 提交于 2019-12-20 03:29:14
问题 Navigation component seems just working with short dynamic link Example: Long Dynamic Link https://domaindebug.page.link/?link=https://www.website.com&apn=com.x.debug&isi=122...6&ibi=com.ios.x.debug&efr=1 Short Dynamic Link https://domaindebug.page.link/register <fragment android:id="@+id/fragment_register" android:name="com.x.presentation.feature.identification.view.RegisterFragment" tools:layout="@layout/fragment_register"> <action ... /> <argument android:name="code" android:defaultValue="

How to open a new PreferenceFragment from current one, using the new Android-X API?

微笑、不失礼 提交于 2019-12-19 20:43:21
问题 Background On previous versions of support library, we could use headers in order to have a main-menu screen of settings, that each would open a new settings screen (fragment) . The problem Now headers are gone (as written here) for some time, and I think it became worse on android-x : One thing you’ll note isn’t in here is preference headers and you’d be totally right. However, that doesn’t mean a single list of preferences need to span a 10” tablet screen. Instead, your Activity can

Didn't find class “androidx.core.content.FileProvider”

廉价感情. 提交于 2019-12-19 06:39:11
问题 I migrated my app to AndroidX and it's crashing on launch on API level 21. My application throws this exception: 10-08 09:42:50.930 11346-11346/com.example.test E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.test, PID: 11346 java.lang.RuntimeException: Unable to get provider androidx.core.content.FileProvider: java.lang.ClassNotFoundException: Didn't find class "androidx.core.content.FileProvider" on path: DexPathList[[zip file "/data/app/com.example.test-1.apk"]

Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy

那年仲夏 提交于 2019-12-18 19:33:29
问题 I know it could look like This Question but I could not fix it with the solution proposed and I could not comment on it too. The Error is : Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy Message{kind=ERROR, text=Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy, sources=[Unknown source file], tool name=Optional.of(D8)} I'm trying to create an app using firebase there's is my gradle file apply plugin: 'com.android

Crash on Android 10 (InflateException in layout/abc_screen_simple line #17)

我怕爱的太早我们不能终老 提交于 2019-12-18 14:19:26
问题 My application works fine from Android 4.3 until Android 9 Pie, but my application doesn't work on Android 10 (Q API 29) and crashes. This is my logcat - why this is happening? java.lang.RuntimeException: Unable to start activity ComponentInfo{ir.mahdi.circulars/ir.mahdi.circulars.MainActivity}: android.view.InflateException: Binary XML file line #17 in ir.mahdi.circulars:layout/abc_screen_simple: Binary XML file line #17 in ir.mahdi.circulars:layout/abc_screen_simple: Error inflating class

DrawerLayout getting stuck on swipe

此生再无相见时 提交于 2019-12-18 10:48:30
问题 I am playing around with DrawerLayout and I am encountering an issue. Basically sometimes when i swipe from the edge of the screen the DrawerLayout will get stuck until i lift my finger off the screen (See screenshot below) I am not sure what is up, I followed the code sample from the google sdk exactly. Any ideas? And here is the only thing i have in my FragmentActivity: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout

fragment to fragment animation with shared element don't work as expected

寵の児 提交于 2019-12-18 09:38:18
问题 In an AppCompatActivity with a RecyclerView in a fragment ( myFragment1 ), viewholders and so on, so if I click on an item, then myFragment2 will show and display the detail of the item. In this phase, I want to create an animation between the two fragments with shared elements. Steps to reproduce the behaviour: import android.view.View; import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import androidx

How to add cardview in layout xml in AndroidX

旧街凉风 提交于 2019-12-17 22:57:44
问题 How to add cardview in layout xml in AndroidX After upgraded to AndroidX <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="5dp"> gives a error The following classes could not be found: - android.support.v7.widget.CardView (Fix Build Path, Edit XML, Create Class) dependencies { implementation 'androidx

Android FAB icon always black with MaterialComponents theme

我的梦境 提交于 2019-12-17 09:41:51
问题 I'm creating an Android app and I'm using the AndroidX libraries and Material design theme. My app theme on styles.xml is: <style name="AppTheme" parent="Theme.MaterialComponents.Light.DarkActionBar"> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> </style> I have the following FAB from a custom library: <com.leinardi.android.speeddial.SpeedDialView android:id="@+id/work_log

Flutter Projects & Android X Migration Issues

做~自己de王妃 提交于 2019-12-17 06:41:45
问题 I just created a new flutter project, added a few plugins and I'm getting the plugin switched to android x therefore i need to switch to android x. I've tried all the different ways of moving to android x and none has worked for me so far. Right now i don't even know what to do anymore, its so frustrating, why wouldn't flutter handle that when creating new projects automatically. Might be using ionic for the project. 回答1: As you are creating a new project, just follow @harsh 's answer and you