Страница 1 из 1

Почему playMarket не пропускает версию для планшета

Добавлено: 24 мар 2014, 13:03
volkodav01
Привет. Подскажите пожалуйста,почему PlayMarket не пропускает версию для планшетов,пишет оптимизируйте под экраны 10 планшета

Файл экрана

Код: Выделить всё

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@color/background">

    <fragment
            android:layout_width="@dimen/size_fragment"
            android:layout_height="fill_parent"
            android:name="com.dpmebel.ru.FragmentMenu2"
            android:id="@+id/fragment"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/screen_terminology_imageView"/>

    <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/screen_terminology_imageView"
            android:src="@drawable/header_object"
            android:layout_alignParentLeft="true"
            android:layout_alignParentTop="true"
            android:background="@android:color/darker_gray"/>
    <ScrollView android:layout_width="2069dp"
                android:layout_height="fill_parent"
                android:id="@+id/screen_terminology_ScrollView1"
                android:layout_below="@+id/screen_terminology_imageView"
                android:layout_toRightOf="@+id/fragment">
        <TextView
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:id="@+id/screen_terminology_textView"
                android:scrollbars="vertical"
                android:singleLine="false"
                android:textStyle="bold"
                android:text="@string/app_name"
                android:padding="@dimen/padding"/>
    </ScrollView>

    <Button
            android:layout_width="wrap_content"
            android:layout_height="26dp"
            android:text="@string/phone_skype"
            android:id="@+id/screen_terminology_button_call_skype"
            android:background="@android:color/darker_gray"
            android:layout_toRightOf="@+id/screen_terminology_imageView"
            android:layout_alignBottom="@+id/screen_terminology_imageView"
            android:layout_alignRight="@+id/screen_terminology_ScrollView1"
            android:layout_below="@+id/screen_terminology_button_call"
            android:onClick="onClick"/>

    <Button
            android:layout_width="wrap_content"
            android:layout_height="27dp"
            android:text="@string/phone_tel"
            android:id="@+id/screen_terminology_button_call"
            android:background="@android:color/darker_gray"
            android:layout_toRightOf="@+id/screen_terminology_imageView"
            android:layout_alignTop="@+id/screen_terminology_imageView"
            android:layout_alignRight="@+id/screen_terminology_ScrollView1"
            android:onClick="onClick"/>
</RelativeLayout>
Файл class

Код: Выделить всё

public class ScreenTerminologySelected extends Activity implements FragmentMenu.onSomeEventListener {

    final String toLogs = "ScreenTerminologySelected";
    FragmentMenu frag2;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.screen_terminology);
        if ( API.isPhone(getApplicationContext())) {
            getActionBar().setDisplayHomeAsUpEnabled(true);
        }
         textView.setText(request);

    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()){
            case android.R.id.home:
                if ( API.isPhone(getApplicationContext())) {
                    FragmentTransaction ft = getFragmentManager().beginTransaction();
                    Log.e(toLogs,"fr = " + frag2);
                    if (frag2 == null) {
                        frag2 = new FragmentMenu();
                        ft.add(R.id.screen_terminology_frameLayout, frag2);
                    } else {
                        ft.remove(frag2);
                        frag2 = null;
                    }
                    ft.commit();
                }
                Log.e(toLogs,"press HOME");
                break;
            default:
                break;
        }
        return super.onOptionsItemSelected(item);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void someEvent(int s) {
        //обработка
    }

}
При этом версия для телефонов проходит.