共 17 篇文章 |
|
ui设计时,需要指定某个元素的drawable时,有时候需要告诉Android我希望设置它为透明,偶然在源码中发现,就是以下这段代码:view plaincopy to clipboard?android:background="@android:color/transparent" 阅68 转0 评0 公众公开 11-12-31 11:22 |
<View android:layout_width="fill_parent" android:layout_height="1px" android:background="?android:attr/listDivider" /> 阅447 转3 评0 公众公开 11-12-31 11:21 |
> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true" android:drawable="@drawable/bg_alibuybutton_pressed" /> <item android:state_focused="true" android:drawable="@drawable/b... 阅48 转0 评0 公众公开 11-12-31 11:20 |
现在开发中的功能需要直接跳转到拨号、联系人、短信界面等等,查找了很多资料,自己整理了一下。Intent intent =new Intent();intent.setAction("android.intent.action.CALL_BUTTON");startActivity(intent);Uri uri = Uri.parse("tel:xxxxxx");Intent intent = new Intent(Intent.ACTION_DIAL, uri);builder.withValue(S... 阅644 转7 评0 公众公开 11-12-30 14:59 |
if(err){ NSLog(@"audioSession: %@ %d %@", [err domain], [err code], [[err userInfo] description]);recorder){ NSLog(@"recorder: %@ %d %@", [err domain], [err code], [[err userInfo] description]);UIAlertView *alert = [[UIAlertView alloc] initWithTitle: @"Warning" message: [err localize... 阅332 转2 评0 公众公开 11-12-18 19:57 |