mirror of
				https://github.com/SimpleMobileTools/Simple-Calculator.git
				synced 2025-06-05 21:49:13 +02:00 
			
		
		
		
	do not color the action bar
This commit is contained in:
		| @@ -33,12 +33,16 @@ class MainActivity : SimpleActivity(), Calculator { | ||||
|     private lateinit var calc: CalculatorImpl | ||||
|  | ||||
|     override fun onCreate(savedInstanceState: Bundle?) { | ||||
|         isMaterialActivity = true | ||||
|         super.onCreate(savedInstanceState) | ||||
|         setContentView(R.layout.activity_main) | ||||
|         appLaunched(BuildConfig.APPLICATION_ID) | ||||
|         setupOptionsMenu() | ||||
|         refreshMenuItems() | ||||
|  | ||||
|         updateMaterialActivityViews(main_coordinator, null, useTransparentNavigation = false, useTopSearchMenu = false) | ||||
|         setupMaterialScrollListener(main_nested_scrollview, main_toolbar) | ||||
|  | ||||
|         calc = CalculatorImpl(this, applicationContext) | ||||
|  | ||||
|         btn_plus.setOnClickOperation(PLUS) | ||||
|   | ||||
| @@ -16,11 +16,18 @@ | ||||
|         app:menu="@menu/menu" | ||||
|         app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" /> | ||||
|  | ||||
|     <androidx.core.widget.NestedScrollView | ||||
|         android:id="@+id/main_nested_scrollview" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="match_parent" | ||||
|         android:layout_marginTop="?attr/actionBarSize" | ||||
|         android:fillViewport="true" | ||||
|         android:scrollbars="none"> | ||||
|  | ||||
|         <LinearLayout | ||||
|             android:id="@+id/calculator_holder" | ||||
|             android:layout_width="match_parent" | ||||
|             android:layout_height="match_parent" | ||||
|         android:layout_marginTop="?attr/actionBarSize" | ||||
|             android:hapticFeedbackEnabled="true" | ||||
|             android:layoutDirection="ltr" | ||||
|             android:orientation="vertical"> | ||||
| @@ -251,4 +258,5 @@ | ||||
|  | ||||
|             </LinearLayout> | ||||
|         </LinearLayout> | ||||
|     </androidx.core.widget.NestedScrollView> | ||||
| </androidx.coordinatorlayout.widget.CoordinatorLayout> | ||||
|   | ||||
| @@ -16,10 +16,18 @@ | ||||
|         app:menu="@menu/menu" | ||||
|         app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" /> | ||||
|  | ||||
|     <androidx.core.widget.NestedScrollView | ||||
|         android:id="@+id/main_nested_scrollview" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="match_parent" | ||||
|         android:layout_marginTop="?attr/actionBarSize" | ||||
|         android:fillViewport="true" | ||||
|         android:scrollbars="none"> | ||||
|  | ||||
|         <include | ||||
|             layout="@layout/view_calculator" | ||||
|             android:layout_width="match_parent" | ||||
|         android:layout_height="match_parent" | ||||
|         android:layout_marginTop="?attr/actionBarSize" /> | ||||
|             android:layout_height="match_parent" /> | ||||
|  | ||||
|     </androidx.core.widget.NestedScrollView> | ||||
| </androidx.coordinatorlayout.widget.CoordinatorLayout> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user