Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Oct 20, 2020
1 parent ae1746c commit cf0af42
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 16 deletions.
Binary file added widget/android/dist/ti.widget-android-1.0.0.zip
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">

<corners android:radius="10dp" />
<solid android:color="#88000000" />
</shape>
Binary file modified widget/android/platform/android/res/drawable/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 15 additions & 16 deletions widget/android/platform/android/res/layout/example_appwidget.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/widget"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:id="@+id/widget"
android:background="#66000000">
android:background="@drawable/backgroundlayout"
android:padding="5dip"
android:gravity="center_vertical"
android:orientation="horizontal">

<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">

<TextView
android:id="@+id/town1"
android:id="@+id/town1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="3dip"
android:text="-"
android:textColor="#fff"
android:layout_height="wrap_content" />
android:textColor="#fff" />

<TextView
android:id="@+id/numValue1"
Expand All @@ -30,24 +32,22 @@
android:textSize="22sp"
android:textStyle="bold" />



</LinearLayout>

<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">

<TextView
android:id="@+id/town2"
android:id="@+id/town2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="right"
android:padding="3dip"
android:text="-"
android:textColor="#fff"
android:layout_height="wrap_content" />
android:textColor="#fff" />

<TextView
android:id="@+id/numValue2"
Expand All @@ -61,7 +61,6 @@
android:textStyle="bold" />



</LinearLayout>

</LinearLayout>

0 comments on commit cf0af42

Please sign in to comment.