Autore Topic: Background android  (Letto 290 volte)

Offline ValerioAdo

  • Utente normale
  • ***
  • Post: 323
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    Huawei Ascend g525
  • Sistema operativo:
    windows 8.1
Background android
« il: 30 Ottobre 2014, 14:53:44 CET »
0
Salve a tutti!!

Come potete vedere dal seguente xml

Codice (XML): [Seleziona]
<?xml version="1.0" encoding="UTF-8"?>
<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:layout_width="fill_parent"
   android:layout_height="fill_parent"
   android:columnCount="1"
   android:background="@drawable/sfondo2" >

    <Gallery
       android:id="@+id/gallery1"
       android:layout_column="0"
       android:layout_gravity="left|top"
       android:layout_row="0" />

    <GridLayout
       android:layout_width="207dp"
       android:layout_height="match_parent"
       android:layout_column="0"
       android:layout_gravity="right|top"
       android:layout_row="0"
       android:columnCount="1" >

        <ImageView
           android:id="@+id/imageView1"
           android:layout_width="match_parent"
           android:layout_height="101dp"
           android:layout_column="0"
           android:layout_gravity="left|top"
           android:layout_row="0"
           android:src="@drawable/logo_trasparente" />

        <ListView
           android:id="@+id/listView1"
           android:layout_width="match_parent"
           android:layout_height="352dp"
           android:layout_column="0"
           android:layout_gravity="left|bottom"
           android:layout_row="0" >
        </ListView>

    </GridLayout>

</GridLayout>

uso delle immagini per lo sfondo della mia view e per una image view, eclipse non mi da errori e mi fa vedere correttamente lo sfondo e l'immagine nel graphical layout ma quando mando in run l'app non appaiono, sia nell'emulatore che nel dispositivo fisico.

questo è il mio android manifest
Codice (XML): [Seleziona]
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
   package="com.example.blablapp"
   android:versionCode="1"
   android:versionName="1.0" >

    <uses-sdk
       android:minSdkVersion="16"
       android:targetSdkVersion="21" />
   
     <uses-feature
       android:glEsVersion="0x00020000"
       android:required="true" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
    <!--
    The following two permissions are not required to use
    Google Maps Android API v2, but are recommended.
   -->
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

    <permission
       android:name="com.example.blablapp.permission.MAPS_RECEIVE"
       android:protectionLevel="signature" />

    <uses-permission android:name="com.example.blablapp.permission.MAPS_RECEIVE" />
   

    <application
       android:allowBackup="true"
       android:icon="@drawable/logo_black_1"
       android:label="@string/app_name"
       android:theme="@android:style/Theme.NoTitleBar">
        <activity
           android:name=".MainActivity"
           android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
       <activity android:name="com.example.blablapp.dovesiamo"></activity>
        <activity android:name="com.example.blablapp.eventi"></activity>
         <activity android:name="com.example.blablapp.prenotazione"></activity>
          <activity android:name="com.example.blablapp.gallery"></activity>
         
          <meta-data
           android:name="com.google.android.gms.version"

           android:value="@integer/google_play_services_version" />

         <meta-data
           android:name="com.google.android.maps.v2.API_KEY"
           android:value="AIzaSyChTU4-Uo45jZic2DUSiuhDUnp-_ewiq10" />
    </application>

</manifest>

suggerimenti?
grazie mille a tutti!