小编Rah*_*Raj的帖子

如何在monotouch中更改UI按钮文本的大小?

我试过了代码

UIbutton *bt = new UIbutton;
bt.Font = UIFont.SystemFontSize(35);
Run Code Online (Sandbox Code Playgroud)

但我不断收到编译错误"由于保护级别,字体大小无法访问".任何解决方法?

objective-c uikit xamarin.ios ios

6
推荐指数
1
解决办法
2134
查看次数

签署exe会使通信变慢吗?

脚本

我有一个C#可执行文件,使用强密钥签名.从这个C#应用程序我使用'pinvoke'调用C++执行(没有签名).我观察到C++可执行文件的优化有很大的延迟.这有什么理由吗?

c# pinvoke assembly-signing c#-3.0 c#-4.0

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

打印在android和iOS的webview中不起作用

我在我的Web应用程序中使用Google Cloud打印来打印文档.当我在网络浏览器中运行应用程序时它工作正常..

<script src="http://www.google.com/cloudprint/client/cpgadget.js">
</script>
<script>
window.onload = function () {
alert('Loaded the page');
var gadget = new cloudprint.Gadget();
alert('Loaded the gadget');
gadget.setPrintButton(
cloudprint.Gadget.createDefaultPrintButton("print_button_container"));
gadget.setPrintDocument("url", "Test Page",     
"http://www.google.com/landing/cloudprint/testpage.pdf");
}
</script>
Run Code Online (Sandbox Code Playgroud)

但是,当我使用Android中的webView(iOS中的UI Webview)运行应用程序Web应用程序时...打印不起作用.它成功加载打印机列表...我可以选择打印机并进入最终打印页面.之后当我点击打印时,没有任何反应.

请分享您的想法

google-cloud-print

5
推荐指数
0
解决办法
509
查看次数

如何在Monotouch中实现ShouldChangeCharacters?

我有一个UITextField,我想使用ShouldChangeCharacters委托方法更改字符.但是当我使用textField obj时,它表示与UITextFieldChange不匹配......我应该如何在Monotouch中执行此操作?

uitextfield xamarin.ios

4
推荐指数
1
解决办法
1951
查看次数

iOS 7中的本地化:选择以前使用的语言设置

我在iOS 7中使用本地化,并具有德语和英语的可本地化字符串文件.当我选择相应的语言时,本地化工作是完美的.但如果我切换到任何其他语言,则显示基于先前的选择.

我希望它选择任何其他语言选择的英语,任何想法将不胜感激.

nslocalizedstring ios ios7

4
推荐指数
1
解决办法
3294
查看次数

在Android中滑动抽屉问题

我在活动中使用listview和slidedrawer.我的目的是打开slidedrawer并在列表项单击时显示内容.slidedrawer内容将根据所选项目进行更改.

UI布局如下所示.

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/RelativeLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent" >

<ListView
    android:id="@+id/presentation_list"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" >
</ListView>

<SlidingDrawer
    android:id="@+id/slidingDrawer1"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_alignParentLeft="true"
    android:layout_alignParentTop="true"
    android:content="@+id/content"
    android:handle="@+id/handle"
    android:orientation="horizontal" >

    <Button
        android:id="@+id/handle"
        android:layout_width="40dp"
        android:layout_height="fill_parent"
        android:background="@android:color/darker_gray" />

    <LinearLayout
        android:id="@+id/content"
        android:layout_width="match_parent"
        android:layout_height="match_parent"

        android:orientation="vertical" >

        <TextView
            android:id="@+id/textView1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="Presentation&apos;s Images.. Please Flip"
            android:textColor="@android:color/black"
            android:textStyle="bold" />
        <ImageView
            android:id="@+id/content_imageview"
            android:layout_width="match_parent"
            android:layout_height="200dp"
            android:background="@android:color/black" 
            android:layout_below="@id/presentation_list"
            />
    </LinearLayout>
</SlidingDrawer>
Run Code Online (Sandbox Code Playgroud)

我点击listview滑块打开,当我点击slidedrawer的imageview时,我的listview也被点击了.控件进入listview项目单击方法并且图像被更改

任何人都可以帮我纠正这个问题吗?

android android-intent android-ui

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