How to set Hint to a Button in android - android-layout

I have an app, which collects person's info, in that i have button for showing datepicker for collecting Person's DOB, now I need to display hint on that button. I set the hint s to all UI components, i can see the hints in edit text but not in button. How to refactor this problem, Any Help is appreciated... Thanks

Use a custom button by layering a text view over a button, check schematic below:
<FrameLayout>
<Button></Button>
<TextView></TextView>
</FrameLayout>

I got corrected, I used the following attribute in the <button> tag as follows :
<Button
.
.
android:hint="01/02/1999"
android:ellipsize="start" />
The Hint appears on the button.

Related

My tiptap bubble_menu works, but it also does a form submission when the menu item is clicked

For example, I was using this:
<button onclick="editor.chain().focus().toggleBold().run()">
But I got the solution from the kind folks on the discord server.
For the menu item, specify type=button (otherwise browser might think it's a submit button type)
<button type=button onclick="editor.chain().focus().toggleBold().run()">

Excel 2007 Ribbon splitbutton with submenu

I've got a simple split button in my Ribbon. And under it I have two buttons in the menu.
It works well.
Now I want to extend the first button -button id="rxBtn_CreateDataFiles" - into more options,
and have another submenu extend to the right with two more choices.
What would be the syntax for it? Thanks.
<splitButton id="rxspb_CreateDataFiles" size="normal">
<button id="rxBtn_CreateDataFilesFace" label="Data Files" imageMso="ChartEditDataSource"/>
<menu id="rxmnuCreateDataFiles">
<button id="rxBtn_CreateDataFiles" label="Run EQ" onAction="QRCreateDataFiles_Click" imageMso="ExportExcel"/>
<button id="rxBtn_CreateSpecificDataFiles" label="Run Select EQ" onAction="QRCreateDataFilesForSpecific_Click" imageMso="ExportExcel"/>
</menu>
</splitButton >
I figured it out. Just need to insert another menu section in the middle. Thanks.
Here is what I would do: Create the buttons in VBA using Ribbon Commander and then export XML to a static Ribbon using .serializeToXML
With rxCustomUI.defaultInstance
With .ribbon.tabs.Add(New rxTab)
.Label = "tab"

How to open a modal aspx page from the devexpress aspxpopupcontrol

I have a button which should open a web form from my project in a modal window. How can I achieve that with the devexpress popup control?
Use the Popup Control - Content URL to show another webform in the control. open popup on the button's client click event.
example:
<dx:ASPxPopupControl ID="popup" runat="server" ContentUrl="~/ContentPageWithTextBox.aspx"
Top="100" ClientInstanceName="clientPopup" CloseAction="CloseButton">
<ClientSideEvents Shown="OnShown" />
</dx:ASPxPopupControl>
Check this search Result
Reference:
How to manipulate client-side objects within a ASPxPopupControl with the specified ContentUrl - check example also.
Hope this help...
Here is sample code:
<input id="openBtn" type="button" value="Open popup"
onclick="myPopup.SetContentUrl('http://www.google.com');myPopup.Show();" />
<dx:ASPxPopupControl runat="server" ClientInstanceName="myPopup" Modal="True"
CloseAction="CloseButton" Width="500px" Height="400px"/>
ASPxClientPopupControl members
ASPxPopupControl members
See ASPxPopupControl Online Demos and the Code Central Examples to learn more on how accomplish this task.

How to set <aui:button> icon in Liferay without using Javascript?

I'm trying to set icon to <aui:button> like on this tutorial.
But solution described there doesn't work well in my case, because I have a table and on each row I have a button with different resourceUrl. Like this:
<portlet:resourceURL id="saveReport" var="saveReportURL">
<portlet:param name="reportId" value="${report.reportId}" />
</portlet:resourceURL>
<aui:button onclick="location.href = '${saveReportURL}'">
Is it possible to set icon in <aui:button> without using JavaScript as described in tutorial?
Thanks
You can write this below code for setting icon in liferay alloy button
<aui:button type="cancel" cssClass="btn-info" icon="icon-upload-alt" iconAlign="right" value="upload" />
you need to use the icon attribute for this setting "Icon glyphs"
you need to use cssClass for adding extra design button class for the designing
you need to set iconAlign attribute for left or right side of the button text value
You should be able to add an icon to a button without using JavaScript by adding one of these Icon CSS classes to your button. For example, if you wanted to create a button with a calendar icon, your code should look something like this:
<aui:button class="icon-calendar" ... />

How to Update Image on Button Click Command

View has a button and Image control.I have bound the button command to a delegateCommand on the ViewModel, which opens a file dialog for the user to choose an Image.The Context "object" for View contains a property "Icon" which is of type byte[].I have bound the Icon to the Image control.The question is how do i display the selected image file on the image control?.
Xaml:
<Button x:Name="dlgIconbtn" Command="{Binding OpenFileCommand}" Content="Choose Icon" MaxWidth="120" Grid.Row="3" Grid.Column="1" Margin="5"/>
<Image Grid.Row="3" Margin="5" Grid.Column="3" Source="{Binding AppItem.Icon,Converter={StaticResource imgConverter}}"
Width="25" Height="25"/>
I solved it using a property "ImgSource" in the viewModel which is bound to the source of the ImageControl.Whenever a user selects an image using the button command i set the image file contents to the "ImgSource" and it works.
I assume Your Converter is working fine.
Now when OpenFileCommand fires user selects image and you update App.Icon property with new Byte[].
Now please RaiseProperty changed event on Icon so Binding get refreshed.
I do not think you need any Code here.
if still not working then please update you Question with full code XAML + ViewModel

Resources