mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 12:04:58 +00:00
add appbar with app name + Material EditText
This commit is contained in:
parent
0259eeeba5
commit
9a59547bd4
4 changed files with 17 additions and 6 deletions
|
@ -7,6 +7,14 @@
|
|||
android:layout_height="match_parent"
|
||||
tools:context=".app.MainActivity">
|
||||
|
||||
<com.google.android.material.appbar.MaterialToolbar
|
||||
android:id="@+id/topAppBar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?colorSurfaceVariant"
|
||||
android:minHeight="?attr/actionBarSize"
|
||||
app:title="@string/app_name" />
|
||||
|
||||
<androidx.fragment.app.FragmentContainerView
|
||||
android:id="@+id/fragment_container"
|
||||
android:layout_width="0dp"
|
||||
|
@ -26,4 +34,4 @@
|
|||
app:menu="@menu/main_activity_navigation"
|
||||
style="@style/ThemedNavigationBottom"/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginTop="60dp"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.panda3ds.pandroid.view.gamesgrid.GamesGridView
|
||||
|
|
|
@ -9,16 +9,17 @@
|
|||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="64dp"
|
||||
android:paddingHorizontal="20dp">
|
||||
android:paddingHorizontal="20dp"
|
||||
android:background="?colorSurfaceVariant">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatEditText
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/search_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="center"
|
||||
android:hint="@string/search"
|
||||
android:paddingEnd="10dp"
|
||||
android:paddingStart="50dp"
|
||||
android:hint="@string/search"
|
||||
android:textSize="16sp"
|
||||
android:background="@drawable/search_bar_background"
|
||||
android:backgroundTint="?colorSurfaceVariant" />
|
||||
|
@ -46,4 +47,4 @@
|
|||
|
||||
</FrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="320dp"
|
||||
android:layout_marginTop="22dp"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center">
|
||||
|
||||
|
@ -26,4 +27,4 @@
|
|||
android:alpha="0.5"
|
||||
android:textColor="?colorOnSurface"/>
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
|
Loading…
Add table
Reference in a new issue