Skip to content

Commit e11fbb7

Browse files
author
Paul Ruiz
committed
updated layout for stay awake to support round faces
1 parent d10396e commit e11fbb7

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

StayAwake/mobile/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
defaultConfig {
88
minSdkVersion 18
99
targetSdkVersion 19
10-
versionCode 92
11-
versionName "1.2.10"
10+
versionCode 93
11+
versionName "1.2.11"
1212
}
1313

1414
buildTypes {

StayAwake/wear/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
defaultConfig {
88
minSdkVersion 19
99
targetSdkVersion 19
10-
versionCode 92
11-
versionName "1.2.10"
10+
versionCode 93
11+
versionName "1.2.11"
1212
}
1313

1414
buildTypes {

StayAwake/wear/src/main/java/com/ptrprograms/stayawake/Activities/IterationActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private void setupIterationArray() {
8383
private void initList() {
8484
mListView = (ListView) findViewById( R.id.list_view );
8585
mListView.setAdapter( new ArrayAdapter<IterationListItem>( this,
86-
android.R.layout.simple_list_item_1, mIterationTimes ) );
86+
R.layout.simple_list_item, mIterationTimes ) );
8787
mListView.setOnItemClickListener( this );
8888
}
8989

StayAwake/wear/src/main/res/layout/activity_iteration.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
android:layout_width="match_parent"
1010
android:layout_height="wrap_content"
1111
android:text="Select an interval"
12+
android:gravity="center"
1213
/>
1314

1415
<ListView
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
4+
android:id="@android:id/text1"
5+
android:layout_width="match_parent"
6+
android:layout_height="wrap_content"
7+
android:textAppearance="?android:attr/textAppearanceListItemSmall"
8+
android:gravity="center"
9+
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
10+
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
11+
android:minHeight="?android:attr/listPreferredItemHeightSmall"
12+
/>

0 commit comments

Comments
 (0)