-4

Наше приложение выглядит так на Huawei 8510, а версия для Android 2.3.5. Этот скриншот получен от нашего клиента. Мы отключили скриншот на приложении, поэтому наш клиент использовал другой телефон, чтобы сделать снимок экрана.Экран искаженного приложения - Android

Как это возможно?

enter image description here

это код разметки, я думаю, что нет никаких проблем.

<?xml version="1.0" encoding="utf-8"?> 

<LinearLayout 
    android:layout_width="0px" 
    android:layout_height="0px" 
    android:focusable="true" 
    android:focusableInTouchMode="true" /> 

<com.asdasd.asdasd.controls.CMScrollView 
    android:id="@+id/scvAgreement" 
    style="@style/pm_ContentStyle" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:layout_weight="1" 
    android:fadingEdge="none" 
    android:paddingLeft="0dp" 
    android:paddingRight="0dp"> 

    <TextView 
     android:id="@+id/tvAgreement" 
     style="@style/pm_TextStyle" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:layout_gravity="center_horizontal" 
     android:layout_marginLeft="@dimen/pm_content_padding_left" 
     android:layout_marginRight="@dimen/pm_content_padding_right" 
     android:gravity="center" 
     android:text="" 
     android:typeface="monospace" /> 
</com.asdasd.asdasd.controls.CMScrollView> 

<LinearLayout 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:layout_weight="0" 
    android:orientation="horizontal"> 

    <Button 
     style="@style/pm_ButtonStyle_Standart" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_weight="1" 
     android:background="@drawable/selector_btn_black" 
     android:gravity="center" 
     android:onClick="onBtnNegativeClicked" 
     android:text="@string/pgPrivacy_btnNotAccept" 
     android:textSize="@dimen/pm_middle_text_size" 
     android:singleLine="false"/> 

    <Button 
     android:id="@+id/btnSendAgreement" 
     style="@style/pm_ButtonStyle_Standart" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_marginLeft="@dimen/pm_button_margin_left" 
     android:layout_weight="1" 
     android:background="@drawable/selector_btn_black" 
     android:enabled="false" 
     android:gravity="center" 
     android:onClick="onBtnSendAgreement" 
     android:text="@string/pgPrivacy_btnSendAgreement" 
     android:textSize="@dimen/pm_middle_text_size" 
     android:singleLine="false"/> 

    <Button 
     android:id="@+id/btnPositive" 
     style="@style/pm_ButtonStyle_Standart" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_marginLeft="@dimen/pm_button_margin_left" 
     android:layout_weight="1" 
     android:background="@drawable/selector_btn_orange" 
     android:enabled="false" 
     android:gravity="center" 
     android:onClick="onBtnPositiveClicked" 
     android:text="@string/pgPrivacy_btnAccept" 
     android:textSize="@dimen/pm_middle_text_size" 
     android:singleLine="false"/> 
</LinearLayout> 

А также, наш обычай ListView

public class CMScrollView extends ScrollView { 
public static final String LOG_TAG = "com.asdasd.asdasd.controls.CMScrollView"; 
private OnScrollViewReachedToEnd onScrollViewReachedToEnd; 

public CMScrollView(Context context, AttributeSet st) { 
    super(context, st); 
} 

public OnScrollViewReachedToEnd getOnScrollViewReachedToEnd() { 
    return onScrollViewReachedToEnd; 
} 

public void setOnScrollViewReachedToEnd(OnScrollViewReachedToEnd onScrollViewReachedToEnd) { 
    this.onScrollViewReachedToEnd = onScrollViewReachedToEnd; 
} 

@Override 
protected void onScrollChanged(int l, int t, int oldl, int oldt) { 
    View view = (View) getChildAt(getChildCount() - 1); 
    int diff = (view.getBottom() - (getHeight() + getScrollY() + view.getTop()));// Calculate the scrolldiff 
    if (diff == 0) { // if diff is zero, then the bottom has been reached 
     if (ApplicationController.DEBUGMODE) 
      Log.d(CMScrollView.LOG_TAG, "MyScrollView: Bottom has been reached"); 
     if (onScrollViewReachedToEnd != null) { 
      onScrollViewReachedToEnd.onReachedToEnd(this); 
     } 
    } 
    super.onScrollChanged(l, t, oldl, oldt); 
} 

public interface OnScrollViewReachedToEnd { 
    void onReachedToEnd(IngScrollView scrollView); 
}} 

на AndroidManifest GL Версия:

<uses-feature 
android:glEsVersion="0x00020000" 
android:required="true" /> 
+0

Намного больше информации необходимо для тех, кто пытается вам помочь. Версия Android поможет начать. – Peter

+0

И кроме того, я понятия не имею, какую информацию я должен вам рассказать. У меня есть идея, @Peter. – atasoyh

+2

Нам, по крайней мере, нужно будет, чтобы источник мог вообще что-то сказать об этом. Создаете ли вы свой графический интерфейс с помощью стандартных представлений или используете ли RenderScript или какую-то библиотеку OpenGL? – SubliemeSiem

ответ

1

Один из моих друзей нашел многообещающий ответ после много времени & поиск.

Такой же вопрос (мерцающий в GUI) решается просто отключить параметры разработчика

enter image description here

Потому что, если включить аппаратное наложение, GPU будет заботится о UI & иногда будет некоторый конфликт в GUI рендеринга.

Смежные вопросы