appcompatactivity

How to remove top status bar black background

穿精又带淫゛_ 提交于 2021-01-27 07:16:37
问题 I'd like to create a TRUE fullscreen activity, but there is always a black status bar on screen top. Android 9.0. I've tried almost all I can find with Google and existing Apps with similar jobs. Manifest, code, style, AS sample fullscreen activity, all were tried. styles.xml: <style name="AppThemeA" parent="@style/Theme.AppCompat.Light.NoActionBar"> <item name="android:statusBarColor">@android:color/transparent</item> <item name="android:windowNoTitle">true</item> <item name="android

AccountAuthenticatorActivity for AppCompat

老子叫甜甜 提交于 2020-02-28 08:42:12
问题 I'm making an authenticator following the tutorial: http://blog.udinic.com/2013/04/24/write-your-own-android-authenticator/ The login Activity requires to extend AccountAuthenticatorActivity , the issue starts here: AccountAuthenticatorActivity extends the regular Activity and not AppCompatActivity . Using the regular Activity in AppCompat results in a Activity without ActionBar . I want to use AccountAuthenticatorActivity AND having an ActionBar . 回答1: The key is AppCompatDelegate , my code

Error : Ambiguous method call. Both findViewById (int) in AppCompactActivity and Activity

孤街醉人 提交于 2020-02-18 05:40:14
问题 I am getting the error: "Ambiguous method call" on initializing Toolbar using Android Studio 3.0 RC1. I have extended my Activity with AppCompatActivity and compiling my application using 'compileSdkVersion 26'. Attaching a screenshot of the error. 回答1: If you recently updated your project to API, Try doing File -> Invalidate Caches / Restart then File -> Sync Project with Gradle Files this resolve for me. 回答2: Upgrade to appcompat 27 solved this for me 回答3: You have import android.support.v7

Error : Ambiguous method call. Both findViewById (int) in AppCompactActivity and Activity

回眸只為那壹抹淺笑 提交于 2020-02-18 05:40:13
问题 I am getting the error: "Ambiguous method call" on initializing Toolbar using Android Studio 3.0 RC1. I have extended my Activity with AppCompatActivity and compiling my application using 'compileSdkVersion 26'. Attaching a screenshot of the error. 回答1: If you recently updated your project to API, Try doing File -> Invalidate Caches / Restart then File -> Sync Project with Gradle Files this resolve for me. 回答2: Upgrade to appcompat 27 solved this for me 回答3: You have import android.support.v7

“package android.support.v7.app does not exist” error in androidStudio

元气小坏坏 提交于 2020-01-30 08:50:29
问题 i am just starting with android development using androidStudio i am following udacity tutorial where they asked us to copy paste some code and run it i am unable to run the cod after pasting i think the major problem is while importing import android.support.v7.app.AppCompatActivity; i have checked internet for solution to this problem including stackoverflow but it seems that it is different for each case i have tried to import import androidx.appcompat.app.AppcompatActivity; instead of

“package android.support.v7.app does not exist” error in androidStudio

别来无恙 提交于 2020-01-30 08:50:21
问题 i am just starting with android development using androidStudio i am following udacity tutorial where they asked us to copy paste some code and run it i am unable to run the cod after pasting i think the major problem is while importing import android.support.v7.app.AppCompatActivity; i have checked internet for solution to this problem including stackoverflow but it seems that it is different for each case i have tried to import import androidx.appcompat.app.AppcompatActivity; instead of

“package android.support.v7.app does not exist” error in androidStudio

核能气质少年 提交于 2020-01-30 08:49:44
问题 i am just starting with android development using androidStudio i am following udacity tutorial where they asked us to copy paste some code and run it i am unable to run the cod after pasting i think the major problem is while importing import android.support.v7.app.AppCompatActivity; i have checked internet for solution to this problem including stackoverflow but it seems that it is different for each case i have tried to import import androidx.appcompat.app.AppcompatActivity; instead of

How to setContentView before super.onCreate while using AppCompat v22.1.0?

旧巷老猫 提交于 2020-01-24 05:01:04
问题 Hey I've just upgraded my app to AppCompat v22.1.0 and got this exception Caused by: java.lang.IllegalArgumentException: AppCompat does not support the current theme features at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:360) at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:246) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:106) I found soln. here https:/

error while inflating class android.support.v7.widget.CardView

狂风中的少年 提交于 2020-01-15 03:49:07
问题 we already have a bunch of similar question to this but all of them was related to backward compatibility or they are on eclipse (as far i understand) but i think problem is occurring while inflating the cardView class it was working fine on my emulator (SDK 23) but when am trying it on my other emulator (SDK 19) am getting this error and the error is pointing me to this line : @Override public RecyclerView.ViewHolder onCreateViewHolderImpl(ViewGroup viewGroup, final ParallaxRecyclerAdapter

Runtime Error while using AppCompatActivity instead of Actionbar

不问归期 提交于 2020-01-05 01:38:09
问题 I am using the AppCompatActivity library to make support all the devices. After upadting the android-support-v7-appcompat library i am facing issue. But i am facing an error during run-time. I am using eclipse studio to code for android project. Any help will be appreciated. Below is my error ,and i am getting no idea where i am going wrong. ** ERROR ** E/AndroidRuntime(6899): FATAL EXCEPTION: main E/AndroidRuntime(6899): java.lang.RuntimeException: Unable to start activity ComponentInfo{com