【问题标题】:how to get changes on data automatically when data on sever is changed [closed]更改服务器上的数据时如何自动获取数据更改[关闭]
【发布时间】:2020-09-29 22:02:20
【问题描述】:
嗨,希望你们一切都好。
我的应用程序遇到问题。我正在使用服务器来存储我的应用程序的数据,并且我想继续检查数据更改。
意味着当我在数据库中添加任何数据时,会引起注意,然后在列表视图中更新数据。我正在使用用 php 编写的 API 从服务器获取数据。
而已。
请如果有人帮我解决这个问题。
提前致谢。
【问题讨论】:
标签:
android
mysql
sql-server
android-studio
android-layout
【解决方案1】:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="2"
android:gravity="bottom">
<TextView
android:rotation="270"
android:layout_margin="20dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="20sp"
android:gravity="center"
android:text="dummy text" />
</LinearLayout>