草庐IT

the-button-element

全部标签

android - ' :app' cannot be executed in the current context - android studio 3. 2.1

我在我的项目中使用OneSignal,如下所示:deftaskRequests=getGradle().getStartParameter().getTaskRequests().toString()defisPlay=!(taskRequests.contains("Foss")||taskRequests.contains("foss"))buildscript{repositories{maven{url'https://plugins.gradle.org/m2/'}}dependencies{classpath'gradle.plugin.com.onesignal:ones

java - EditText 下一个 Button 键盘

我有一个布局,用户需要在一些放置在垂直linearLayout中的editText中写下他的详细信息。然而,每次用户需要打开键盘,在editText上写一些东西,然后点击android中的后退按钮,然后再次点击下一个editText并一遍又一遍地写下他的细节。我想实现它而不是打开和关闭键盘,而不是键盘上的输入按钮我将有一个下一个按钮,在用户在特定的EditText上输入他的详细信息后,它将跳到下一个EditText而不关闭每次都打开键盘。我看到有一些应用程序有这个功能,但是我没有找到如何实现它非常感谢这是我的布局示例: 最佳答案 您

android - 检索项目 :No resource found that matches the given name @style/Theme. 的父项时出错 Holo

这是我的res/values/themes.xml中的代码。我的minSdkVersion设置为11。M收到错误,因为检索项目的父项时出错:找不到与给定名称@style/Theme.Holo匹配的资源。@style/MyActionBar@style/MyActionBarTabText@color/actionbar_text@style/MyActionBarTitleText@color/actionbar_text@color/actionbar_text 最佳答案 改变到对其他样式资源也做同样的事情......

android - 样式 EditText 内容 'on the fly' ?

我正在Android中开发富文本编辑器。基本上它有粗体、斜体和链接按钮,这些按钮与EditText相关联以更改内容的样式。如果您先选择要设置样式的文本,然后使用此方法选择按钮,我的效果会很好:http://developer.android.com/guide/appendix/faq/commontasks.html#selectingtext.我想做的是让它像富文本编辑器一样工作,您可以在其中使用按钮作为切换按钮来设置文本样式,只要您愿意,然后再次单击切换按钮停止使用样式。因此,如果我想输入粗体的“注意这个!”,我会点击“B”按钮,然后开始输入文本,我输入的所有内容都会变成粗体,直

用element-ui中的up-load组件实现简单的图片上传到本地然后回显(从前端到后端)

方式一:直接上传(auto-upload=“true”)一:前端样式以及效果: 前端样式代码如下:exportdefault{data(){return{imgUrl:''};},methods:{sucuploadimg(res){this.imgUrl=res.data;}}}二:后端Controller层@RestController@RequestMapping("/admin/file")@Slf4j@Api(value="文件相关接口",tags={"文件相关接口操作接口"})publicclassfilecontroller{@PostMapping("/uploadfoodpi

2022-03-01 Element UI切换主题、动态换肤功能

如果是新项目,可以选择使用element-plus,或者另寻他路,不要来踩这个坑。以下方法适用于已经完成的项目,需要加换肤功能。借鉴官方在线切换主题。 demo是新写的,node版本为v14.15.0,sass-loader版本为^12.0.0https://github.com/jiameiShen/element-theme-demo.git不想看我写废话的,可以直接去看项目~~~~~1、引入主题element-variables,打包构建使用,可参考官方文档;element-ui自定义主题官方文档npmielement-theme-g npmielement-theme-chalk-De

android - 触摸事件 : when finger is removed from the item

当我从项目上移开手指时,我需要实现功能。所以我需要一些Activity。***Scenario:***1.Touchtheimageviewusingfinger.2.Removethefinger.3.Nowimplementthefunctionality.我想要第2步的事件回调。如果存在某些预定义事件,请建议名称。 最佳答案 好的。当您触摸屏幕并移开手指时,事件调用:ACTION_DOWN-当您第一次触摸时ACTION_MOVE-当您在屏幕上移动手指时ACTION_UP-当您将手指从屏幕上移开时祝你好运!

java - 线性布局 : Aligning to the Right of the parent

请看下面的XML我想将Button对齐到布局的右上角。我怎样才能做到这一点? 最佳答案 另一种可能的方法是使用layout_weight属性。这是我的偏好,因为它会填满所有可用空间。 关于java-线性布局:AligningtotheRightoftheparent,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/20031846/

安卓 "You need to use a Theme.AppCompat theme (or descendant) with the design library"

好的,我收到了这个错误(标题)。许多帖子建议我(甚至是Androidstudio)将主题更改为App.Appcompat,我已经做到了。list文件:样式.xml@color/colorPrimary@color/colorPrimaryDark@color/colorAccentfalsetrue但仍然没有任何改变。我不知道发生了什么,因为我以前没有遇到过这个问题(我之前没有在list文件中添加App.compat)Gradle:compile'com.android.support:appcompat-v7:24.0.0-beta1'compile'com.android.supp

安卓 : Compare two ArrayList of objects and find unmatching ids from the second ArrayList

我想比较两个对象的ArrayList,并根据对象中的id从第二个ArrayList中找到不匹配的值。例如:Person.javaprivateintid;privateStringname;privateStringplace;主要Activity.java:ArrayListarrayList1=newArrayList();arrayList1.add(newPerson(1,"name","place"));arrayList1.add(newPerson(2,"name","place"));arrayList1.add(newPerson(3,"name","place"))