有没有办法用Android谷歌地图api v2开启虚拟旅游?(与此类似:https://www.google.com/maps/@37.772031,-122.432005,3a,75y,12.85h,79.63t/data=!3m5!1e1!3m3!1srR8mp3c5XZoAAAAGOphoBg!2e0!3e2)
我想点击一个gmap中的一个地方并提供打开虚拟游览的可能性(以及其他信息)(即使在webview中,但我如何创建上述链接?)
我在我的应用程序中使用Parse SDK(https://github.com/ParsePlatform/Parse-SDK-Android).
我的应用程序还使用Facebook Utils来提供Facebook的登录体验(https://github.com/ParsePlatform/ParseFacebookUtils-Android)
最近我收到了Facebook开发者关于我的一个应用程序的以下消息:"xxx最近对Graph API v2.0进行了API调用,该调用将于8月8日星期一到达2年弃用窗口的末尾, 2016年.请将所有电话迁移到v2.1或更高版本,以避免潜在的破坏体验."
我该如何解决这个问题?
这是dependecies部分中的build.gradle文件:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.parse:parse-android:1.13.1'
compile 'com.parse:parsefacebookutils-v4-android:1.10.4@aar'
compile 'com.parse.bolts:bolts-tasks:1.4.0'
compile 'com.parse.bolts:bolts-applinks:1.4.0'
compile 'com.jeremyfeinstein.slidingmenu:library:1.3@aar'
compile 'com.soundcloud.android:android-crop:1.0.0@aar'
compile 'com.facebook.android:facebook-android-sdk:4.+'
compile files('libs/universal-image-loader-1.9.3.jar')
}
Run Code Online (Sandbox Code Playgroud)
这是我使用Facebook SDK的代码中唯一的一点:
ParseFacebookUtils.logInWithReadPermissionsInBackground(Login.this, permissions, new LogInCallback() {
@Override
public void done(final ParseUser user, ParseException err) {
fbdialog = new ProgressDialog(Login.this);
fbdialog.setTitle("Contacting Facebook");
fbdialog.setMessage("Please wait a moment. We are contacting Facebook to perform the registration");
fbdialog.show();
if (user == null) { …
Run Code Online (Sandbox Code Playgroud) android facebook facebook-graph-api parse-platform parsefacebookutils
在这里你是我的问题:我想在android中做一个看起来像这个网格的布局:
为此,我创建了这个布局:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/RelativeLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
android:orientation="vertical" >
<TableLayout
android:id="@+id/tableLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TableRow
android:id="@+id/tableRow1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.3">
<Button
android:id="@+id/clientimain"
android:layout_width="0dip"
android:layout_weight="1" android:layout_height="fill_parent"/>
<Button
android:id="@+id/button1"
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1"
android:text="Button" />
</TableRow>
<TableRow
android:id="@+id/tableRow2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.3" >
<Button
android:id="@+id/button2"
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1"
android:text="Button"/>
<Button
android:id="@+id/button6"
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1"
android:text="Button" />
</TableRow>
<TableRow
android:id="@+id/tableRow3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.3" >
<Button
android:id="@+id/button3"
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1"
android:text="Button"
/>
<Button
android:id="@+id/button7"
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1"
android:text="Button"
/>
</TableRow>
</TableLayout>
</RelativeLayout>
Run Code Online (Sandbox Code Playgroud)
所以基本上它由表格布局中的6个按钮组成,正确设置了权重属性(或者我希望如此!).结果看起来很好,直到我尝试设置每个按钮的背景属性.在这种情况下,按钮获取放入的图像的高度(宽度正常).例如,如果我设置大小为96px …
我正在尝试重启事件.
我创建了以下类:
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
public class OnBootReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
Log.i("MYBOOTRECEIVER", "HELLO!");
}
}
Run Code Online (Sandbox Code Playgroud)
然后在清单文件中我推出了以下xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mypackage"
android:installLocation="internalOnly"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="3"
android:targetSdkVersion="8" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application android:label="@string/app_name" >
<receiver android:name=".OnBootReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
<category android:name="android.intent.category.HOME" />
</intent-filter>
</receiver>
</application>
</manifest>
Run Code Online (Sandbox Code Playgroud)
但是,在我安装此应用程序并重新启动设备后,没有任何反应.(我正在使用带有android 3.2的Galaxy tab 8.9).正如您从清单中看到的那样,我已经在内部存储器上安装了应用程序(就像在stackoverflow上的类似问题上提到的那样)......我还推出了一个Quickboot_poweron动作(看看galaxy tab是否有与htc设备相似的行为) ......但没什么.我希望有人可以帮助我!
我正在创建我的第一个电子商务网站,我正在使用Magento来做,但我不想在添加项目后直接进入购物车页面,我该怎么做?
非常感谢
PS具体到你的答案我刚刚开始使用Magento
我已经创建了一个精美的joomla网站,其精灵导航在PC上工作正常,但在移动设备和平板电脑上有一些问题:在我"触摸"链接后,背景图像消失了......我该如何解决这个问题?
这是我的CSS的一个例子:
#brands_menu {
margin: auto;
}
.tab td {
display: inline-block;
height: 153px;
width: 153px;
border: none;
}
a.license1:link {
display:block;
width:153px;
height:153px;
text-indent:-9999px;
background:url(../images/sprite.png) 0px 0px no-repeat;
float: left;
border: none;
}
a.license1:hover {
display:block;
width:153px;
height:153px;
text-indent:-9999px;
background:url(../images/sprite.png) 0px -153px no-repeat;
float: left;
border: none;
Run Code Online (Sandbox Code Playgroud)
}
android ×4
add ×1
button ×1
cart ×1
css-sprites ×1
facebook ×1
google-maps ×1
java ×1
joomla ×1
layout ×1
magento ×1
shopping ×1
tablelayout ×1
tablet ×1
virtual-tour ×1