android-support-library

Why is textColor in android:textAppearance ignored?

╄→гoц情女王★ 提交于 2019-12-11 04:38:58
问题 I use android support library, which version I don not know because I do not know of a way how to check it. The problem I am facing that apparently the value for android:textColor attribute is ignored. If I define a style and assign it to textAppearance of EditText the color textColor is ignored. So, I have a following layout: <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <!-- This text should be red, but it is black -->

Android AppCompat Toolbar does not respond to touching action items

╄→гoц情女王★ 提交于 2019-12-11 04:17:45
问题 I'm following these instructions to implement an AppCompat Toolbar in my Android app. I am using AppCompat version 7:22.0.1 Also, I'm using this toolbar in addition to the actionBar (it's not replacing the ActionBar , as I see in many other examples). The toolbar shows up, and it even shows the icon I specificed, but it does not respond when I touch the icon. Has anyone had a similar problem with the AppCompat Toolbar ? Any suggestions on what to try next? Here's my code from my browse()

Android Support Library ActionBar NullPointerException on version 2.2 (level 8) - conflict with preferences.xml

我的未来我决定 提交于 2019-12-11 04:06:55
问题 I am using the v7 Support Library to show an ActionBar on Android 2.x. When I deploy the app to the device in my IDE (Intellij IDEA) the app works fine. When I build and package the app to be deployed to the Play Store using maven, I find that I get the following exception when I install and run the packaged app on my device and the app crashes. (It fails on the v8 simulator too). It works fine in both scenarios on android v4.3. Any idea why this would be crashing when built with maven? 01-07

Failed to resolve: com.android.support:appcompat-v7:22.2.1

跟風遠走 提交于 2019-12-11 04:00:02
问题 when I import an eclipse project to the AS,an error occurred: E:\studioWorkspace\YTHDBL\yTHDBL\build.gradle Error:Error:line (25)Failed to resolve: com.android.support:appcompat-v7:22.2.1 Install Repository and sync project Show in File open.dependency.in.project.structure Show in Project Structure dialog</a> Error:Error:line (24)Failed to resolve: com.android.support:support-v4:22.2.1 Install Repository and sync project Show in File open.dependency.in.project.structure Show in Project

NavigationView has erratic behavior with selection

懵懂的女人 提交于 2019-12-11 03:34:08
问题 OK, the behavior or my NavigationView works. I click on the settings and it takes me there. I click on my first item, it does what it should. I click on the second item, it does what it should. However, my issue is with the selection state. I will click on an item, and it will not select it. The only selection that works is my Settings menu. When I click on that item, the settings menu will become selected, along with all previous items I clicked on. Scenarios On App Load Go to NavigationView

appcompat v7 package does not exist

天涯浪子 提交于 2019-12-11 03:23:15
问题 Using tools 23.0.2 And latest SDK Using manual ant build. I've checked my xml resources for errors. I've run them through tidy and they are ok. I've cleaned the project. But still I'm getting errors trying to use appcompat v7 support library. here's where I have the appcompat_v7 library: $ ls ../sdk/extras/android/support/v7/appcompat/ AndroidManifest.xml build.xml libs proguard-project.txt README.txt src bin gen local.properties project.properties res And in my main project project

Build Android support library v4 from source in Android Studio

谁说胖子不能爱 提交于 2019-12-11 02:57:45
问题 All the source code is included when downloading the support libraries via SDK manager in Android Studio. Now I need to fix a bug in the support v4 code and add it as a *.jar in my application. But I don't understand how I open and build the source code in Android Studio. Do I import it as a new project? Do I open it as an existing project? What directory is the directory to be imported/opened? Can I just rebuild support-v4 code into a jar? Thanks! 来源: https://stackoverflow.com/questions

Getting a Reference to a GoogleMap in a fragment using Support Library v4

拟墨画扇 提交于 2019-12-11 02:53:46
问题 I'm trying to add Google Maps to a fragment using the v4 support lib, but I have some trouble using getMap() to reference it. I'm adding the fragment like so (following the example at http://developer.android.com/training/basics/fragments/fragment-ui.html#AddAtRuntime) : public class MainActivity extends FragmentActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); if (findViewById(R.id.fragment_container) !=

GrantPermissionCallable: Permission: android.permission.SET_TIME cannot be granted

[亡魂溺海] 提交于 2019-12-11 02:28:31
问题 I'm trying to use the new GrantPermissionRule that's a part of the latest support library. In my Manifest I declare the following: <uses-permission android:name="android.permission.SET_TIME"/> And in my code I call: @Rule public GrantPermissionRule mPermissionRule = GrantPermissionRule.grant(Manifest.permission.SET_TIME); But when I run the test I see the error: 12-28 14:09:35.063 7193-7215/com.blah.test E/GrantPermissionCallable: Permission: android.permission.SET_TIME cannot be granted! 12

How to Solve 'Manifest merger failed' error in android-studio?

为君一笑 提交于 2019-12-11 00:15:18
问题 Error from androidmanifest.xml : Execution failed for task ':app:processDebugManifest' Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 7 declared in library [com.android.support:appcompat-v7:23.2.0] C:\Users\bsuni\AndroidStudioProjects\Rec\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.2.0\AndroidManifest.xml Suggestion: use tools:overrideLibrary="android.support.v7.appcompat" to force usage 回答1: I have regenerate this error : You