Hirdetés

Keresés

Új hozzászólás Aktív témák

  • pirosi91

    csendes tag

    Szeretném az AppWidgetProvider hátterét megváltoztatni:
    A widget xml eleje:

    <LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/w_ll1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/shape2"
    android:orientation="vertical">

    A shape2.xml tartalma:

    <?xml version="1.0" encoding="utf-8"?>
    <shape xmlns:android="http://schemas.android.com/apk/res/android" >

    <stroke
    android:width="2dp"
    android:color="@color/set_ll1" />

    <corners android:radius="5dp" />

    <gradient
    android:angle="270"
    android:centerColor="@color/set_ll3"
    android:endColor="@color/set_ll1"
    android:startColor="@color/set_ll2" />

    </shape>

    Programból szeretném pl a startColor értékét megváltoztatni.

Új hozzászólás Aktív témák