小编Kal*_*ani的帖子

如何在eclipse中显示android项目的bin文件夹?

我正在使用eclipse Helios.我的问题是我在eclipse的项目中看不到bin文件夹.实际上它存在于我的项目所在的项目中(在工作区中).任何帮助将不胜感激.谢谢

eclipse android

5
推荐指数
1
解决办法
2360
查看次数

如何在屏幕的某些部分禁用调度触摸事件

我想禁用某些区域的调度触摸,以便您理解这里是我的屏幕.

在此输入图像描述

您可以在图像中看到页眉,页脚和Mapview,但是当我点击位置按钮(标题中的右侧)时,我的地图也会收到通知(就像它被触摸),这是我不想要的.我希望只有按钮的onClick事件才能被点击而不是发送事件.

这是我的XML:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<!-- include title bar for all screen -->

<include
    android:id="@+id/include1"
    layout="@layout/titlebar_layout"
    android:layout_gravity="top" />



<FrameLayout
    android:layout_gravity="center"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_weight="0.88" 
    >

    <com.google.android.maps.MapView
        android:id="@+id/map"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_weight="1.63"
        android:apiKey="0VkXbAOFvAq7b6uaGHSmnS2a2VosPxoS6ceHY_g"
        android:clickable="true" >
    </com.google.android.maps.MapView>


</FrameLayout>

<include
    android:id="@+id/include2"
    android:layout_gravity="bottom"
    android:layout_marginBottom="38dp"
    layout="@layout/bottom_layout" />

</LinearLayout>
Run Code Online (Sandbox Code Playgroud)

任何帮助将不胜感激.

android dispatchevent android-mapview

2
推荐指数
1
解决办法
6582
查看次数

Card.io获得信用卡图像和CardType密钥android

我在我的应用程序中使用card.io扫描信用卡.我的问题是我无法获得卡片图像徽标(即使即时通过(CardIOActivity.EXTRA_USE_CARDIO_LOGO,true)).以及我没有得到卡的钥匙(例如.VISA有4,MASTERCARD有55或51).

答案将不胜感激.

提前致谢.

我对Key的意思是CardTypeId.我们在ios中得到CardTypeId,就像这样..

(void)userDidProvideCreditCardInfo:(CardIOCreditCardInfo *)info inPaymentViewController:(CardIOPaymentViewController *)scanViewController {
// The full card number is available as info.cardNumber, but don't log that!
NSLog(@"Received card info. Number: %@, expiry: %02i/%i, cvv: %@.cardtype %u", info.cardNumber, info.expiryMonth, info.expiryYear, info.cvv,info.cardType);
//getting cardtype (like visa) from info.cardType (this is what we called as CardTypeId //an ineger value)

NSString *cardTypeString=[NSString stringWithFormat:@"%@",[CardIOCreditCardInfo     displayStringForCardType:info.cardType usingLanguageOrLocale:[[NSLocale currentLocale] localeIdentifier]]];
}
Run Code Online (Sandbox Code Playgroud)

那么如何在android中获取整数(info.cardType)(info是CardIOCreditCardInfo的对象)FYI info.cardType返回整数,如53,52等.

java android card.io

0
推荐指数
1
解决办法
3928
查看次数