List updates when returning from add, fixes in edittexts
This commit is contained in:
parent
63f2ab9520
commit
cf24433d4d
@ -169,6 +169,13 @@ public class MainActivity extends AppCompatActivity implements MainView, OnSorti
|
|||||||
updateGridIcon(gridViewEnabled);
|
updateGridIcon(gridViewEnabled);
|
||||||
|
|
||||||
mApi = new ApiProvider(getApplicationContext());
|
mApi = new ApiProvider(getApplicationContext());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onStart() {
|
||||||
|
super.onStart();
|
||||||
|
|
||||||
|
// Update list
|
||||||
presenter.getGeofavorites();
|
presenter.getGeofavorites();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,11 +8,15 @@
|
|||||||
type="it.danieleverducci.nextcloudmaps.model.Geofavorite"/>
|
type="it.danieleverducci.nextcloudmaps.model.Geofavorite"/>
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
|
<ScrollView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:id="@+id/root">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/root"
|
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/map"
|
android:id="@+id/map"
|
||||||
@ -34,6 +38,10 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:ems="10"
|
android:ems="10"
|
||||||
android:hint="@string/name"
|
android:hint="@string/name"
|
||||||
|
android:lines="1"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:ellipsize="end"
|
||||||
android:text="@{geofavorite.name}"/>
|
android:text="@{geofavorite.name}"/>
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
@ -44,6 +52,7 @@
|
|||||||
android:gravity="start|top"
|
android:gravity="start|top"
|
||||||
android:inputType="textMultiLine"
|
android:inputType="textMultiLine"
|
||||||
android:hint="@string/description"
|
android:hint="@string/description"
|
||||||
|
android:ellipsize="end"
|
||||||
android:text="@{geofavorite.comment}" />
|
android:text="@{geofavorite.comment}" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@ -87,4 +96,5 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
</layout>
|
</layout>
|
Loading…
Reference in New Issue
Block a user