Problem:可以轻松缩放图像和Web视图.但我想缩放整个活动.我怎样才能做到这一点?
Here, I provide wire-frame:
从这里你可以理解,我想做什么.
Request如果您有任何解决方案,请分享.
谢谢.
我能翻译的布局基地toYDelta="100%或toYDelta="50%等.
但我想仅在布局中设置动画布局300dp Height.
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="500"
android:fromYDelta="0"
android:toYDelta="100%" />
Run Code Online (Sandbox Code Playgroud)
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="500"
android:fromYDelta="100%"
android:toYDelta="0" />
Run Code Online (Sandbox Code Playgroud)
Animation animation = AnimationUtils.loadAnimation(getActivity().getApplicationContext(),R.anim.slide_down);
animation.setAnimationListener(new AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {
// TODO Auto-generated method stub
}
@Override
public void onAnimationRepeat(Animation animation) {
// TODO Auto-generated method stub
}
@Override
public void onAnimationEnd(Animation animation) {
// TODO Auto-generated method stub
// I can hide layout after animation completion
}
});
Run Code Online (Sandbox Code Playgroud)

基于300dp高度如何做? …
我这样做在Android 1.6和2.2 ...
我在Activity中有一个ScrollView(ScrollView中的所有内容)......
第二个是活动中的一个ListView ....
当我滚动ListView时,那时ScrollView正在滚动,但ListView的Scroll无效 ...
我提供了我所遇到的问题 ......
如果有人有此解决方案,请分享...

我的申请样本:

问题:
当点击按钮1,它只是调用意向的ActivitySecond
button1.setOnClickListener(this);
public void onClick(View v) {
// TODO Auto-generated method stub
switch (v.getId())
{
case R.id.button1:
Intent intent = new Intent(getApplicationContext(), ActivitySecond.class);
startActivity(intent);
break;
default:
break;
}
}
Run Code Online (Sandbox Code Playgroud)
但是,在双击它打开两次 ActivitySecond.
如何解决它.
如果有任何解决方案,请分享它.
谢谢.
先仔细阅读问题......
我需要直线距离,而不是步行,汽车等.
看看下面给出的这张图片,

谷歌为我们提供驾车和驾车的距离.
但我不想要它,我希望两个位置之间的直线距离(纬度 - 经度).
显示为RED LINE.
注意:我不想在Google地图上放置红线,只想要单位距离(英里,公里等)
小样

需求
我想把自定义按钮与选择器.
上面给出了模拟.
如果有人知道解决方案然后分享它.
谢谢.
我希望左边有一个翻译,当一个片段消失以显示另一个片段时.
我有这个翻译:
ft.setCustomAnimations(R.anim.lefttoright,R.anim.righttoleft);
Run Code Online (Sandbox Code Playgroud)
我的翻译左右:
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false" >
<translate
android:duration="700"
android:fromXDelta="-100%"
android:fromYDelta="0%"
android:toXDelta="0%"
android:toYDelta="0%" />
</set>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false" >
<translate
android:duration="700"
android:fromXDelta="0%"
android:fromYDelta="0%"
android:toXDelta="100%"
android:toYDelta="0%" />
</set>
Run Code Online (Sandbox Code Playgroud)
但它没有运行,只有从左到右的翻译运行...为什么?
android ×7
button ×2
slide ×2
animation ×1
distance ×1
double-click ×1
listview ×1
scroll ×1
scrollview ×1
translation ×1
zooming ×1