android-support-library Questions

6

After updating to the latest support repository, compile 'com.android.support:appcompat-v7:24.2.0' compile 'com.android.support:design:24.2.0' compile 'com.android.support:percent:24.2.0' compile...

38

Solved

I've just tried to use Android Studio. I've created blank project and tried to create Activity which extends AppCompatActivity. Unfortunalty Android Studio "says" that it Cannot resolve symbol '...

14

Solved

I am using a android.support.v7.widget.Toolbar and learned from this post how to change the color of the hamburger icon to white, but the up/back arrow remains a dark color when I call setDisplayH...
Duaneduarchy asked 20/2, 2015 at 2:49

4

Solved

I had a RecyclerView in ScrollView like this: <ScrollView android:layout_width="match_parent" android:layout_height="match_parent"> <!--other stuff--> <LinearLayout android:l...

6

I'm using compileSdk and targetSdk version 27 and in last release I used new font resource feature for my project but after a day I got 3 crashes for this line of code Typeface typeface = Resource...
Fling asked 16/2, 2018 at 10:43

19

Solved

I have added TabLayout (from support library v22.2.1) to my Fragment as: <android.support.design.widget.TabLayout android:id="@+id/tabs" style="@style/MyColorAccentTabLayout" android:layout_...
Declarant asked 16/9, 2015 at 6:42

7

Solved

Given I'm using a layout like this: <android.support.design.widget.CoordinatorLayout android:id="@+id/main_content" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http...
Menendez asked 7/6, 2015 at 10:36

2

According to the Android developer documentation on Lifecycle: If you use Java 7 Language, Lifecycle events are observed using annotations. Once Java 8 Language becomes mainstream on Android, an...

13

Solved

I'm using the new v7 appcompat library available starting from Android 4.3 (API level 18). Regardless of what is specified in showAsAction for a menu item, it's not shown - it always creates the o...

10

Solved

I just added the new TabLayout component to my app. As you may know there are two different modes for tabs app:tabMode="scrollable" and app:tabMode="fixed". When I use app:tabMode="fixed" I get f...
Cowage asked 29/7, 2015 at 11:9

3

Solved

What is the difference between an AppCompat view component and a standard/default view component? For example, the difference between an AppCompatEditText, and an EditText, or between an AppCompat...

5

Solved

Tried Chip component from both support library com.google.android.support:design:28.0.0-rc01 and material com.google.android.material:material:1.0.0-rc01 StackTrace android.view.InflateExcept...

21

I need to create an interface like Google Newsstand which is a sort of ViewPager (horizontal scroll) over a collapsing header (vertical scroll). One of my requirements is to use the new Design Supp...

2

I'm using FloatingActionsButton (FAB) from the design support library (com.android.support:design:22.2.0). In my application I have two main functionalities which the first is to sync data every X...

6

I am using single activity and many fragments approach in my app Now since in my some fragments I have custom view in toolbar I decided to have separate toolbar for each fragment. How to impleme...

27

Solved

I'm trying to figure out why the heck my Android studio isn't recognizing the AppCompat v7 library correctly. The import statement below shows up as gray and says there's no package for support.v7....

5

Solved

Is there any way to specify the input method type for android.support.v7.preference.EditTextPreference?
Amygdalate asked 20/1, 2016 at 17:28

12

FragmentStatePagerAdapter is deprecated from API 27. What's the alternative of FragmentStatePagerAdapter? private class MainPagerAdapter extends FragmentStatePagerAdapter { MainPagerAdapter(Fragm...

5

Solved

I am trying to hide my tool bar when I scroll my text and image with content. Here I use scrollView for getting scroll content. When I scroll content up, how to hide the tool bar? Here is my XMl co...

3

I have ImageView with app:srcCompat="@drawable/my_app_img" I get: android.content.res.Resources$NotFoundException File res/drawable/$my_app_img__0.xml from color state list resource ID #0x7f07...

9

Solved

My Application consist of 4 fragment as tabs being loaded inside a parent Fragment using FragmentPagerAdapter. The problem is when I run the app and press back and re-open the app I receive this e...

2

Solved

I have a button in action bar, for which the icon is changed depending of a boolean. I would like to check which drawable resource is used. Here is the code where the icon is changed: @Override p...

17

Solved

I'm using vector drawables in android prior to Lollipop and these are of some of my libraries and tool versions: Android Studio : 2.0 Android Gradle Plugin : 2.0.0 Build Tools : 23.0.2 Android...

8

Solved

Started getting this error in the production version of my app. java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.content.Intent.migrateExtraStreamToClipData()' on ...
Deidradeidre asked 26/6, 2016 at 17:31

3

In Android 10 & 11 SDK 30 How to access all files in android devices and also give permission of Allow management of all files I have try requestLegacyExternalStorage, defaultToDeviceProtected...

© 2022 - 2024 — McMap. All rights reserved.