Updated widget with new backdrop

closes #130
This commit is contained in:
2012-07-23 00:29:49 -04:00
parent 0cf56e8158
commit 79873c8efc
5 changed files with 47 additions and 29 deletions

View File

@@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.TwentyCodes.android.LocationRinger"
android:installLocation="internalOnly"
android:versionCode="72"
android:versionName="89bc8aa" >
android:versionCode="76"
android:versionName="0cf56e8" >
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="16"/>
@@ -43,7 +43,7 @@
<activity
android:name=".ui.RingerInformationActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:launchMode="singleTask"/>
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"/>
<receiver
android:name=".receivers.SystemReceiver"

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -1,30 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:background="@drawable/appwidget_dark_bg" />
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:orientation="vertical" >
<TextView
android:id="@+id/text"
style="@style/styleName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center|left"
android:text="@string/current_ringer" />
<TextView
android:id="@+id/widget_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center|left"
android:text="test"
tools:ignore="HardcodedText" />
</LinearLayout>
<ImageButton
android:id="@+id/widget_get_location_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/icon"
android:layout_centerVertical="true"
android:layout_marginRight="10dp"
android:layout_toLeftOf="@+id/linearLayout1"
android:background="@drawable/ic_launcher"
android:contentDescription="@string/start_location_service" />
<TextView
style="@style/styleName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/current_ringer" />
<TextView
android:id="@+id/widget_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="test"
tools:ignore="HardcodedText" />
</LinearLayout>
</RelativeLayout>

View File

@@ -2,6 +2,6 @@
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:initialLayout="@layout/get_location_widget"
android:minHeight="40dp"
android:minWidth="110dp"
android:resizeMode="horizontal|vertical"
android:updatePeriodMillis="10000" />
android:minWidth="180dp"
android:resizeMode="horizontal"
android:updatePeriodMillis="10000" android:minResizeWidth="180dp" android:minResizeHeight="40dp"/>

View File

@@ -54,8 +54,7 @@ public class RingtoneFragment extends BaseFeatureFragment implements OnClickList
private Uri mRingtoneURI;
private SeekBar mVolume;
public RingtoneFragment(final ContentValues info, final OnContentChangedListener changedListener, final FeatureRemovedListener removedListener, final int stream,
final int id) {
public RingtoneFragment(final ContentValues info, final OnContentChangedListener changedListener, final FeatureRemovedListener removedListener, final int stream, final int id) {
super(id, R.layout.ringtone_fragment, removedListener);
if (info == null)