-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor layouts; nextprev, timecard
refactored nextprev buttons to separate layout file. refactored "timecard" to separate layout file. cleanup layout_main. next/prev buttons moved to bottom right. related to #43 .
- Loading branch information
1 parent
dee9b96
commit 26238f2
Showing
6 changed files
with
92 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<merge xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<RelativeLayout style="@style/SunsetTimeCard" android:layout_width="match_parent" android:layout_height="wrap_content"> | ||
|
||
<LinearLayout android:id="@+id/cardContent" | ||
style="@style/SunsetTimeCard" android:layout_width="match_parent"> | ||
|
||
<!-- rise/set table --> | ||
<include layout="@layout/info_time_all"/> | ||
|
||
<!-- day length --> | ||
<LinearLayout | ||
android:orientation="vertical" | ||
android:layout_width="wrap_content" android:layout_height="wrap_content" | ||
android:layout_marginTop="10dp" android:animateLayoutChanges="true"> | ||
<include layout="@layout/info_time_daylength"/> | ||
</LinearLayout> | ||
|
||
<!-- next/prev buttons --> | ||
|
||
</LinearLayout> | ||
|
||
<FrameLayout | ||
android:layout_width="wrap_content" android:layout_height="wrap_content" | ||
android:layout_alignBottom="@id/cardContent" android:layout_alignRight="@id/cardContent"> | ||
<include layout="@layout/info_time_nextprev" /> | ||
</FrameLayout> | ||
|
||
|
||
</RelativeLayout> | ||
</merge> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<merge xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<LinearLayout android:orientation="horizontal" | ||
android:layout_width="wrap_content" android:layout_height="wrap_content" | ||
android:layout_gravity="end"> | ||
|
||
<View android:layout_width="0dp" android:layout_height="0dp" android:layout_weight="1"/> | ||
|
||
<ImageButton | ||
android:id="@+id/info_time_prevbtn" | ||
android:layout_width="wrap_content" android:layout_height="wrap_content" | ||
android:layout_gravity="end" | ||
android:src="?attr/icActionPrevious" | ||
android:background="@drawable/ic_transparent" | ||
android:contentDescription="@string/prevDay"/> | ||
|
||
<ImageButton | ||
android:id="@+id/info_time_nextbtn" | ||
android:layout_width="wrap_content" android:layout_height="wrap_content" | ||
android:layout_gravity="end" | ||
android:src="?attr/icActionNext" | ||
android:background="@drawable/ic_transparent" | ||
android:contentDescription="@string/nextDay"/> | ||
|
||
</LinearLayout> | ||
</merge> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters