-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db7ba79
commit 8ab203e
Showing
14 changed files
with
598 additions
and
8 deletions.
There are no files selected for viewing
171 changes: 171 additions & 0 deletions
171
app/src/main/res/layout-sw600dp-land/activity_alerts.xml
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,171 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.coordinatorlayout.widget.CoordinatorLayout 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:id="@+id/activity_root" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@color/default_bg" | ||
> | ||
|
||
<com.google.android.material.appbar.AppBarLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
> | ||
|
||
<androidx.appcompat.widget.Toolbar | ||
android:id="@+id/toolbar" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="@color/bg_toolbar" | ||
app:title="@string/add_alerts" | ||
app:navigationIcon="?attr/homeAsUpIndicator" | ||
app:titleTextAppearance="@style/ActionBarTitleText" | ||
/> | ||
|
||
</com.google.android.material.appbar.AppBarLayout> | ||
|
||
<ScrollView | ||
android:layout_width="@dimen/tablet_width" | ||
android:layout_height="match_parent" | ||
app:layout_behavior="@string/appbar_scrolling_view_behavior" | ||
android:scrollbars="none" | ||
android:layout_gravity="top|center_horizontal" | ||
> | ||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" | ||
android:layout_gravity="center_horizontal" | ||
> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="@color/error_red" | ||
android:gravity="center" | ||
android:padding="@dimen/activity_horizontal_margin" | ||
android:textColor="@color/snackbar_text" | ||
android:text="@string/alerts_disabled" | ||
android:visibility="gone" | ||
tools:visibility="visible" | ||
android:id="@+id/alerts_disabled_message" | ||
/> | ||
|
||
<TextView | ||
android:id="@+id/tickerName" | ||
style="@style/BoldTextView" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="16dp" | ||
android:layout_marginTop="20dp" | ||
android:layout_marginRight="16dp" | ||
android:gravity="center" | ||
android:textSize="@dimen/xlarge_text" | ||
tools:text="GOOG" | ||
/> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="16dp" | ||
android:layout_marginTop="10dp" | ||
android:layout_marginRight="16dp" | ||
android:gravity="center_vertical" | ||
android:orientation="horizontal" | ||
> | ||
|
||
<TextView | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_vertical" | ||
android:layout_weight="0.4" | ||
android:text="@string/alert_above" | ||
/> | ||
|
||
<com.google.android.material.textfield.TextInputLayout | ||
android:id="@+id/alertAboveInputLayout" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_vertical|end" | ||
android:layout_weight="0.6" | ||
app:endIconMode="clear_text" | ||
> | ||
<com.google.android.material.textfield.TextInputEditText | ||
android:id="@+id/alertAboveInputEditText" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="end" | ||
android:inputType="numberDecimal" | ||
android:digits="0123456789.," | ||
android:textSize="@dimen/large_text" | ||
android:maxLength="9" | ||
android:maxLines="1" | ||
android:nextFocusDown="@+id/alertBelowInputEditText" | ||
android:nextFocusForward="@+id/alertBelowInputEditText" | ||
android:textAlignment="textEnd" | ||
/> | ||
</com.google.android.material.textfield.TextInputLayout> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="16dp" | ||
android:layout_marginTop="10dp" | ||
android:layout_marginRight="16dp" | ||
android:gravity="center_vertical" | ||
android:orientation="horizontal" | ||
> | ||
|
||
<TextView | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_vertical" | ||
android:layout_weight="0.4" | ||
android:text="@string/alert_below" | ||
/> | ||
|
||
<com.google.android.material.textfield.TextInputLayout | ||
android:id="@+id/alertBelowInputLayout" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_vertical|end" | ||
android:layout_weight="0.6" | ||
app:endIconMode="clear_text" | ||
> | ||
<com.google.android.material.textfield.TextInputEditText | ||
android:id="@+id/alertBelowInputEditText" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="end" | ||
android:inputType="numberDecimal" | ||
android:digits="0123456789.," | ||
android:imeOptions="actionDone" | ||
android:textSize="@dimen/large_text" | ||
android:maxLength="9" | ||
android:maxLines="1" | ||
android:textAlignment="textEnd" | ||
/> | ||
</com.google.android.material.textfield.TextInputLayout> | ||
|
||
</LinearLayout> | ||
|
||
<Button | ||
android:id="@+id/addButton" | ||
android:layout_width="match_parent" | ||
android:layout_height="45dp" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_marginStart="16dp" | ||
android:layout_marginLeft="16dp" | ||
android:layout_marginTop="20dp" | ||
android:layout_marginEnd="16dp" | ||
android:layout_marginRight="16dp" | ||
android:layout_marginBottom="20dp" | ||
android:text="@string/add" | ||
/> | ||
|
||
</LinearLayout> | ||
</ScrollView> | ||
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
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,62 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout 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:id="@+id/activity_root" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@color/default_bg" | ||
android:orientation="vertical" | ||
> | ||
|
||
<com.google.android.material.appbar.AppBarLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
> | ||
|
||
<androidx.appcompat.widget.Toolbar | ||
android:id="@+id/toolbar" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="@color/bg_toolbar" | ||
app:navigationIcon="?attr/homeAsUpIndicator" | ||
app:title="@string/notes" | ||
app:titleTextAppearance="@style/ActionBarTitleText" | ||
app:menu="@menu/menu_notes" | ||
/> | ||
|
||
</com.google.android.material.appbar.AppBarLayout> | ||
|
||
<TextView | ||
android:id="@+id/tickerName" | ||
android:layout_width="@dimen/tablet_width" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_marginLeft="16dp" | ||
android:layout_marginRight="16dp" | ||
android:layout_marginTop="20dp" | ||
android:gravity="center" | ||
android:textSize="@dimen/xlarge_text" | ||
tools:text="GOOG" | ||
style="@style/BoldTextView" | ||
/> | ||
|
||
<EditText | ||
android:id="@+id/notesInputEditText" | ||
android:layout_width="@dimen/tablet_width" | ||
android:layout_height="wrap_content" | ||
android:background="@null" | ||
android:fadeScrollbars="false" | ||
android:hint="@string/add_notes" | ||
android:gravity="top" | ||
android:inputType="textMultiLine|textCapSentences" | ||
android:layout_gravity="center_horizontal" | ||
android:padding="8dp" | ||
android:scrollbarSize="4dp" | ||
android:scrollbars="vertical" | ||
android:textColor="@color/text_1" | ||
android:textSize="@dimen/large_text" | ||
android:cursorVisible="true" | ||
/> | ||
|
||
</LinearLayout> |
30 changes: 30 additions & 0 deletions
30
app/src/main/res/layout-sw600dp-land/activity_paranormal.xml
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,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical" | ||
android:background="@color/default_bg" | ||
> | ||
|
||
<FrameLayout | ||
android:id="@+id/fragment_container" | ||
android:layout_width="@dimen/tablet_width" | ||
android:layout_height="match_parent" | ||
android:layout_gravity="center_horizontal" | ||
/> | ||
|
||
<com.google.android.material.bottomnavigation.BottomNavigationView | ||
android:id="@+id/bottom_navigation" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="bottom" | ||
android:background="@color/bottom_bar_bg" | ||
app:elevation="4dp" | ||
app:itemIconTint="@drawable/bottom_nav_icon_tint" | ||
app:itemTextColor="@drawable/bottom_nav_icon_tint" | ||
app:layout_behavior="com.github.premnirmal.ticker.ui.BottomNavigationBehavior" | ||
app:menu="@menu/menu_bottom_nav" | ||
/> | ||
|
||
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
Oops, something went wrong.