所以我在 Google Play 上发布了我的应用程序,它正在等待 Google 检查我的应用程序。但后来他们拒绝了我的应用程序并通过电子邮件向我发送了原因:
该应用程序的完整说明提到了其他品牌:Telegram。
该应用程序的简短说明提到了其他品牌:Telegram。
具有讽刺意味的是,我找不到在开发者控制台上编辑应用程序完整/简短描述的方法。
似乎唯一的方法是更改包名称并将我的应用程序添加为新应用程序。那正确吗?或者是否有办法编辑我的应用程序的完整/简短描述?
所以像下图一样,我希望视图 B 的长度是视图 A 的两倍。
我真正需要的是视图 A 粘在左边缘,视图 B 粘在右边缘,它们之间相互粘连。在长度上,B 将是 A 的两倍。我尝试了很多,但没有运气!最后,有些东西不是我想要的。视图与其对应的边缘之间或两个视图之间存在不需要的空间。
这是我的最后一次尝试:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="10dp"
tools:context=".MainActivity">
<EditText
android:id="@+id/editText"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_marginTop="36dp"
android:ems="10"
android:text="B"
android:inputType="textPersonName"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_weight="2"
app:layout_constraintStart_toEndOf="@+id/textView"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_marginTop="36dp"
android:gravity="center"
android:text="A"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>
Run Code Online (Sandbox Code Playgroud) 所以我使用这个方法来view无限时间地设置 a 的动画:
private void animateView (final View view) {
final Animation animationIn = AnimationUtils.loadAnimation(this,R.anim.fade_in);
final Animation animationOut = AnimationUtils.loadAnimation(this, R.anim.fade_out);
animationIn.setAnimationListener(new Animation.AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {
}
@Override
public void onAnimationEnd(Animation animation) {
view.startAnimation(animationOut);
}
@Override
public void onAnimationRepeat(Animation animation) {
}
});
animationOut.setAnimationListener(new Animation.AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {
}
@Override
public void onAnimationEnd(Animation animation) {
view.startAnimation(animationIn);
}
@Override
public void onAnimationRepeat(Animation animation) {
}
});
view.startAnimation(animationIn);
}
Run Code Online (Sandbox Code Playgroud)
我使用这种方法是因为它似乎animation.setRepeatMode()不起作用 …