button Questions

3

Solved

The buttons created programmatically don't follow the buttonStyle defined in the apptheme, but the buttons created in xml follow it. Below is my style.xml <style name="AppTheme" paren...

7

Solved

I'm using SwiftUI on MACOS If I do this: Button(action: { } ) { Text("Press") .padding() .background(Color.blue) } I get this: and the two grey areas are the ends of a tappable button. ...
Oneeyed asked 16/10, 2019 at 17:59

3

I am trying to create a button and change the height and width using the code below but the actual button doesn't show physically. However if you hover over the area it is supposed to be and click ...
Weathersby asked 15/11, 2013 at 15:34

1

Here is my example. How to call greeting() function from the button? --- import Layout from "@layouts/Layout.astro"; const greeting = () => { console.log("Hello, server"); }...
Farnesol asked 26/7, 2023 at 18:34

2

Solved

I have a number of buttons in my WPF window and I would like to have certain characters in the button contents underlined. I have tried using the "_" like "My_Content" to underline the C, however...
Kubetz asked 20/5, 2011 at 17:26

14

Solved

I'm trying to make a call when I press a button in android ((Button)findViewById(R.id.button1)).setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { String phno="1...
Cobbett asked 23/3, 2011 at 9:46

3

Solved

I already have the button: <Button android:layout_height="wrap_content" android:layout_width="fill_parent" android:drawableLeft="@drawable/empty" android:id="@+id/buttonMyText" android:text=...
Bosomed asked 22/11, 2010 at 22:37

12

In my application i have a button. After single and double clicking of the button will perform separate operation. How can i do that? Thanks
Severus asked 12/3, 2013 at 4:42

24

Solved

I'm writing a modal dialog in WPF. How do I set a WPF window to not have a close button? I'd still like for its WindowState to have a normal title bar. I found ResizeMode, WindowState, and WindowS...
Harrietharriett asked 13/4, 2009 at 13:39

13

Solved

How to make a cross (X) only in CSS3, to use as a close button? I've been searching for a long time, and cannot found how.... When I look at source code on a website using it, there's always someth...
Qua asked 4/9, 2013 at 10:18

14

How can I stop a button from resizing? Each time I click on the button, either the size of the button or the font size changes. Note: I cannot lock my sheet as my Macro will write into the sheet....
Clavate asked 6/3, 2012 at 9:49

6

Solved

I'm having trouble changing the color of a button with a simple function, the color doesn't change at all. <html> <head> <meta http-equiv="Content-Type" content="tex...
Tildy asked 24/3, 2017 at 17:25

5

I'm trying to get a button to shake when the user tries to log in without filling all the textfields in, and this is what I've come across so far: struct Shake: GeometryEffect { var amount: CGFlo...
Inelegancy asked 5/5, 2020 at 17:16

14

Solved

I am trying to set the background color of a button in my app and I am unable to achieve the result that I want... The color that I am trying to set is holo_green_light(#ff99cc00). In order to do ...
Nonproductive asked 6/8, 2013 at 0:35

3

I'm getting trouble to understand the following situation in ReactJS. I have a conditional rendering between two buttons: a button which shows another, basically. The second button is a submit type...
Mabe asked 5/4, 2022 at 15:54

12

Solved

I have the following XAML and my particular problem relates to the image that is to be displayed on the button <Button HorizontalAlignment="Right" Grid.Row="1"> <Image...
Petaliferous asked 26/3, 2013 at 11:34

3

I have 2 custom button styles and I want to change the style when I tap the button. I tried this way: Button(action: { self.pressed.toggle() }) { Text("Button") }.buttonStyle(pressed ? style1() ...
Detrusion asked 25/5, 2020 at 19:0

1

In my notebook I've a loop in which I want to ask the user to binary "Yes" or "No". On this choice the algorithm is suppposed to continue. for i in range(n_total): display.clear_output(wait=True)...
Counterblast asked 11/2, 2019 at 11:48

5

I have some buttons on my pure HTML/JS page. When the page is opened in browser, the button size is normal. But on refresh/reloading page, the button size is reduced. In fact, I have not set the bu...
Udell asked 29/7, 2014 at 12:3

21

Solved

In my Android app, I have this layout: <?xml version="1.0" encoding="utf-8" ?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_pare...
Shalloon asked 31/7, 2013 at 2:27

11

Solved

I would like to know how to set the button color programatically? I have coded the following but fails: Button11.setBackgroundColor(R.color.red); Thanks!!
Danaedanaher asked 12/12, 2012 at 14:59

8

Solved

I have the button with following styles button { background: none; border-color: #87db41; color: #87db41; padding: 5px 5px; width: 30%; text-align: center; &: active { bord...
Burkitt asked 17/7, 2015 at 9:9

2

Solved

In my project i have a button. when user clicks on it, it shows and animation after that should load another activity. @Override public void onClick(View v) { switch (v.getId()){ case R.id.btn...
Slobbery asked 6/10, 2011 at 2:39

8

If I add a theme to my app like this: class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, theme: ThemeD...
Acquaint asked 17/5, 2019 at 22:12

3

Solved

How do I create something similar to this?: Demo : I know flutter has CupertinoSegmentedControl() But this creates something similar to tabs, nothing that slides like something a Switch with ...
Heddie asked 5/10, 2019 at 20:47

© 2022 - 2024 — McMap. All rights reserved.