English 中文(简体)
• 如何树立起不活跃的纽芬兰的形象
原标题:How to set an image for an inactive button
  • 时间:2009-12-15 09:37:03
  •  标签:
  • android

我不想打上一个具体的形象,因为我的纽子无法点击。 由于这一xml,已经根据有重点和有压力的状态选定了这个纽州的形象:

  <?xml version="1.0" encoding="utf-8"?>

<selector xmlns:android="http://schemas.android.com/apk/res/android">

    <item android:clickable="false"
        android:drawable="@drawable/cmb_bouton_acces_inactive" />

    <item android:state_focused="true" android:state_pressed="true"
        android:drawable="@drawable/cmb_bouton_acces_hover" />

    <item android:state_focused="false" android:state_pressed="true"
        android:drawable="@drawable/cmb_bouton_acces_hover" />

    <item android:drawable="@drawable/cmb_bouton_acces" />

</selector> 

但是,我不知道在无法点击的情况下如何为纽特确定新的形象。

任何想法?

Regards, Quentin

问题回答

Try android:state_enabled=“false” as the lifier. 号”与显示实例的透镜。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签