正在改进ToastUtils 20251111_210731_623
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#Created by .winboll/winboll_app_build.gradle
|
||||
#Tue Nov 11 12:40:49 GMT 2025
|
||||
#Tue Nov 11 13:06:53 GMT 2025
|
||||
stageCount=10
|
||||
libraryProject=libappbase
|
||||
baseVersion=15.10
|
||||
publishVersion=15.10.9
|
||||
buildCount=5
|
||||
buildCount=8
|
||||
baseBetaVersion=15.10.10
|
||||
|
||||
@@ -8,10 +8,10 @@ import android.os.Bundle;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.widget.Toast;
|
||||
import android.widget.Toolbar;
|
||||
import cc.winboll.studio.appbase.R;
|
||||
import cc.winboll.studio.libappbase.LogActivity;
|
||||
import cc.winboll.studio.libappbase.LogUtils;
|
||||
import cc.winboll.studio.libappbase.ToastUtils;
|
||||
|
||||
public class MainActivity extends Activity {
|
||||
@@ -56,6 +56,13 @@ public class MainActivity extends Activity {
|
||||
public void onLogTest(View view) {
|
||||
LogActivity.startLogActivity(this);
|
||||
}
|
||||
|
||||
public void onToastUtilsTest(View view) {
|
||||
LogUtils.d(TAG, "onToastUtilsTest");
|
||||
ToastUtils.init(getApplicationContext());
|
||||
ToastUtils.show("Hello, WinBoLL!");
|
||||
ToastUtils.release();
|
||||
}
|
||||
|
||||
/**
|
||||
* 唤起默认浏览器打开指定网站
|
||||
|
||||
@@ -28,7 +28,8 @@
|
||||
android:background="#81C7F5"
|
||||
android:paddingVertical="12dp"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
android:onClick="onCrashTest"/>
|
||||
android:onClick="onCrashTest"
|
||||
android:layout_margin="10dp"/>
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
@@ -39,7 +40,20 @@
|
||||
android:background="#81C7F5"
|
||||
android:paddingVertical="12dp"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
android:onClick="onLogTest"/>
|
||||
android:onClick="onLogTest"
|
||||
android:layout_margin="10dp"/>
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="应用吐司测试"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@android:color/white"
|
||||
android:background="#81C7F5"
|
||||
android:paddingVertical="12dp"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
android:onClick="onToastUtilsTest"
|
||||
android:layout_margin="10dp"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user