Widget config finished

This commit is contained in:
Jaculabilis 2016-10-15 18:49:35 -05:00
parent 9fa545fcd0
commit 0789bbfdfa
3 changed files with 40 additions and 43 deletions

View File

@ -1,21 +1,16 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#09C"
android:padding="@dimen/widget_margin">
<TextView
android:id="@+id/appwidget_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_margin="8dp"
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#09C"
android:contentDescription="@string/appwidget_text"
android:text="@string/appwidget_text"
android:textColor="#ffffff"
android:textSize="24sp"
android:textStyle="bold|italic" />
tools:ignore="ContentDescription"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" />
</RelativeLayout>

View File

@ -1,40 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
android:layout_height="match_parent">
<Button
android:id="@+id/select_image_button"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:text="@string/select_an_image" />
android:orientation="vertical"
android:padding="16dp">
<ImageView
android:id="@+id/previewImageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxHeight="300dp"
android:adjustViewBounds="true"
android:layout_marginBottom="8dp"
android:layout_gravity="center_horizontal"
android:src="@drawable/example_appwidget_preview"
tools:ignore="ContentDescription" />
<Button
android:id="@+id/select_image_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:text="@string/select_an_image" />
<Button
android:id="@+id/finish_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:text="@string/finish" />
<ImageView
android:id="@+id/previewImageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_gravity="center_horizontal"
android:src="@drawable/example_appwidget_preview"
tools:ignore="ContentDescription" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/about"/>
<Button
android:id="@+id/finish_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:text="@string/finish" />
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/about"/>
</LinearLayout>
</ScrollView>

View File

@ -1,7 +1,6 @@
<resources>
<string name="app_name">MicroFrame</string>
<string name="appwidget_text">EXAMPLE</string>
<string name="select_an_image">Select an Image</string>
<string name="finish">Finish</string>
<string name="about">Version: 0.2.21\nAuthor: Tim Van Baak</string>
<string name="about">Version: 0.2.23\nAuthor: Tim Van Baak</string>
</resources>