Vector assets (umbrella and plus button) and attributs added in order to create the home page
This commit is contained in:
parent
ba081732e5
commit
9fd97503d9
5
app/src/main/res/drawable/ic_baseline_add_circle_24.xml
Normal file
5
app/src/main/res/drawable/ic_baseline_add_circle_24.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<vector android:height="24dp" android:tint="#D22E12"
|
||||||
|
android:viewportHeight="24" android:viewportWidth="24"
|
||||||
|
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="@android:color/white" android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM17,13h-4v4h-2v-4L7,13v-2h4L11,7h2v4h4v2z"/>
|
||||||
|
</vector>
|
||||||
5
app/src/main/res/drawable/ic_baseline_umbrella_24.xml
Normal file
5
app/src/main/res/drawable/ic_baseline_umbrella_24.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<vector android:height="24dp" android:tint="#D2D2D2"
|
||||||
|
android:viewportHeight="24" android:viewportWidth="24"
|
||||||
|
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="@android:color/white" android:pathData="M14.5,6.92L13,5.77V3.88V3.4c0,-0.26 0.22,-0.48 0.5,-0.48c0.28,0 0.5,0.21 0.5,0.48V4h2V3.4C16,2.07 14.88,1 13.5,1C12.12,1 11,2.07 11,3.4v0.48v1.89L9.5,6.92L6,6.07l5.05,15.25C11.2,21.77 11.6,22 12,22s0.8,-0.23 0.95,-0.69L18,6.07L14.5,6.92zM13.28,8.5l0.76,0.58l0.92,-0.23L13,14.8V8.29L13.28,8.5zM9.96,9.09l0.76,-0.58L11,8.29v6.51L9.03,8.86L9.96,9.09z"/>
|
||||||
|
</vector>
|
||||||
@ -6,22 +6,43 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
tools:context=".MainActivity">
|
tools:context=".MainActivity">
|
||||||
|
|
||||||
<TextView
|
<androidx.appcompat.widget.Toolbar
|
||||||
android:layout_width="wrap_content"
|
android:id="@+id/toolbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Hello World! BG 3"
|
android:background="#F60707"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
android:minHeight="?attr/actionBarSize"
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
android:theme="?attr/actionBarTheme"
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
app:title="MyWeather"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
tools:layout_editor_absoluteX="0dp"
|
||||||
|
tools:layout_editor_absoluteY="-2dp" />
|
||||||
|
|
||||||
<EditText
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||||
android:id="@+id/editTextTextPassword"
|
android:id="@+id/floatingActionButton4"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:ems="10"
|
android:clickable="true"
|
||||||
android:inputType="textPassword"
|
app:backgroundTint="#FB0C0C"
|
||||||
tools:layout_editor_absoluteX="100dp"
|
app:rippleColor="#EC0A0A"
|
||||||
tools:layout_editor_absoluteY="432dp" />
|
app:srcCompat="@drawable/ic_baseline_add_circle_24"
|
||||||
|
tools:layout_editor_absoluteX="330dp"
|
||||||
|
tools:layout_editor_absoluteY="632dp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView"
|
||||||
|
android:layout_width="233dp"
|
||||||
|
android:layout_height="51dp"
|
||||||
|
android:text="Please click on the 'Add' button in order to add a city"
|
||||||
|
tools:layout_editor_absoluteX="89dp"
|
||||||
|
tools:layout_editor_absoluteY="566dp" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/imageView"
|
||||||
|
android:layout_width="320dp"
|
||||||
|
android:layout_height="552dp"
|
||||||
|
app:srcCompat="@drawable/ic_baseline_umbrella_24"
|
||||||
|
tools:layout_editor_absoluteX="45dp"
|
||||||
|
tools:layout_editor_absoluteY="89dp" />
|
||||||
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
Loading…
Reference in New Issue
Block a user