小编use*_*563的帖子

XAPK文件验证失败 - APK扩展文件

我正在使用sdks中给出的扩展文件演示,并将obb文件放在以下位置的SD卡上:

/Android/obb/package-name/package-name/main.versioncode.package-name.obb
Run Code Online (Sandbox Code Playgroud)

但是我收到以下错误:

XAPK文件验证失败


为了生成.obb文件,这是我遵循的程序:

1)将所有图像复制到一个名为的文件夹main.versioncode.package-name.obb,然后压缩该文件.

2)删除.zip文件扩展名并将其放入此文件中 /Android/obb/package-name/myobbfile.obb

这是正确的做法吗?

android apk apk-expansion-files

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

WP8 - 此软件包使用的应用程序名称尚未为此应用程序保留

我正在向应用程序商店提交Windows Phone 8应用程序,当我点击Review And Submit时我得到错误:This package is using an app name that hasn't been reserved for this app

在我的WPAppManifest.xml档案中:

显示名称是:GS值//只是一个例子

这里GS有完整的形式作为全球服务,如果我在应用程序列表屏幕中使用此名称文本剪切,所以我已将其作为GS值.

当我提交应用程序时,我保留了名称Global Service : Value.

所以,我Display nameWPAppManifest.xml和我的Reserve name 应该是一样的吗?还有什么用Package identity name

我怎样才能解决这个问题 ?

xap windows-phone-7 windows-phone windows-phone-8 windows-store-apps

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

如何获得`HTML > Body > Background-Color > Transparent`?

我有这个HTML

<html>
    <head>
    </head>

    <body bgcolor="#FFFFFF" style="margin:0px;padding:0px;">
        <div style="width:100%; color:#000000; padding:25px; font-family: Segoe UI;font-size: 17px;">
        </div>
    </body>
</html>
Run Code Online (Sandbox Code Playgroud)

我已经设置了背景颜色bgcolor="#FFFFFF"。但是我如何使这个透明?

html css background opacity background-color

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

编辑 csproj 文件中的 DefineConstants

我有带有以下标签的 csproj:

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>Bin\Debug</OutputPath>
    <DefineConstants>TRACE;DEBUG;SILVERLIGHT;WINDOWS_PHONE;SUPPORTS_ICLOUD</DefineConstants>
    <NoStdLib>true</NoStdLib>
    <NoConfig>true</NoConfig>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
Run Code Online (Sandbox Code Playgroud)

在这里,如果您看到我添加了一个名为 的宏SUPPORTS_ICLOUD

我有 .txt 文件,其中包含以下内容:

#define SUPPORTS_IN_APP_PURCHASE 

#define BUTTON_THEME    
#define SUPPORTS_TITLE 

#define HAS_HTML_IMAGE_CONTENT 
#define TINT_COLOR 
#define NAVIGATIONTITLE_TEXT_COLOR 

#define SUPPORTS_ICLOUD 
Run Code Online (Sandbox Code Playgroud)

正如您在我的文本文件中看到的那样,我定义了许多宏,现在DefineConstants我可以将其作为文件或字符串一起传递,以便它能够接受所有这些宏,而不是传递每个宏吗?这可能还是有其他方法?

编辑

这是我的 csproj 文件:

<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>10.0.20506</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{0D446418-B7CD-4624-91F4-F3E382F8DD23}</ProjectGuid>
    <ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>POCChild3</RootNamespace>
    <AssemblyName>POCChild3</AssemblyName>
    <TargetFrameworkIdentifier>WindowsPhone</TargetFrameworkIdentifier>
    <TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
    <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
    <SilverlightApplication>true</SilverlightApplication>
    <SupportedCultures>
    </SupportedCultures>
    <XapOutputs>true</XapOutputs>
    <GenerateSilverlightManifest>true</GenerateSilverlightManifest>
    <XapFilename>POCChild3_$(Configuration)_$(Platform).xap</XapFilename> …
Run Code Online (Sandbox Code Playgroud)

c# wpf csproj windows-phone windows-phone-8

3
推荐指数
1
解决办法
8451
查看次数

操作栏检测片段中的后退按钮单击

我有一个片段,其中启用了操作栏后退按钮。

代码 :

@Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
        setHasOptionsMenu(true);
        actionBar = ((MainActivity)getActivity()).getSupportActionBar();
        actionBar.setDisplayHomeAsUpEnabled(true);

        actionBar.setCustomView(R.layout.custom_action_bar);
        actionBar.setDisplayShowTitleEnabled(false);
        actionBar.setDisplayShowCustomEnabled(true);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        mInflater = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        View view = mInflater.inflate(R.layout.fragment_layout, container, false);

        return view;
    }
Run Code Online (Sandbox Code Playgroud)

在上面的代码中actionBar.setDisplayHomeAsUpEnabled(true);启用了操作栏中的后退按钮,但我们如何检测点击它?

我查看了许多示例并尝试了以下操作,但仍然无法正常工作:

在片段中:

@Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
        case android.R.id.home:
            Toast.makeText(getActivity(), "Back", Toast.LENGTH_LONG).show();
            break;
        default:
            break;
        }
        return super.onOptionsItemSelected(item);
    }
Run Code Online (Sandbox Code Playgroud)

此外,片段中显示的后退按钮是黑色的,我需要白色或自定义颜色,我该如何更改?

android android-fragments android-actionbar-compat

3
推荐指数
1
解决办法
5888
查看次数

具有项目点击动画的长列表选择器

我正在努力Windows Phone 8,我有很长的列表选择器,其中包含很少的项目.当我点击我需要添加一些动画的项目时,移动文本并返回.如何实现这一目标?我也试图将相同的内容应用于列表框.

我试过这个:

<Style x:Key="LongListSelectorStyle1" TargetType="phone:LongListSelector">
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
            <Setter Property="ItemTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <UserControl>
                            <Border x:Name="MyBorder" Background="Transparent">
                                <VisualStateManager.VisualStateGroups  >
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualState x:Name="Normal" />
                                        <VisualState x:Name="Selected">
                                            <Storyboard>
                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background)" Storyboard.TargetName="MyBorder">
                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="#000000"/>
                                                </ObjectAnimationUsingKeyFrames>
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                            </Border>
                        </UserControl>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
        </Style>
Run Code Online (Sandbox Code Playgroud)

但它不起作用.

以下是示例截图

在此输入图像描述

我怎样才能实现这一目标?

c# silverlight wpf windows-phone windows-phone-8

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

将多个值保存到单个用户 - Firebase

我有以下JSON结构需要使用Firebase构建.如何在Firebase中保存以下JSON结构的数据.

"followers": {
    "user1": {
      "user2": true,
      "user3": true
    }
  }
Run Code Online (Sandbox Code Playgroud)

下面是我的代码,但它总是会替换user2user3.

Map<String, String> data= new HashMap<String, String>();
data.put(uid,"true");
followersTable.child(user1.uid).setValue(data);
Run Code Online (Sandbox Code Playgroud)

android json firebase firebase-realtime-database

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